seg faults when running modperl and GD::Graph

2007-09-04 Thread Matt Williamson
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

Re: seg faults when running modperl and GD::Graph

2007-09-04 Thread Rafael Caceres
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

RE: seg faults when running modperl and GD::Graph

2007-09-04 Thread Matt Williamson
Ok, thanks. I am not so familiar with php. I have LoadModule php5_module /usr/lib/apache2/modules/libphp5.so And AddType application/x-httpd-php .php .phtml .php3 AddType application/x-httpd-php-source .phps So I guess I have mod_php5. Do I have to recompile, or do you think I might fin

RE: seg faults when running modperl and GD::Graph

2007-09-04 Thread Matt Williamson
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 f

Re: seg faults when running modperl and GD::Graph

2007-09-04 Thread Manoj Bist
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 u