php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24377 Apache crashes with PHP/Mod_SSL Enabled
Submitted: 2003-06-28 16:00 UTC Modified: 2003-07-18 18:54 UTC
From: alain dot russell at blackpepper dot co dot nz Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.3.2 OS: Mac OS X 10.2.6
Private report: No CVE-ID: None
 [2003-06-28 16:00 UTC] alain dot russell at blackpepper dot co dot nz
Description:
------------
I am running 2 Apache 2 servers, both are the same 
version Apache 2.0.46 (From Serverlogistics.com) and 
bot are running mod_ssl and have valid SSL 
certificates.

One of the servers is running PHP and is crashing a few 
times an hour, if I disable SSL on the PHP machine the 
HTTPD process runs stable .. The other server I have 
runs Apache2 with SSL and is stable - the only 
difference between the 2 servers is PHP.

My Configure line:
'./configure' '--prefix=/Library/PHP4' '--with-apxs2=/
Library/Apache2/bin/apxs' '--with-openssl=/usr' '--
with-zlib=/usr' '--enable-calendar' '--enable-shared' 
'--enable-exif' '--enable-ftp' '--enable-mbstring' '--
enable-mbregex' '--enable-session' '--enable-sockets' 
'--enable-tokenizer' '--enable-wddx' '--with-xml' '--
enable-yp' '--enable-versioning' '--enable-trans-id' 
'--enable-track-vars' '--with-mysql' '--with-ldap=/usr' 
'--with-iodbc=/usr' '--with-gd=/Library/PHP4' '--with-
jpeg-dir=/Library/PHP4' '--with-png-dir=/Library/PHP4' 
'--enable-xslt' '--with-xslt-sablot=/Library/PHP4' '--
with-pdflib=/Library/PHP4' '--with-tiff-dir=/Library/
PHP4' '--with-pgsql=/Library/PHP4' '--with-iconv=/
Library/PHP4' '--with-sybase=/Library/PHP4' '--with-
mcrypt=/Library/PHP4' '--with-curl=/Library/PHP4' '--
with-freetype-dir=/Library/PHP4' '--with-ttf=/Library/
PHP4' '--with-gettext=/Library/PHP4' '--with-xmlrpc' 
'--enable-mime-magic' '--with-pspell=/Library/PHP4' '--
with-expat-dir=/Library/Apache2' '--with-t1lib=/
Library/PHP4' '--enable-dbx' '--with-imap=/Library/
PHP4' '--with-imap-ssl=/usr' '--enable-cli' '--without-
xpm-dir' '--enable-dbase' '--with-bz2=/usr' '--enable-
cgi' '--with-pear' '--with-java' '--with-dom=/Library/
PHP4' '--with-dom-xslt=/Library/PHP4' '--with-dom-
exslt=/Library/PHP4' '--with-snmp=/Library/PHP4' '--
enable-ucd-snmp-hack' 

This is the Crash report being created by 
Crashreporter:

uid: 70  
Date/Time:  2003-06-27 11:19:44 +1200 
OS Version: 10.2.6 (Build 6L60) 
Host:       stream.blackpepper.co.nz  
Command:    httpd 
PID:        648  
Exception:  EXC_BAD_ACCESS (0x0001) 
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 
0x00000000  
Thread 0:  
#0   0x90000e2c in read  
#1   0x0000b05c in ap_mpm_pod_check (pod.c:97)  
#2   0x000097f0 in child_main (worker.c:1309)  
#3   0x00009968 in make_child (worker.c:1393)  
#4   0x00009d74 in perform_idle_server_maintenance 
(worker.c:1551)  
#5   0x00009fbc in server_main_loop (worker.c:1645)  
#6   0x0000a2c4 in ap_mpm_run (worker.c:1745)  
#7   0x0000c60c in main (main.c:660)  
#8   0x00001c74 in _start (crt.c:267)  
#9   0x00001af4 in start  Thread 1:  
#0   0x9003eaa8 in semaphore_wait_signal_trap  
#1   0x9003e8c4 in _pthread_cond_wait  
#2   0x0000b6d8 in ap_queue_pop (fdqueue.c:300)  
#3   0x00008dd4 in worker_thread (worker.c:917)  
#4   0x90020d48 in _p


uid: 70  
Date/Time:  2003-06-27 11:40:52 +1200 
OS Version: 10.2.6 (Build 6L60) 
Host:       stream.blackpepper.co.nz  
Command:    httpd 
PID:        646  
Exception:  EXC_BAD_ACCESS (0x0001) 
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 
0x0025358f  
Thread 0:  
#0   0x90000e2c in read  
#1   0x0000b05c in ap_mpm_pod_check (pod.c:97)  
#2   0x000097f0 in child_main (worker.c:1309)  
#3   0x00009968 in make_child (worker.c:1393)  
#4   0x00009a2c in startup_children (worker.c:1410)  
#5   0x0000a1f0 in ap_mpm_run (worker.c:1722)  
#6   0x0000c60c in main (main.c:660)  
#7   0x00001c74 in _start (crt.c:267)  
#8   0x00001af4 in start  Thread 1:  
#0   0x9003eaa8 in semaphore_wait_signal_trap  
#1   0x9003e8c4 in _pthread_cond_wait  
#2   0x0000b6d8 in ap_queue_pop (fdqueue.c:300)  
#3   0x00008dd4 in worker_thread (worker.c:917)  
#4   0x90020d48 in _pthread_body  Thread 2:  
#0   0x9003eaa8 in semaphore_wait_signal_tra

Most of the time these crashes happen when PHPMyAdmin 
is being used.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-28 16:19 UTC] rasmus@php.net
Chances are one of the many 3rd-party libraries you have linked into PHP is not threadsafe.  Or it isn't re-entrant.
Use a non-threaded mpm, or better yet, use the fully tested and production-quality Apache 1.3.x if you are going to use PHP.  

I'm going to suspend this for now as we do not have anybody motivated to support Apache2.
 [2003-06-28 20:57 UTC] sniper@php.net
Rasmus: Having nobody to 'support' Apache2 is no reason to susped any reports, otherwise you'd have to susped all the apache2 reports. Just leave them open.

 [2003-07-10 23:57 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

And get the latest Apache2 version. And compile it with the "prefork" MPM.

 [2003-07-18 18:54 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC