php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42188 session_start segfaults with Apache 2
Submitted: 2007-08-02 20:03 UTC Modified: 2007-08-11 01:00 UTC
Votes:6
Avg. Score:5.0 ± 0.0
Reproduced:6 of 6 (100.0%)
Same Version:6 (100.0%)
Same OS:2 (33.3%)
From: h dot fietz at dezem dot de Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.2.3 OS: Gentoo 2006.1
Private report: No CVE-ID: None
 [2007-08-02 20:03 UTC] h dot fietz at dezem dot de
Description:
------------
PHP crashes ("Child pid xxx exit signal segmentation fault" in Apache's error_log) on calling session_start().

Environment:
AMD Opteron 146 (64bit)
Gentoo Linux 2006.1
Apache 2.0.58
PHP 5.2.3 from portage ebuild

Reproduce code:
---------------
<?
sleep(30);        // give some time to attach gdb
session_start();  // crash
echo "Never comes here<br>";
?>


Expected result:
----------------
session starts

Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46971518093328 (LWP 26146)]
0x00002ab8688ac430 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x00002ab8688ac430 in strlen () from /lib/libc.so.6
#1  0x00002ab86a81c934 in zif_session_encode () from /usr/lib64/apache2/modules/libphp5.so
#2  0x00002ab86a81efc5 in php_session_start () from /usr/lib64/apache2/modules/libphp5.so
#3  0x00002ab86a81f8b9 in zif_session_start () from /usr/lib64/apache2/modules/libphp5.so
#4  0x00002ab86a975512 in execute () from /usr/lib64/apache2/modules/libphp5.so
#5  0x00002ab86a9660d3 in execute () from /usr/lib64/apache2/modules/libphp5.so
#6  0x00002ab86a94715d in zend_execute_scripts () from /usr/lib64/apache2/modules/libphp5.so
#7  0x00002ab86a905b18 in php_execute_script () from /usr/lib64/apache2/modules/libphp5.so
#8  0x00002ab86a9c5dbd in php_ap2_register_hook () from /usr/lib64/apache2/modules/libphp5.so
#9  0x0000000000426d69 in ap_run_handler ()
#10 0x0000000000429c62 in ap_invoke_handler ()
#11 0x0000000000424d38 in ap_process_request ()
#12 0x000000000041fd30 in _start ()


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-09-11 02:54 UTC] tony at mcrsys dot com
Mac OSX 10.5 (Leopard), PHP 5.2.3
Same stack trace, from index.php, session_start() before any output.
 [2007-10-09 08:45 UTC] oyvind at selbek dot com
OSX 10.5 Leopard, issue confirmed. Let's hope it gets fixed before 
Leopard goes retail. This makes PHP almost useless on leopard :/
 [2008-07-18 22:55 UTC] adam dot prall at thinkingman dot com
Issue confirmed on two machines: Mac OS X 10.5.4 on an Intel and a PPC 
Machine with identical configurations, running Apache2 64 bit with PHP 
5.2.4 entropy version.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 16:01:31 2024 UTC