Bug #3001: Crashes trying to do anything with sessions

From: Date: Sat, 18 Dec 1999 22:44:13 +0000
Subject: Bug #3001: Crashes trying to do anything with sessions
Groups: php.dev 
Request: Send a blank email to php-dev+get-13833@lists.php.net to get a copy of this message
From: blalor@hcirisc.cs.binghamton.edu Operating system: SunOS 4.1.4 PHP version: 3.0.12 PHP Bug Type: Reproduceable crash Bug description: Crashes trying to do anything with sessions ./configure --enable-trans-sid --enable-force-cgi-redirect --enable-discard-path --enable-safe-mode --enable-track-vars --disable-debug test.php4 consists of: <? session_start(); ?> [beer@adore ~/php-4.0b3]> ./php ~/www/test.php4 Content-Type: text/html Set-cookie: PHPSESSID=19815c558d597f935908bac2220a8aa6 Segmentation fault (core dumped) [beer@adore ~/php-4.0b3]> ./php Content-Type: text/html [beer@adore ~/php-4.0b3]> gdb ./php ~/www/test.php4 GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.12 (sparc-sun-sunos4.1.3), Copyright 1994 Free Software Foundation, Inc... (gdb) run ~/www/test.php4 Starting program: /home/beer/php-4.0b3/./php ~/www/test.php4 Content-Type: text/html Set-cookie: PHPSESSID=824a0ce18cc3e25904b14273d981d1ee Program received signal SIGSEGV, Segmentation fault. 0xef7796ac in dbytecp () (gdb) bt #0 0xef7796ac in dbytecp () #1 0x899f4 in catchup (state=0xeffff248) at ../../../php4/ext/standard/url_scanner.re:123 #2 0x8a8b8 in url_scanner (state=0xeffff248) at ../../../php4/ext/standard/url_scanner.re:165 #3 0x8aa84 in url_adapt (src=0xe6914 "", srclen=4, data=0xeffff2d8 "PHPSESSID=824a0ce18cc3e25904b14273d981d1ee", newlen=0xeffff2d4) at ../../../php4/ext/standard/url_scanner.re:189 #4 0x5bb8c in session_adapt_uris (src=0xe6910 "/tmp", srclen=4, new=0xeffff544, newlen=0xeffff540) at session.c:859 #5 0x8c1f4 in php_ub_body_write_no_header (str=0xe6910 "/tmp", str_length=4) at output.c:310 #6 0x8c28c in php_ub_body_write (str=0xe6910 "/tmp", str_length=4) at output.c:338 #7 0x8bed8 in php_body_write (str=0xe6910 "/tmp", str_length=4) at output.c:148 #8 0x33b0 in php_body_write_wrapper (str=0xe6910 "/tmp", str_length=4) at main.c:804 #9 0x18190 in zend_print_zval (expr=0xeffff7f8, indent=0) at zend.c:185 #10 0x17d68 in zend_print_variable (var=0xeffff7f8) at zend_variables.c:162 #11 0x36f54 in execute (op_array=0xe8698) at zend_execute.c:1135 #12 0x3df4 in php_execute_script (primary_file=0xeffffb08) at main.c:1199 #13 0x510b0 in main (argc=2, argv=0xeffffb84) at cgi_main.c:470 (gdb) cont Continuing. Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists.

« previous php.dev (#13833) next »