[issue4358] Segfault in stringobject.c

STINNER Victor report at bugs.python.org
Fri Nov 21 15:23:18 CET 2008


STINNER Victor <victor.stinner at haypocalc.com> 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 <report at bugs.python.org>
<http://bugs.python.org/issue4358>
_______________________________________


More information about the Python-bugs-list mailing list