seg faults when running modperl and GD::Graph
I noticed that my server is segfaulting when I run a script using GD::Graph e.g. [Fri Aug 31 09:26:14 2007] [notice] child pid 6385 exit signal Segmentation fault (11) [Fri Aug 31 09:26:18 2007] [notice] child pid 6386 exit signal Segmentation fault (11) [Fri Aug 31 09:26:23 2007] [notice] child pid 6387 exit signal Segmentation fault (11) [Fri Aug 31 09:30:06 2007] [notice] child pid 6394 exit signal Segmentation fault (11) [Fri Aug 31 09:30:52 2007] [notice] child pid 6462 exit signal Segmentation fault (11) [Fri Aug 31 09:31:01 2007] [notice] child pid 6448 exit signal Segmentation fault (11) [Fri Aug 31 09:31:06 2007] [notice] child pid 6463 exit signal Segmentation fault (11) I am running an ex-cgi script under ModPerl::Registry Location /perl SetHandler perl-script PerlResponseHandler ModPerl::Registry Options +ExecCGI PerlOptions +ParseHeaders /Location I have read some other places on the web about seg faults, suggesting that it might be conflicts with other modules, e.g. php. However, it looks pretty clear that it is the GD::Graph that is doing it. Has anyone else seen this? Does anyone know how to fix/debug this? I am going to try running my cgi with the PerlRun to see if that makes a difference, although I'd prefer to run in modperl if I can. Thank you in advance for your help Matt
Re: seg faults when running modperl and GD::Graph
If you have PHP (with mod_php) enabled on that server, that's the culprit and it can be fixed by compiling PHP without GD support. On Tue, 2007-09-04 at 13:12 -0700, Matt Williamson wrote: I noticed that my server is segfaulting when I run a script using GD::Graph e.g. [Fri Aug 31 09:26:14 2007] [notice] child pid 6385 exit signal Segmentation fault (11) [Fri Aug 31 09:26:18 2007] [notice] child pid 6386 exit signal Segmentation fault (11) [Fri Aug 31 09:26:23 2007] [notice] child pid 6387 exit signal Segmentation fault (11) [Fri Aug 31 09:30:06 2007] [notice] child pid 6394 exit signal Segmentation fault (11) [Fri Aug 31 09:30:52 2007] [notice] child pid 6462 exit signal Segmentation fault (11) [Fri Aug 31 09:31:01 2007] [notice] child pid 6448 exit signal Segmentation fault (11) [Fri Aug 31 09:31:06 2007] [notice] child pid 6463 exit signal Segmentation fault (11) I am running an ex-cgi script under ModPerl::Registry Location /perl SetHandler perl-script PerlResponseHandler ModPerl::Registry Options +ExecCGI PerlOptions +ParseHeaders /Location I have read some other places on the web about seg faults, suggesting that it might be conflicts with other modules, e.g. php. However, it looks pretty clear that it is the GD::Graph that is doing it. Has anyone else seen this? Does anyone know how to fix/debug this? I am going to try running my cgi with the PerlRun to see if that makes a difference, although I'd prefer to run in modperl if I can. Thank you in advance for your help Matt !DSPAM:46ddbc27171191804284693! Information from NOD32 This message was checked by NOD32 Antivirus System for Linux Mail Servers. part000.txt - is OK http://www.eset.com
RE: seg faults when running modperl and GD::Graph
Ok, thanks. I am not so familiar with php. I have LoadModule php5_module /usr/lib/apache2/modules/libphp5.so And IfModule mod_php5.c AddType application/x-httpd-php .php .phtml .php3 AddType application/x-httpd-php-source .phps /IfModule So I guess I have mod_php5. Do I have to recompile, or do you think I might find a php without GD as a pre-compiled ubuntu package? I actually don't think I need php on this system, would removing it have the same effect? Matt -Original Message- From: Rafael Caceres [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 04, 2007 1:38 PM To: Matt Williamson Cc: modperl@perl.apache.org Subject: Re: seg faults when running modperl and GD::Graph If you have PHP (with mod_php) enabled on that server, that's the culprit and it can be fixed by compiling PHP without GD support. On Tue, 2007-09-04 at 13:12 -0700, Matt Williamson wrote: I noticed that my server is segfaulting when I run a script using GD::Graph e.g. [Fri Aug 31 09:26:14 2007] [notice] child pid 6385 exit signal Segmentation fault (11) [Fri Aug 31 09:26:18 2007] [notice] child pid 6386 exit signal Segmentation fault (11) [Fri Aug 31 09:26:23 2007] [notice] child pid 6387 exit signal Segmentation fault (11) [Fri Aug 31 09:30:06 2007] [notice] child pid 6394 exit signal Segmentation fault (11) [Fri Aug 31 09:30:52 2007] [notice] child pid 6462 exit signal Segmentation fault (11) [Fri Aug 31 09:31:01 2007] [notice] child pid 6448 exit signal Segmentation fault (11) [Fri Aug 31 09:31:06 2007] [notice] child pid 6463 exit signal Segmentation fault (11) I am running an ex-cgi script under ModPerl::Registry Location /perl SetHandler perl-script PerlResponseHandler ModPerl::Registry Options +ExecCGI PerlOptions +ParseHeaders /Location I have read some other places on the web about seg faults, suggesting that it might be conflicts with other modules, e.g. php. However, it looks pretty clear that it is the GD::Graph that is doing it. Has anyone else seen this? Does anyone know how to fix/debug this? I am going to try running my cgi with the PerlRun to see if that makes a difference, although I'd prefer to run in modperl if I can. Thank you in advance for your help Matt !DSPAM:46ddbc27171191804284693! Information from NOD32 This message was checked by NOD32 Antivirus System for Linux Mail Servers. part000.txt - is OK http://www.eset.com
RE: seg faults when running modperl and GD::Graph
I don't think it can be php. I disabled php on the server, and I still get the seg faults [Tue Sep 04 21:45:19 2007] [notice] Apache/2.0.55 (Ubuntu) mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operations [Tue Sep 04 21:45:29 2007] [notice] child pid 18466 exit signal Segmentation fault (11) [Tue Sep 04 21:45:30 2007] [notice] child pid 18467 exit signal Segmentation fault (11) [Tue Sep 04 21:45:32 2007] [notice] child pid 18468 exit signal Segmentation fault (11) Any other ideas? Matt -Original Message- From: Rafael Caceres [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 04, 2007 1:38 PM To: Matt Williamson Cc: modperl@perl.apache.org Subject: Re: seg faults when running modperl and GD::Graph If you have PHP (with mod_php) enabled on that server, that's the culprit and it can be fixed by compiling PHP without GD support. On Tue, 2007-09-04 at 13:12 -0700, Matt Williamson wrote: I noticed that my server is segfaulting when I run a script using GD::Graph
Re: seg faults when running modperl and GD::Graph
One option would to be run apache under single threaded mode(option -X) under gdb and see where it is crashing. Once you identify the .so where it is crashing, you can try reproducing the crash outside apache context. If you suspect it to be a memory corruption issue you can try running apache under valgrind. On 9/4/07, Matt Williamson [EMAIL PROTECTED] wrote: I don't think it can be php. I disabled php on the server, and I still get the seg faults [Tue Sep 04 21:45:19 2007] [notice] Apache/2.0.55 (Ubuntu) mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operations [Tue Sep 04 21:45:29 2007] [notice] child pid 18466 exit signal Segmentation fault (11) [Tue Sep 04 21:45:30 2007] [notice] child pid 18467 exit signal Segmentation fault (11) [Tue Sep 04 21:45:32 2007] [notice] child pid 18468 exit signal Segmentation fault (11) Any other ideas? Matt -Original Message- From: Rafael Caceres [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 04, 2007 1:38 PM To: Matt Williamson Cc: modperl@perl.apache.org Subject: Re: seg faults when running modperl and GD::Graph If you have PHP (with mod_php) enabled on that server, that's the culprit and it can be fixed by compiling PHP without GD support. On Tue, 2007-09-04 at 13:12 -0700, Matt Williamson wrote: I noticed that my server is segfaulting when I run a script using GD::Graph