php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15008 Apache Crash
Submitted: 2002-01-12 15:59 UTC Modified: 2002-04-23 01:01 UTC
Votes:7
Avg. Score:4.6 ± 0.7
Reproduced:6 of 6 (100.0%)
Same Version:4 (66.7%)
Same OS:3 (50.0%)
From: patrick at patrick dot at Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.1.1 OS: Linux 2.4.5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: patrick at patrick dot at
New email:
PHP Version: OS:

 

 [2002-01-12 15:59 UTC] patrick at patrick dot at
After compiling 4.1.1 whith Apache 1.3.22 and MySql 3.23.46

i get follwing erros in the weblog
[Sat Jan 12 21:50:10 2002] [notice] child pid 18992 exit signal Segmentation fault (11)
[Sat Jan 12 21:50:43 2002] [notice] child pid 14447 exit signal Segmentation fault (11)
etc 
etc

when reverting to 4.0.6 these errors are gone.

config :
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql=/usr/local' '--with-gd'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-12 16:30 UTC] mfischer@php.net
Please provide a short and self-contained script which reproduces this crash. A backtrace would also help (but better compile with --enable-debug first).
 [2002-01-12 20:17 UTC] pmarks at employees dot org
I can verify this bug.  It is happening with my server (check out http://ged.dynodns.net/band/).  I am using mod_layout in conjunction with apache, but the bug appears exactly as is described above, and it looks to be a PHP problem (other pages seem to load fine - but not this one).

The server executes http://ged.dynodns.net/band/header.phps (source) before executing http://ged.dynodns.net/band/index.phps (source also).  But after executing the header (successfully, or so it seems, but i cannot tell where the problem lies - at the end of header.php or at the beginning of index.php).  However, i was running apache 1.3.22 with mod_layout and PHP 4.1.0 and everything worked just fine, until I had another problem and recompiled everything with PHP 4.1.1, so it appears that this is a PHP 4.1.1 bug.

(Note, that the require()'ed files, web.php and news.php are both files that are only function declaractions, and don't crash scripts like events.php)

Apache Config:
--with-layout=Apache
--prefix=/usr/apache
--activate-module=src/modules/php4/libphp4.a
--enable-module=so
--enable-module=speling
--enable-module=vhost_alias

PHP 4.1.1 Config:
--with-apache=/usr/src/apache-1.3.22 \
--disable-short-tags \
--without-mysql \
--with-pgsql=/usr/pgsql


I hope the source helps - I'm working on building a debugging version so I can obtain a backtrace.  Just confirming for now.
 [2002-01-12 20:52 UTC] pmarks at employees dot org
OK, here's the backtrace:

#0  0x4012eb1e in memcpy () from /lib/libc.so.6
#1  0x8146ba0 in ap_bwrite ()
#2  0x8158be2 in ap_send_mmap ()
#3  0x402bbb13 in _init () from /usr/apache/libexec/mod_layout.so
#4  0x8147ccf in ap_invoke_handler ()
#5  0x815becf in process_request_internal ()
#6  0x815c2f3 in ap_internal_redirect ()
#7  0x8073178 in handle_dir ()
#8  0x8147ccf in ap_invoke_handler ()
#9  0x815becf in process_request_internal ()
#10 0x815bf30 in ap_process_request ()
#11 0x8153379 in child_main ()
#12 0x8153524 in make_child ()
#13 0x8153698 in startup_children ()
#14 0x8153d10 in standalone_main ()
#15 0x8154563 in main ()
#16 0x400c7b65 in __libc_start_main (main=0x81541cc <main>, argc=4, ubp_av=0xbffffb1c, init=0x8060dcc <_init>, fini=0x8182100 <_fini>, rtld_fini=0x4000df24 <_dl_fini>, 
    stack_end=0xbffffb14) at ../sysdeps/generic/libc-start.c:111


I can't hardly tell, but I'm guessing its in PHP, as it was called from mod_layout, in which case the problem lies at the end of header.php, I think.
 [2002-01-12 20:57 UTC] rasmus@php.net
Hrm, but there is no sign of anything PHP in that backtrace.  You are saying PHP sent something that caused mod_layout to crash?  That would indicate a problem in mod_layout as far as I am concerned.
 [2002-01-12 21:15 UTC] pmarks at employees dot org
OK, This may actually not be a bug (In my case at least).  Just reinstalled PHP 4.1.0 and it still happened.  Not sure about the first submission, but it may still be a PHP bug but not for my case, at least.  Sorry for all the bother.
 [2002-01-22 23:45 UTC] sebjr at altavista dot com
2 x Apache 1.3.20 + MySQL 3.23.39 + Linux 2.4.17 (one with grsec patch). Pattern: logs full of messages mentioned in first report. Crash seems to happen on first load of the page in a freshly started browser (there's a session init on the page (two actually, on both same thing)), on reload things work ok.

Session stuff done via mysql.

PHP 4.1.1, loaded with extensions.
 [2002-01-23 00:03 UTC] sebjr at altavista dot com
See also http://bugs.php.net/bug.php?id=15096
 [2002-02-02 06:45 UTC] sander@php.net
Reopening.
 [2002-03-14 21:40 UTC] jay1 at swift-web dot com
See also http://bugs.php.net/bug.php?id=14529
 [2002-04-23 01:01 UTC] sniper@php.net
The original reporter of this bug said it works for him now.
Those other bugs are different issues.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC