473,563 Members | 2,517 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Valgrind memory-checker reports memory problems in Python

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 "Conditiona l 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_Intern InPlace (in
/usr/lib64/libpython2.4.so .1.0)
==2923== by 0x331BD69C6E: PyString_Intern FromString (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_ma in (in /lib64/libc-2.4.so)
==2923==
[..]

Jul 4 '06 #1
1 1773
[Nathan Bates]
Are the Python developers running Python under Valgrind?
Please read Misc/README.valgrind (in your Python distribution).
Jul 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3402
by: Alexandre | last post by:
Hi, I'm currently investigating a leak in a c++ program. I've run valgrind to detect it and valgrind give me some result like this one... ==5336== 64064 bytes in 728 blocks are still reachable in loss record 14 of 16 ==5336== at 0x40026B30: __builtin_new (vg_replace_malloc.c:172) ==5336== by 0x4028C531:...
2
22758
by: hvaisane | last post by:
Valgrind says ==11604== Invalid read of size 4 ==11604== at 0x8048ABB: main (foo.cc:36) ==11604== Address 0x1B92415C is 4 bytes inside a block of size 8 free'd ==11604== at 0x1B90514F: operator delete(void*) (vg_replace_malloc.c:156) ==11604== by 0x804A1BA: __gnu_cxx::new_allocator<Foo>::deallocate(Foo*, unsigned)...
5
16157
by: Roman Mashak | last post by:
Hello, All! I already posted my question and received valuable feedbacks, I changed my code as was proposed here but still receive the same error of valgrind. SO, the code is: #define DB_IS_FLD_EMPTY(x) (((x) && *(x)) ? 0 : 1) int db_is_fld_empty(char *fld) { return DB_IS_FLD_EMPTY(fld);
2
1800
by: Mohsen | last post by:
Dear all, I am running a program and in one of the functions I have to sort the data of an array as follows: .. .. .. for (m=0;m<M;++m) //Sort { k=m; for (j=m+1;j<M;++j)
1
2372
by: mfried | last post by:
Hi all, I'm testing an application using valgrind 3.2.0 unter Linux kernel 2.4. When the test are finished and the app terminates valgrind gives the error: --15631:0:aspacem Valgrind: FATAL: I/O error on /proc/self/maps --15631:0:aspacem Exiting now. My first thought was that I need more access rights on that file, but
4
5072
by: Simple Simon | last post by:
It's entirely possible that I'm completely in the wrong line of work, but I don't see what Valgrind is complaining about in this code. Invalid read/writes? If I free the within main(), rather than within free_node_list(), Valgrind reports 0 leaks? OS: SuSE 9.3 Linux 2.6.11.4-21.11-default i686 i386 GCC: 3.3.5 20050117
4
3610
by: eskimo | last post by:
Hello I have a situation, my program has a crash (SIGSEGV) for a reason that I don't know yet. I tried to analyze it using Valgrind but when I invoke the program with Valgrind, the crash no longer occurs. Another observation is the crash only happens on SMP linux kernel. When I run the program on thhe non-SMP kernel it doesn't crash. So does...
1
9993
by: JeanDean | last post by:
I have successfully installed the valgrind-3.2.3 but it is resulting in following error ------------------------- valgrind ls -l valgrind: failed to start tool 'memcheck' for platform 'x86-linux': No such file or directory -------------------------- Any sort of suggestion will be appreciated .
3
1222
by: Kira Yamato | last post by:
Hi, just starting out on C++ this semester. Been learning the language and g++ compiler. So, now I'm ready to learn some profiling. Can someone recommend a nice profiler on Linux systems? What are some of the popular profilers? Thank you.
2
9574
by: tvnaidu | last post by:
valgrind error - "failed to start tool 'memcheck' for platform x86-linux" no such file or dir copied all lib and bin files which are generated after I compiled valgrind package, when I run my exe with valgrind, I am getting above error, any idea? lib/ -rw-r--r-- 1 0 0 27934 default.supp -rwxr-xr-x 1 0 0 ...
0
7658
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7877
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6238
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5479
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5204
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2077
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
912
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.