[Python-bugs-list] [ python-Bugs-745424 ] Valgrind reports lots of problems

SourceForge.net noreply@sourceforge.net
Thu, 29 May 2003 10:52:36 -0700


Bugs item #745424, was opened at 2003-05-29 09:45
Message generated for change (Comment added) made by jhylton
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=745424&group_id=5470

Category: Python Interpreter Core
Group: Python 2.3
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Stefane Fermigier (fermigier)
Assigned to: Nobody/Anonymous (nobody)
Summary: Valgrind reports lots of problems

Initial Comment:
Running valgrind (1.9.5) on Python CVS for 2003/05/29
on Mandrake
cooker gives *lots* of errors:

==20937== ERROR SUMMARY: 1331 errors from 71 contexts
(suppressed: 3 from 1)
==20937== malloc/free: in use at exit: 696167 bytes in
239 blocks.
==20937== malloc/free: 2822 allocs, 2583 frees, 1776937
bytes allocated.
==20937== For a detailed leak analysis,  rerun with:
--leak-check=yes
==20937== For counts of detected errors, rerun with: -v

Iīm not familiar enough with Python internals to tell
if itīs a Python bug, a Valgrind bug or a problem with
the distro.

Running Valgrind on stock Mandrake Python (2.2.2) gives
also some
errors, though much less:

fermigier@fermigier python/dist/src $ valgrind python <
/dev/null
==20964== Memcheck, a.k.a. Valgrind, a memory error
detector for x86-linux.
==20964== Copyright (C) 2002, and GNU GPL'd, by Julian
Seward.
==20964== Using valgrind-1.9.5, a program
instrumentation system for x86-linux.
==20964== Copyright (C) 2000-2002, and GNU GPL'd, by
Julian Seward.
==20964== Estimated CPU clock rate is 2040 MHz
==20964== For more details, rerun with: -v
==20964==
==20964== Conditional jump or move depends on
uninitialised value(s)
==20964==    at 0x400087A6: elf_dynamic_do_rel.7
(do-rel.h:65)
==20964==    by 0x40008EC8:
_dl_relocate_object_internal (dl-reloc.c:217)
==20964==    by 0x404F48B4: (within
/lib/i686/libc-2.3.2.so)
==20964==    by 0x4000ADC7: _dl_catch_error_internal
(dl-error.c:162)
==20964==
==20964== Conditional jump or move depends on
uninitialised value(s)
==20964==    at 0x400087AA: elf_dynamic_do_rel.7
(dl-machine.h:629)
==20964==    by 0x40008EC8:
_dl_relocate_object_internal (dl-reloc.c:217)
==20964==    by 0x404F48B4: (within
/lib/i686/libc-2.3.2.so)
==20964==    by 0x4000ADC7: _dl_catch_error_internal
(dl-error.c:162)
==20964==
==20964== Conditional jump or move depends on
uninitialised value(s)
==20964==    at 0x40008FD3:
_dl_relocate_object_internal (dl-machine.h:619)
==20964==    by 0x404F48B4: (within
/lib/i686/libc-2.3.2.so)
==20964==    by 0x4000ADC7: _dl_catch_error_internal
(dl-error.c:162)
==20964==    by 0x404F3FDE: _dl_open (in
/lib/i686/libc-2.3.2.so)
==20964==
==20964== Conditional jump or move depends on
uninitialised value(s)
==20964==    at 0x40009020:
_dl_relocate_object_internal (do-rel.h:117)
==20964==    by 0x404F48B4: (within
/lib/i686/libc-2.3.2.so)
==20964==    by 0x4000ADC7: _dl_catch_error_internal
(dl-error.c:162)
==20964==    by 0x404F3FDE: _dl_open (in
/lib/i686/libc-2.3.2.so)
==20964==
==20964== ERROR SUMMARY: 4 errors from 4 contexts
(suppressed: 2 from 1)
==20964== malloc/free: in use at exit: 54679 bytes in
550 blocks.
==20964== malloc/free: 9626 allocs, 9076 frees, 993870
bytes allocated.
==20964== For a detailed leak analysis,  rerun with:
--leak-check=yes
==20964== For counts of detected errors, rerun with: -v


----------------------------------------------------------------------

>Comment By: Jeremy Hylton (jhylton)
Date: 2003-05-29 17:52

Message:
Logged In: YES 
user_id=31392

Sorry.  A Valgrind report without some analysis of how it
applies to Python isn't really helpful.  If someone is going
to dig into what these errors mean, they can probably run
Valgrind.


----------------------------------------------------------------------

Comment By: Stefane Fermigier (fermigier)
Date: 2003-05-29 10:34

Message:
Logged In: YES 
user_id=43688

BTW, tcl, perl and ruby doesnīt show any errors or warnings
in the same
setup:

fermigier@fermigier ~ $ valgrind ruby
==21283== Memcheck, a.k.a. Valgrind, a memory error detector
for x86-linux.
==21283== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==21283== Using valgrind-1.9.5, a program instrumentation
system for x86-linux.
==21283== Copyright (C) 2000-2002, and GNU GPL'd, by Julian
Seward.
==21283== Estimated CPU clock rate is 2020 MHz
==21283== For more details, rerun with: -v
==21283==
==21283==
==21283== ERROR SUMMARY: 0 errors from 0 contexts
(suppressed: 0 from 0)
==21283== malloc/free: in use at exit: 320976 bytes in 6392
blocks.
==21283== malloc/free: 6652 allocs, 260 frees, 323272 bytes
allocated.
==21283== For a detailed leak analysis,  rerun with:
--leak-check=yes
==21283== For counts of detected errors, rerun with: -v
fermigier@fermigier ~ $ valgrind perl
==21284== Memcheck, a.k.a. Valgrind, a memory error detector
for x86-linux.
==21284== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==21284== Using valgrind-1.9.5, a program instrumentation
system for x86-linux.
==21284== Copyright (C) 2000-2002, and GNU GPL'd, by Julian
Seward.
==21284== Estimated CPU clock rate is 2019 MHz
==21284== For more details, rerun with: -v
==21284==
==21284== valgrind's libpthread.so: KLUDGED call to:
siglongjmp (cleanup handlers are ignored)
==21284==
==21284== ERROR SUMMARY: 0 errors from 0 contexts
(suppressed: 1 from 1)
==21284== malloc/free: in use at exit: 218136 bytes in 668
blocks.
==21284== malloc/free: 879 allocs, 211 frees, 236806 bytes
allocated.
==21284== For a detailed leak analysis,  rerun with:
--leak-check=yes
==21284== For counts of detected errors, rerun with: -v
fermigier@fermigier ~ $ valgrind tclsh < /dev/null
==21359== Memcheck, a.k.a. Valgrind, a memory error detector
for x86-linux.
==21359== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==21359== Using valgrind-1.9.5, a program instrumentation
system for x86-linux.
==21359== Copyright (C) 2000-2002, and GNU GPL'd, by Julian
Seward.
==21359== Estimated CPU clock rate is 2032 MHz
==21359== For more details, rerun with: -v
==21359==
==21359==
==21359== ERROR SUMMARY: 0 errors from 0 contexts
(suppressed: 0 from 0)
==21359== malloc/free: in use at exit: 47453 bytes in 608
blocks.
==21359== malloc/free: 1420 allocs, 812 frees, 184123 bytes
allocated.
==21359== For a detailed leak analysis,  rerun with:
--leak-check=yes
==21359== For counts of detected errors, rerun with: -v

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=745424&group_id=5470