From:             archer at priorityonline dot net
Operating system: Debian AMD64
PHP version:      5.1.4
PHP Bug Type:     Session related
Bug description:  Segfault on AMD64 Arch - using mm session_handler

Description:
------------
Not sure whats Causing this, but PHP seems to be randomly Segfaulting on
my box. 

php-fcgi[29112]: segfault at 0000000000000000 rip 000000000055e503 rsp
00007fff7546d970 error 4
php-fcgi[17660] general protection rip:55e960 rsp:7fff52046690 error:0

I've attached a back trace below , let me know if u need anymore
information.

Seems to be related to the use of the mm session handler, but can't be
sure.

--Keth

Reproduce code:
---------------
-- Configured With --
Configure Command => 
./configure --prefix=/usr --with-pear --enable-shared --with-mm
--with-mysqli=/usr/bin/mysql_config --with-mysql=/usr --enable-fastcgi
--enable-pcntl --enable-ftp --with-gd=/usr --with-jpeg-dir=/usr
--with-png-dir=/usr --enable-gd-native-ttf --with-zlib-dir=/usr
--with-openssl=/usr --with-zlib=/usr --enable-force-cgi-redirect
--with-bz2=/usr --with-config-file-path=/etc/php --enable-track-vars
--enable-mbstring --with-pdo-mysql=/usr --with-pdo-pgsql --with-imap=/usr
--enable-sockets --with-kerberos --with-imap-ssl --with-gettext
--with-pgsql=/usr --with-pdo-pgsql=/usr --with-pear=/usr/lib/php/PEAR
--with-curl 

Expected result:
----------------
Code Should run fine.

Actual result:
--------------
#0  ps_sd_lookup (data=<value optimized out>, key=0x1358218
"Jflnxj3OjFZGLcFuZV,W,2", rw=0) at
/root/php-5.1.4/ext/session/mod_mm.c:189
#1  0x000000000055ed07 in ps_read_mm (mod_data=<value optimized out>,
key=0x1358218 "Jflnxj3OjFZGLcFuZV,W,2", val=0x7fff52046740,
vallen=0x7fff5204675c) at /root/php-5.1.4/ext/session/mod_mm.c:328
#2  0x000000000055bbb0 in php_session_start () at
/root/php-5.1.4/ext/session/session.c:772
#3  0x000000000055c229 in zif_session_start (ht=20283928,
return_value=0x1358218, return_value_ptr=0x16, this_ptr=0x16,
return_value_used=-16843009) at
/root/php-5.1.4/ext/session/session.c:1696
#4  0x000000000067c22c in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff52046a90) at
/root/php-5.1.4/Zend/zend_vm_execute.h:200
#5  0x000000000067b923 in execute (op_array=0x1380ab8) at
/root/php-5.1.4/Zend/zend_vm_execute.h:92
#6  0x000000000067bd9b in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff52047030) at
/root/php-5.1.4/Zend/zend_vm_execute.h:234
#7  0x000000000067b923 in execute (op_array=0xc4b5d8) at
/root/php-5.1.4/Zend/zend_vm_execute.h:92
#8  0x0000000000680f99 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
(execute_data=0x7fff5204a7b0) at
/root/php-5.1.4/Zend/zend_vm_execute.h:1971
#9  0x000000000067b923 in execute (op_array=0xf44878) at
/root/php-5.1.4/Zend/zend_vm_execute.h:92
#10 0x0000000000661423 in zend_execute_scripts (type=8, retval=0x178,
file_count=3) at /root/php-5.1.4/Zend/zend.c:1109
#11 0x0000000000625a68 in php_execute_script (primary_file=0x7fff5204f310)
at /root/php-5.1.4/main/main.c:1732
#12 0x00000000006eda55 in main (argc=3, argv=0x7fff5204f538) at
/root/php-5.1.4/sapi/cgi/cgi_main.c:1608


-- 
Edit bug report at http://bugs.php.net/?id=38348&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38348&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38348&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38348&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38348&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38348&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38348&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38348&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38348&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38348&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38348&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38348&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38348&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38348&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38348&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38348&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38348&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38348&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38348&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38348&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38348&r=mysqlcfg

Reply via email to