[GiNaC-list] ginsh: valgrind reports 26 bytes lost

Joerg Arndt arndt at jjj.de
Tue Aug 17 14:04:39 CEST 2010


While we are at it:

% valgrind --leak-check=full  ginsh
==5463== Memcheck, a memory error detector
==5463== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==5463== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==5463== Command: ginsh
==5463== 
ginsh - GiNaC Interactive Shell (ginac V1.5.8)
  __,  _______  Copyright (C) 1999-2010 Johannes Gutenberg University Mainz,
 (__) *       | Germany.  This is free software with ABSOLUTELY NO WARRANTY.
  ._) i N a C | You are welcome to redistribute it under certain conditions.
<-------------' For details type `warranty;'.

Type ?? for a list of help topics.
> [pressing ctrl-d to exit]
==5463== 
==5463== HEAP SUMMARY:
==5463==     in use at exit: 743,496 bytes in 486 blocks
==5463==   total heap usage: 3,081 allocs, 2,595 frees, 980,701 bytes allocated
==5463== 
==5463== 26 bytes in 1 blocks are definitely lost in loss record 15 of 55
==5463==    at 0x4C26C3A: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==5463==    by 0x59FEEA2: cln::xmalloc(unsigned long) (cl_malloc.cc:28)
==5463==    by 0x5A077DD: cln::cl_make_heap_string(char const*) (cl_st_make1.cc:20)
==5463==    by 0x5A05866: cln::cl_prin_globals_init_helper::cl_prin_globals_init_helper() (string.h:83)
==5463==    by 0x5B27C05: global constructors keyed to cl_SV_number_aprint.cc (io.h:78)
==5463==    by 0x5B27C65: ??? (in /usr/local/lib/libcln.so.6.0.1)
==5463==    by 0x59FAF8A: ??? (in /usr/local/lib/libcln.so.6.0.1)
==5463== 
==5463== LEAK SUMMARY:
==5463==    definitely lost: 26 bytes in 1 blocks
==5463==    indirectly lost: 0 bytes in 0 blocks
==5463==      possibly lost: 0 bytes in 0 blocks
==5463==    still reachable: 743,470 bytes in 485 blocks
==5463==         suppressed: 0 bytes in 0 blocks
==5463== Reachable blocks (those to which a pointer was found) are not shown.
==5463== To see them, rerun with: --leak-check=full --show-reachable=yes
==5463== 
==5463== For counts of detected and suppressed errors, rerun with: -v
==5463== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)



More information about the GiNaC-list mailing list