Boost logo

Boost :

Subject: Re: [boost] boost.python problem in release branch (GSoc work)
From: Ralf W. Grosse-Kunstleve (rwgk_at_[hidden])
Date: 2009-11-07 15:02:35


Hi Haoyu,

Sorry for the incomplete report last night. It was very late here.

Below is a valgrind output. This is with Python 2.6.2 compiled from sources under Fedora 8 x86_64. I've also seen the error with Python 2.6.4, I'm pretty sure, but I'll double check. I'll also try compiling everything with debug symbols to get line numbers. I'll let you know what I find.

Ralf

P.S.: My file with the valgrind suppressions is here:

http://cctbx.svn.sourceforge.net/viewvc/cctbx/trunk/libtbx/valgrind-python24.supp?revision=4665&view=markup

chevy:/net/chevy/raid1/rwgk/bintbx_hot % libtbx.valgrind python /net/chevy/raid1/rwgk/hot/boost/libs/python/test/properties.py
valgrind-3.2.3
### LIBTBX_VALGRIND not set: using default.
### To override, define LIBTBX_VALGRIND
### before calling libtbx.valgrind.
LIBTBX_VALGRIND=valgrind --tool=memcheck --suppressions=/net/chevy/raid1/rwgk/dist/cctbx_project/libtbx/valgrind-python24.supp
==5967== Memcheck, a memory error detector.
==5967== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==5967== Using LibVEX rev 1732, a library for dynamic binary translation.
==5967== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==5967== Using valgrind-3.2.3, a dynamic binary instrumentation framework.
==5967== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==5967== For more details, rerun with: -v
==5967==
running...
==5967== Conditional jump or move depends on uninitialised value(s)
==5967== at 0x36472DB8B6: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x3647268F96: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DBE37: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DC7ED: _PyObject_GC_Malloc (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DC82F: _PyObject_GC_NewVar (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x364727E976: PyTuple_New (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CAEAA: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CB4CC: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CAEF4: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CB4B8: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CBBAD: PyMarshal_ReadObjectFromString (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CD60A: PyMarshal_ReadLastObjectFromFile (in /usr/lib64/libpython2.5.so.1.0)
==5967==
==5967== Conditional jump or move depends on uninitialised value(s)
==5967== at 0x36472DB811: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x3647268F96: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DBE8E: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DC7ED: _PyObject_GC_Malloc (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DC82F: _PyObject_GC_NewVar (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x364727E976: PyTuple_New (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CAEAA: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CB4CC: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CAEF4: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CB4B8: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CBBAD: PyMarshal_ReadObjectFromString (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472CD60A: PyMarshal_ReadLastObjectFromFile (in /usr/lib64/libpython2.5.so.1.0)
Done.
==5967==
==5967== Conditional jump or move depends on uninitialised value(s)
==5967== at 0x36472DB8B6: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x3647268F96: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DBE37: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DC713: PyGC_Collect (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472D15F6: Py_Finalize (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472D1717: Py_Exit (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472D1824: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472D1A57: PyErr_PrintEx (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472D1E1C: PyRun_SimpleFileExFlags (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DB26D: Py_Main (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x363241E073: (below main) (in /lib64/libc-2.7.so)
==5967==
==5967== Conditional jump or move depends on uninitialised value(s)
==5967== at 0x36472DB811: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x3647268F96: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DBE8E: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DC713: PyGC_Collect (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472D15F6: Py_Finalize (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472D1717: Py_Exit (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472D1824: (within /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472D1A57: PyErr_PrintEx (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472D1E1C: PyRun_SimpleFileExFlags (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x36472DB26D: Py_Main (in /usr/lib64/libpython2.5.so.1.0)
==5967== by 0x363241E073: (below main) (in /lib64/libc-2.7.so)
==5967==
==5967== ERROR SUMMARY: 12 errors from 4 contexts (suppressed: 1433 from 7)
==5967== malloc/free: in use at exit: 2,130,538 bytes in 784 blocks.
==5967== malloc/free: 8,392 allocs, 7,608 frees, 8,389,344 bytes allocated.
==5967== For counts of detected errors, rerun with: -v
==5967== searching for pointers to 784 not-freed blocks.
==5967== checked 2,450,896 bytes.
==5967==
==5967== LEAK SUMMARY:
==5967== definitely lost: 0 bytes in 0 blocks.
==5967== possibly lost: 7,768 bytes in 24 blocks.
==5967== still reachable: 2,122,770 bytes in 760 blocks.
==5967== suppressed: 0 bytes in 0 blocks.
==5967== Rerun with --leak-check=full to see details of leaked memory.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk