Message76184
> 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 |
|
Date |
User |
Action |
Args |
2008-11-21 14:23:19 | vstinner | set | recipients:
+ vstinner, amaury.forgeotdarc, farshad |
2008-11-21 14:23:18 | vstinner | set | messageid: <1227277398.76.0.13521260518.issue4358@psf.upfronthosting.co.za> |
2008-11-21 14:23:18 | vstinner | link | issue4358 messages |
2008-11-21 14:23:17 | vstinner | create | |
|