|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8144 apache dumps core after loaded
Submitted: 2000-12-06 16:57 UTC Modified: 2001-01-31 07:09 UTC
From: davidb at chelsea dot net Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.3pl1 OS: Solaris 2.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
4 + 13 = ?
Subscribe to this entry?

 [2000-12-06 16:57 UTC] davidb at chelsea dot net
We've been trying to get PHP installed into our web server configuration, and been having a devil of a time.  We're able to get everything compiled:


but as soon as the module is enabled in the srm.conf, apache starts to dump core.  Almost any content - not just PHP - starts to cause a core dump.  Even if .php is never called, we seem to have the problem.

A truss isn't entirely useful:

close(12)                                       = 0
    Incurred fault #6, FLTBOUNDS  %pc = 0xEF15DAD4
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000068
    Received signal #11, SIGSEGV [caught]
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000068
chdir("/export/httpd")                          = 0
sigaction(SIGSEGV, 0xEFFFF160, 0xEFFFF1E0)      = 0
getpid()                                        = 9894 [9887]
kill(9894, SIGSEGV)                             = 0
    Received signal #11, SIGSEGV [default]
      siginfo: SIGSEGV pid=9894 uid=72
        *** process killed ***

It seems to happen after a lstat64() or a close() on a file.  Apache refused to dump core, even though permissions seem to be set fine, etc.  

We've also spend a couple of hours with gdb trying to step through it, but we're having no luck getting symbols to show up (it's a bit out of our abilities, I guess, since it's running as a DSO).  We have a baseline httpd server that we only put DSOs into, so I can't really rebuild it statically without much gnashing of teeth; at this point, I don't know if that would fix the problem.

I'm not sure where to turn next.  Web and bug searchs show up a few similar-sounding problems related FDs, but our httpd has plenty of room for more file descriptors.  Any suggestions as to what could be causing this bug, or how to track it down, would be most helpful.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-06 19:42 UTC]
Could you please try the latest release candidate:

I have been running PHP on Solaris 2.6 as Apache DSO for
a long time without any kind of problems..

To get useful backtraces, add --enable-debug to your configure line.

 [2001-01-30 04:18 UTC]
No feedback.


 [2001-01-31 07:09 UTC]
User feedback:
Oops.  This problem was due to LARGEFILE being enabled in the web server.Patches to 4.0.4RC4 were supplied by another 
developer, who said he was going to put them into CVS, but I 
do not know if they made it in yet.
After several rounds of testing/updating, the patches appear 
to fix the problem.

The patches were committed -> this is fixed in 
PHP >= 4.0.4pl1


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 00:01:31 2024 UTC