STINNER Victor <[EMAIL PROTECTED]> added the comment: > The application is a web service with postgresql backend, so it > heavily uses pyexpat and pygresql in a threaded environment.
pyexpat or pygresql is maybe not thread safe. To catch such error, you have to use Valgrind. And to use Valgrind, you have to recompile Python with the define "Py_USING_MEMORY_DEBUGGER": read Misc/valgrind.supp (comments at the top). Then, use "valgrind --suppressions=Misc/valgrind.supp <your program> <arguments...>". You might also try helgrind: "valgrind --tool=helgrind --suppressions=Misc/valgrind.supp <your program> <arguments...>". Note: remember me to translate this article to english! http://www.haypocalc.com/blog/index.php/2008/08/22/160-deboguer-programme-python-avec-gdb ---------- nosy: +haypo _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4358> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com