[Pyrex] pyrex 0.9.4.1 bugs?

Chris Bainbridge chris.bainbridge at gmail.com
Tue Aug 15 00:44:53 UTC 2006


I have a pyode (which uses pyrex to wrap ODE) application which is
generating odd failures, usually something like:

*** glibc detected *** double free or corruption (!prev): 0x0823d130 ***

Everything works fine with 0.9.3.1. I've looked over the archives at
noticed that a segfault generating bug was reported in May (thread
"Bug report on return inside a loop"). Did this ever get fixed? Also,
has anyone ported the pyrex testsuite to Linux?

Running valgrind over my application clearly shows some memory
problem. Log attached below.

==28785== Invalid free() / delete / delete[]
==28785==    at 0x401C12D: free (in
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==28785==    by 0x4CE42AB: dJointDestroy (ode.cpp:989)
==28785==    by 0x4C946B2: __pyx_tp_dealloc_3ode_Joint (ode_trimesh.c:5581)
==28785==    by 0x4C81DC6: __pyx_tp_dealloc_3ode_BallJoint (ode_trimesh.c:15435)
==28785==    by 0x407F2E9: (within /usr/lib/libpython2.4.so.1.0)
==28785==    by 0x4C94603: __pyx_tp_dealloc_3ode_Joint (ode_trimesh.c:15246)
==28785==    by 0x4C82169: __pyx_tp_dealloc_3ode_AMotor (ode_trimesh.c:16510)
==28785==    by 0x409259C: (within /usr/lib/libpython2.4.so.1.0)
==28785==    by 0x407F117: PyDict_Clear (in /usr/lib/libpython2.4.so.1.0)
==28785==    by 0x4081032: (within /usr/lib/libpython2.4.so.1.0)
==28785==    by 0x40DB82F: (within /usr/lib/libpython2.4.so.1.0)
==28785==    by 0x40DC0C5: PyGC_Collect (in /usr/lib/libpython2.4.so.1.0)
==28785==  Address 0x498CEE0 is 0 bytes inside a block of size 168 free'd
==28785==    at 0x401C12D: free (in
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==28785==    by 0x4CE5907: dWorldDestroy (ode.cpp:1266)
==28785==    by 0x4C8B22A: __pyx_tp_dealloc_3ode_World (ode_trimesh.c:2366)
==28785==    by 0x4C94651: __pyx_tp_dealloc_3ode_Joint (ode_trimesh.c:15243)
==28785==    by 0x4C82169: __pyx_tp_dealloc_3ode_AMotor (ode_trimesh.c:16510)
==28785==    by 0x409259C: (within /usr/lib/libpython2.4.so.1.0)
==28785==    by 0x407F117: PyDict_Clear (in /usr/lib/libpython2.4.so.1.0)
==28785==    by 0x4081032: (within /usr/lib/libpython2.4.so.1.0)
==28785==    by 0x40DB82F: (within /usr/lib/libpython2.4.so.1.0)
==28785==    by 0x40DC0C5: PyGC_Collect (in /usr/lib/libpython2.4.so.1.0)
==28785==    by 0x40D4EC5: Py_Finalize (in /usr/lib/libpython2.4.so.1.0)
==28785==    by 0x40D3EF9: Py_Exit (in /usr/lib/libpython2.4.so.1.0)



More information about the Pyrex mailing list