php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35458 Crash on server-info
Submitted: 2005-11-28 20:36 UTC Modified: 2005-11-28 22:49 UTC
From: jfeise at gmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.1.1 OS: Linux Kernel. 2.6.14
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: jfeise at gmail dot com
New email:
PHP Version: OS:

 

 [2005-11-28 20:36 UTC] jfeise at gmail dot com
Description:
------------
Wich PHP 5.1.1, any access to /server-info crashes Apache with a segfault.
I am using Apache 2.0.55.
It works fine with PHP 5.0.5.
The contents of config.nice:
'./configure' \
'--with-mysql=/usr/local/mysql' \
'--with-apxs2=/usr/local/apache2/bin/apxs' \
'--enable-track-vars' \
'--disable-debug' \
'--with-bz2' \
'--with-zlib' \
'--with-openssl=/usr/local/openssl/' \
"$@"
I am going to post a backtrace later today.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-28 21:34 UTC] jfeise at gmail dot com
The backtrace:
(gdb) run -X                                                                              
Starting program: /usr/local/apache2/bin/httpd -X                                           
[Thread debugging using libthread_db enabled]                                             
[New Thread 16384 (LWP 3476)]                                                             

Program received signal SIGSEGV, Segmentation fault.                                      
[Switching to Thread 16384 (LWP 3476)]                                                    
0xb7acd421 in strcasecmp () from /lib/libc.so.6                                           
(gdb) bt                                                                                  
#0  0xb7acd421 in strcasecmp () from /lib/libc.so.6                                       
#1  0x080b01f5 in mod_info_module_cmds ()                                                 
#2  0x080b0c6a in display_info ()                                                         
#3  0x080d156a in ap_run_handler ()                                                       
#4  0x080d1cd9 in ap_invoke_handler ()                                                    
#5  0x0809b241 in ap_process_request ()                                                   
#6  0x08095647 in ap_process_http_connection ()                                           
#7  0x080de322 in ap_run_process_connection ()                                            
#8  0x080de71c in ap_process_connection ()                                                
#9  0x080cfdfd in child_main ()                                                           
#10 0x080cfed4 in make_child ()
#11 0x080cfffc in startup_children ()                                                     
#12 0x080d040c in ap_mpm_run ()                                                           
#13 0x080d712d in main ()                                                                 
(gdb)
 [2005-11-28 21:39 UTC] tony2001@php.net
Obviously, not PHP problem.
 [2005-11-28 21:45 UTC] jfeise at gmail dot com
I disagree.
This happened after upgrading to PHP 5.1.1, from 5.0.5, without any other changes.
I think #1 in the backtrace, mod_info_module_cmds (), is the issue. The server-info collect module information, and that fails with php 5.1.1.
 [2005-11-28 21:49 UTC] sniper@php.net
First of all: What MPM are you using in Apache2?
And how did you configure PHP in the httpd.conf ?

 [2005-11-28 21:56 UTC] jfeise at gmail dot com
I'm using prefork:
 httpd -l
Compiled in modules:
...
  prefork.c

I'm not quite sure what you mean with the PHP configuration in httpd.conf.
It is pretty much standard:
LoadModule php5_module        modules/libphp5.so
DirectoryIndex index.php index.html index.html.var
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
 [2005-11-28 22:08 UTC] jfeise at gmail dot com
More info:
The Apache error log has this line:
[Mon Nov 28 13:00:03 2005] [crit] ERROR: Linked library:5.0.15 / mysql.h=4.0.20\n
It seems the build picked up the wrong include directory for MySQL. I am recompiling now with the correct include dir.
 [2005-11-28 22:19 UTC] tony2001@php.net
Works perfectly fine here.
 [2005-11-28 22:43 UTC] jfeise at gmail dot com
Ok, it seems that this crash had to do with different modules using different MySQL header files/APIs.
I recompiled all modules that use MySQL, and it is now working.
Thanks all, sorry for bothering you.
 [2005-11-28 22:49 UTC] tony2001@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 06:01:27 2024 UTC