[C++-sig] segmentation fault when executing PyImport_ImportModule("sys")

Venkatraman S venkat83 at gmail.com
Tue Apr 8 16:29:54 CEST 2008


On Tue, Apr 8, 2008 at 4:01 PM, Dietrich Bollmann <d.bollmann at tu-berlin.de>
wrote:

> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb046ab90 (LWP 9854)]
> threadstate_getframe (self=0xb7e8a889) at ../Python/pystate.c:154
> 154     ../Python/pystate.c: No such file or directory.
>        in ../Python/pystate.c
>

Am not sure whether i get the context right - but i was stumbling on a
similar SIGSERV in a multithreaded app - profiling with Valgrind turned out
to be much useful and the memory leak was fixed.



>
> malloc(sizeof(py_stdouterr_buffer_struct));
>
>
>
is this memory getting freed?


-- 
Venkat
Blog @ http://blizzardzblogs.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20080408/3c62d7ab/attachment.htm>


More information about the Cplusplus-sig mailing list