[ale] Apache 2.0/PHP seg faults?
cfowler
cfowler at outpostsentinel.com
Tue May 7 07:50:22 EDT 2002
When problems like this occur I use strace to find out what system calls
took place before the segmentation fault. I then look at the source and
locate the offending code. I thin repair that code. I would bet in
your case the software is tryting to access a null pointer and that will
cause a SIGSEGV. I have a felling you'll find it near a dlopen()
statement where it will be trying to open your supplied library. The
.so file you list below. It may be having problems resolving a symbol
and not correctly handling the error condition for such.
Do not be too quick to take on the older version if you need features
that this version supports. Go ahead and fix it and make planty of
comments in the code so you can track what you have done.
Chris
On Tue, 2002-05-07 at 03:32, jb at sourceillustrated.com wrote:
> I've been trying to get 2.0 and php working with no success. I actually
> have it working on a debn box, but am trying to get it going on my gentoo
> box. No luck. I've even tried copying conf and php.ini files between boxes.
>
> The problem is the same with Apache 2.0.35 and 2.0.36 using php 4.2.0.
> Everything compiles and installs successfully. When I run it with
> /apachectl start, it says it started successfully. However, it dies almost
> immediately after starting with no error messages to stderr or to error_log:
>
> /apachectl start
> httpd: Could not determine the server's fully qualified domain name, using
> 127.0.0.1 for ServerName
> /apachectl start: httpd started
>
> $ ps -ef | grep httpd
> <nothing>
>
> To get an idea of what might be happening, I ran:
>
> httpd -X -f /usr/local/apache/conf/httpd.conf
>
> Segmentation fault
>
> Error code is set to 139.
>
> A little more investigation led me to comment out the following line from
> httpd.conf:
>
> LoadModule php4_module modules/libphp4.so
>
> After removing the line, apache starts up just fine. So, the problem seems
> to be with the PHP installation.
>
> I've tried recompiling php with various configuration parameters to no
> avail. I've verified php.ini. At this point, I'm close to rolling back to
> 1.3, but thought I'd see if anyone else out there is having similar troubles.
>
> Thanks,
> John
>
>
>
>
>
>
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
> sent to listmaster at ale dot org.
>
>
>
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list