php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15457 session_start() segfaults when using mm as handler
Submitted: 2002-02-08 15:43 UTC Modified: 2002-02-08 19:20 UTC
From: wboring at qualys dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.1.1 OS: linux 2.4.8
Private report: No CVE-ID: None
 [2002-02-08 15:43 UTC] wboring at qualys dot com
Every time I call session_start() w/ mm as the serializer/handler php segfaults.  W/ apache 1.3.23

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 16616)]
0x4028f1ba in php_session_decode (val=0x8149afc "\204?\217*", vallen=0)
    at session.c:457
457             if (PS(serializer)->decode(val, vallen TSRMLS_CC) == FAILURE) {
(gdb) bt
#0  0x4028f1ba in php_session_decode (val=0x8149afc "\204?\217*", vallen=0)
    at session.c:457
#1  0x4028f530 in php_session_initialize () at session.c:524
#2  0x402905a6 in php_session_start () at session.c:890
#3  0x40291f1b in zif_session_start (ht=0, return_value=0x8145494, this_ptr=0x0,
    return_value_used=0) at session.c:1264
#4  0x402237ed in execute (op_array=0x814540c) at ./zend_execute.c:1590
#5  0x40234a50 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at zend.c:814
#6  0x40247602 in php_execute_script (primary_file=0xbffff450) at main.c:1307
#7  0x402421de in apache_php_module_main (r=0x813b474, display_source_mode=0)
    at sapi_apache.c:90
#8  0x402430cc in send_php (r=0x813b474, display_source_mode=0,
    filename=0x813bfac "/home/waboring/devel/current/php/fo/test/session_test.php") at mod_php4.c:575
#9  0x40243145 in send_parsed_php (r=0x813b474) at mod_php4.c:590
#10 0x080742e7 in ap_invoke_handler (r=0x813b474) at http_config.c:517
#11 0x0808993b in process_request_internal (r=0x813b474) at http_request.c:1308
#12 0x080899b0 in ap_process_request (r=0x813b474) at http_request.c:1324
#13 0x080807e2 in child_main (child_num_arg=0) at http_main.c:4565
#14 0x08080a57 in make_child (s=0x80dac44, slot=0, now=1013189975)
    at http_main.c:4724
#15 0x08080b08 in startup_children (number_to_start=1) at http_main.c:4751
#16 0x080811b0 in standalone_main (argc=1, argv=0xbffff884) at http_main.c:5056
#17 0x08081a1f in main (argc=1, argv=0xbffff884) at http_main.c:5401
#18 0x400c15b0 in __libc_start_main () from /lib/libc.so.6


my config
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr \
--with-oci8=/u01/app/oracle/product/8.1.7 \
--enable-sigchild \
--with-mcrypt \
--with-gd=/usr \
--with-png-dir=/usr \
--with-jpeg-dir=/usr \
--with-zlib-dir=/usr \
--enable-sysvsem \
--enable-sysvshm \
--enable-trackvars \
--with-xml \
--with-zlib \
--enable-debug

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-08 16:02 UTC] wboring at qualys dot com
I have also tried this with the latest cvs as of 1:02pm PST,
and it still happens.
 [2002-02-08 18:54 UTC] wboring at qualys dot com
didn't have --with-mm on this build.  
 [2002-02-08 19:20 UTC] yohgaki@php.net
Just a additional note.

mm save handler is somewhat broken. I made patch for it, but I haven't applied it yet.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Sep 17 17:01:27 2024 UTC