texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Texmacs-dev] Re: Using Valgrind and first results


From: David MENTRE
Subject: [Texmacs-dev] Re: Using Valgrind and first results
Date: Tue, 25 May 2004 10:48:47 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Sorry for the immediate new post, but I have enabled --num-callers=10
that allows much easier tracking of those reports:

==4902== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 118234 from 12)
--4902-- 
--4902-- supp:   45 Ugly strchr error in /lib/ld-2.3.2.so
--4902-- supp:   11 Unitialized value in edit_env_rep::decode_length(string) 
(env_exec.cpp:1656)
--4902-- supp:    4 TLS Syscall param writev(vector[...]) contains 
uninitialised or unaddressable byte(s)
--4902-- supp:    4 Guile GC uninitialised value of size 4 in scm_markstream
--4902-- supp:   16 Guile GC scm_c_hook_run
--4902-- supp:  913 Guile GC scm_c_hook_run
--4902-- supp: 11358 Guile GC scm_igc
--4902-- supp:    1 Guile GC marking
--4902-- supp: 18888 Guile GC marking
--4902-- supp: 18239 Guile GC marking
--4902-- supp: 68252 Guile GC marking
--4902-- supp:  503 __libc_sigaction (in /lib/tls/libc-2.3.2.so
==4902== malloc/free: in use at exit: 7561724 bytes in 14379 blocks.
==4902== malloc/free: 37510 allocs, 23131 frees, 10895955 bytes allocated.
==4902== 
==4902== searching for pointers to 14379 not-freed blocks.
==4902== checked 15350172 bytes.
==4902== 
==4902== 5520 bytes in 3 blocks are definitely lost in loss record 94 of 105
==4902==    at 0x3C01F40D: malloc (vg_replace_malloc.c:105)
==4902==    by 0x817EED0: safe_malloc(unsigned) (fast_alloc.cpp:35)
==4902==    by 0x80570E7: operator new[](unsigned) (basic.cpp:62)
==4902==    by 0x8273F2D: as_charp(string) (string.cpp:235)
==4902==    by 0x8276286: set_env(string, string) (sys_utils.cpp:80)
==4902==    by 0x81DD3E4: set_env_path(string, url) (init_texmacs.cpp:42)
==4902==    by 0x81DD509: get_env_path(string, url) (init_texmacs.cpp:49)
==4902==    by 0x81DE764: init_env_vars() (init_texmacs.cpp:220)
==4902==    by 0x81DFEC6: init_texmacs() (init_texmacs.cpp:388)
==4902==    by 0x830FF55: main (texmacs.cpp:208)
==4902== 
==4902== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- n
==4902== 
==4902== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- y
{
   <insert a suppression name here>
   Memcheck:Leak
   fun:malloc
   fun:_Z11safe_mallocj
   fun:_Z14enlarge_mallocj
   fun:_Znwj
}

Is this a real leak?

==4902== 
==4902== 
==4902== 2048660 bytes in 202 blocks are possibly lost in loss record 104 of 105
==4902==    at 0x3C01F40D: malloc (vg_replace_malloc.c:105)
==4902==    by 0x817EED0: safe_malloc(unsigned) (fast_alloc.cpp:35)
==4902==    by 0x80570E7: operator new[](unsigned) (basic.cpp:62)
==4902==    by 0x80CE2B0: hashmap_rep<tree_label, tag_info>::resize(int) 
(hashmap.cpp:54)
==4902==    by 0x80CE193: hashmap_rep<tree_label, 
tag_info>::bracket_rw(tree_label) (hashmap.cpp:89)
==4902==    by 0x80CDE4D: hashmap<tree_label, tag_info>::operator()(tree_label) 
(hashmap.hpp:83)
==4902==    by 0x80CD7B1: rel_hashmap<tree_label, 
tag_info>::operator()(tree_label) (rel_hashmap.cpp:35)
==4902==    by 0x80CF2AD: init(tree_label, string, tag_info) (drd_std.cpp:45)
==4902==    by 0x80D414E: init_std_drd() (drd_std.cpp:215)
==4902==    by 0x81DFEB2: init_texmacs() (init_texmacs.cpp:384)
==4902== 
==4902== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- n
==4902== 
==4902== LEAK SUMMARY:
==4902==    definitely lost: 5520 bytes in 3 blocks.
==4902==    possibly lost:   2048660 bytes in 202 blocks.
==4902==    still reachable: 2031616 bytes in 31 blocks.
==4902==         suppressed: 3475928 bytes in 14143 blocks.
==4902== Reachable blocks (those to which a pointer was found) are not shown.
==4902== To see them, rerun with: --show-reachable=yes


Yours,
d.

PS: I have also update the texmacs.supp file:

Attachment: texmacs.supp
Description: updated texmacs.supp


reply via email to

[Prev in Thread] Current Thread [Next in Thread]