Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Valgrind memory-checker reports memory problems in Python

Reply
Thread Tools

Valgrind memory-checker reports memory problems in Python

 
 
Nathan Bates
Guest
Posts: n/a
 
      07-04-2006
Are the Python developers running Python under Valgrind?
If not, FYI, Valgrind is a excellent memory-checker for Linux.
Valgrind is reporting a ton of memory problems.
Worrisome are "Conditional jump or move depends on uninitialised
value(s)" errors.
I simply started the Python 2.4.2 interpreter,
then Ctrl+D, on Linux Fedora 5.

.........
==2923== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et
al.
==2923== Using LibVEX rev 1471, a library for dynamic binary
translation.
==2923== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==2923== Using valgrind-3.1.0, a dynamic binary instrumentation
framework.
==2923== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et
al.
==2923== For more details, rerun with: -v
==2923==
==2923== My PID = 2923, parent PID = 2922. Prog and args are:
==2923== /usr/bin/python
==2923==
==2923== Conditional jump or move depends on uninitialised value(s)
==2923== at 0x331BD6096B: PyObject_Free (in
/usr/lib64/libpython2.4.so.1.0)
==2923== by 0x331BD5BFE9: (within /usr/lib64/libpython2.4.so.1.0)
==2923== by 0x331BD6555E: PyString_InternInPlace (in
/usr/lib64/libpython2.4.so.1.0)
==2923== by 0x331BD69C6E: PyString_InternFromString (in
/usr/lib64/libpython2.4.so.1.0)
==2923== by 0x331BD7053C: (within /usr/lib64/libpython2.4.so.1.0)
==2923== by 0x331BD7549F: PyType_Ready (in
/usr/lib64/libpython2.4.so.1.0)
==2923== by 0x331BD76F6E: PyType_Ready (in
/usr/lib64/libpython2.4.so.1.0)
==2923== by 0x331BD5E42F: _Py_ReadyTypes (in
/usr/lib64/libpython2.4.so.1.0)
==2923== by 0x331BDB3E6A: Py_InitializeEx (in
/usr/lib64/libpython2.4.so.1.0)
==2923== by 0x331BDB910D: Py_Main (in
/usr/lib64/libpython2.4.so.1.0)
==2923== by 0x331181D083: __libc_start_main (in /lib64/libc-2.4.so)
==2923==
[..]

 
Reply With Quote
 
 
 
 
Tim Peters
Guest
Posts: n/a
 
      07-04-2006
[Nathan Bates]
> Are the Python developers running Python under Valgrind?


Please read Misc/README.valgrind (in your Python distribution).
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'strlen' : Why valgrind reports invalid read ? m.labanowicz@gmail.com C Programming 12 01-19-2013 10:13 AM
Hi, How to use valgrind to detect the memory leak in sub-function? GLiang.liu.cn@gmail.com C++ 1 05-29-2008 01:14 PM
valgrind/memory leak question bluekite2000@gmail.com C++ 1 04-29-2005 07:35 AM
Problems with valgrind Andreas Andersen C++ 2 01-18-2005 03:06 PM
Checking for memory leaks: valgrind versus insure++ rsina C++ 2 11-29-2004 11:04 AM



Advertisments