php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3001 Crashes trying to do anything with sessions
Submitted: 1999-12-18 17:44 UTC Modified: 2000-08-05 05:27 UTC
From: blalor at hcirisc dot cs dot binghamton dot edu Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.12 OS: SunOS 4.1.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: blalor at hcirisc dot cs dot binghamton dot edu
New email:
PHP Version: OS:

 

 [1999-12-18 17:44 UTC] blalor at hcirisc dot cs dot binghamton dot edu
./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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-28 21:29 UTC] sas at cvs dot php dot net
Disable --enable-trans-sid for now. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 15:01:31 2024 UTC