perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: Antwort: Re: Antwort: Re: [mp2] segfault when generating graphs with GD::Graph under Embperl
Date Thu, 13 Nov 2003 20:26:36 GMT
Gerald Richter wrote:
>>Program received signal SIGSEGV, Segmentation fault.
>>0x002a9582 in ?? ()
>>(gdb) BT
>>#0  0x002a9582 in ?? ()
>>#1  0x009d5c44 in ?? ()
>>#2  0x00000106 in ?? ()
>>#3  0x009a6aa6 in ?? ()
>>#4  0x005e3940 in ?? ()
>>#5  0x09f72cf4 in ?? ()
>>Doesn't look like a better output than without debugging option...
>>I never did this before. Is something missing?
> It looks like the programm is jumping to some location with doesn't contain
> any real code. This is normaly a result of a memory corruption that is
> happeing earlier and very hard to track down.

There is an easy way to work around it. Run the program under gdb and it'll 
remember the trace even the memory (frames) gets corrupted.

gdb /path/to/httpd
gdb> run -X
issue a request here and gdb will tell you that you've got a segfault
<gdb> bt
will give you the trace.

Alex, I'd too suggest that you try to eliminate embperl and see if you can get 
the same problem with a plain mod_perl script/handler just like Gerald has 

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message