perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Hartmaier" <Alexander.Hartma...@t-systems.at>
Subject Antwort: Re: Antwort: Re: [mp2] segfault when generating graphs with GD::Graph under Embperl
Date Thu, 13 Nov 2003 16:11:02 GMT


compiled mod_perl and embperl with debugging option.
output is this:

# gdb /usr/sbin/httpd
GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols
found)...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb)  set args -X
(gdb) r
Starting program: /usr/sbin/httpd -X

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 ?? ()
(gdb)

Doesn't look like a better output than without debugging option...
I never did this before. Is something missing?

THX Alex





Von:  Gerald Richter <richter@ecos.de> am 13.11.2003 15:44



An:   Alexander Hartmaier/DEBIS/EDVG/AT@SYSDOM
Kopie:    modperl@perl.apache.org, embperl@perl.apache.org

Thema:    Re: Antwort: Re: [mp2] segfault when generating graphs with GD::Graph
      under Embperl

>
> Should I compile with debugging symbols?

Yes

> If yes what? apache or mod_perl? or embperl?
>

mod_perl and Embperl

For Embperl do

perl Makefile.PL debug

I don't have in mind the Makefile.PL flag for mod_perl, but you surly find
it in the docs :-)

Gerald


> Thanks, Alex
>
>
>
>
> Von:  Gerald Richter <richter@ecos.de> am 12.11.2003 07:55
>
>
>
> An:   Alexander Hartmaier/DEBIS/EDVG/AT@SYSDOM,
> modperl@perl.apache.org
> Kopie:    embperl@perl.apache.org
>
> Thema:    Re: [mp2] segfault when generating graphs with GD::Graph
> under Embperl
>
>
>>
>> 3. This is the core dump trace: (if you get a core dump):
>>
>> I tried but I can't catch any (I don't know and didn't manage to
>> find out which directory has to be writeable for the apache2 process
>> under Embperl).
>>
>
>
> Please try to start your httpd under gdb:
>
> gdb /path/to/httpd
> set args -X -f /path/to/httpd.conf
> r
>
> Now request the page that segfaults, gdb should show the segfault,
> then type
>
> BT
>
> and you should get the backtrace.
>
> Gerald
>
> P.S. -X tell Apache to only start one process, which is better for
> debugging
>
> *2*

--------------------------------------------------------------
Gerald Richter     ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
--------------------------------------------------------------
|
|   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------

*1*




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message