php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15895 session_unregister('xxx') wo session segfaults
Submitted: 2002-03-06 07:20 UTC Modified: 2002-09-23 23:01 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: bo at erichsen dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.1.2 OS: linux i386 rh 6.1 apache1.2.23
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bo at erichsen dot com
New email:
PHP Version: OS:

 

 [2002-03-06 07:20 UTC] bo at erichsen dot com
Test script:
<?php
session_unregister('test');
echo "test";
?>

Red Hat Linux release 6.1 (Cartman)
Linux backup 2.2.12-20smp
Apache 1.2.23
php 4.1.2 

./configure  --with-apxs --with-mysql=/usr/local --enable-debug=yes --enable-trackvars --enable-sockets --enable-calendar --with-gd=../gd-1.8.4 --with-jpeg-dir=/usr/ --with-png-dir=/usr/ --with-imap=/usr/local/ --with-ldap --with-gettext --with-zlib


Program received signal SIGSEGV, Segmentation fault.
0x4020a544 in zend_hash_del_key_or_index (ht=0x81bcf24, arKey=0x81e5b6c "test", nKeyLength=5, h=0, flag=0) at zend_hash.c:484
484             p = ht->arBuckets[nIndex];
(gdb) bt
#0  0x4020a544 in zend_hash_del_key_or_index (ht=0x81bcf24, arKey=0x81e5b6c "test", nKeyLength=5, h=0, flag=0) at zend_hash.c:484
#1  0x40253358 in zif_session_unregister (ht=1, return_value=0x81e5b84, this_ptr=0x0, return_value_used=0) at session.c:1201
#2  0x401f7605 in execute (op_array=0x81e08dc) at ./zend_execute.c:1590
#3  0x4020636b in zend_execute_scripts (type=8, retval=0x0, file_count=3) at zend.c:814
#4  0x402137e3 in php_execute_script (primary_file=0xbffffa30) at main.c:1307
#5  0x4020fa21 in apache_php_module_main (r=0x81287fc, display_source_mode=0) at sapi_apache.c:90
#6  0x402104f3 in send_php (r=0x81287fc, display_source_mode=0, filename=0x0) at mod_php4.c:575
#7  0x40210554 in send_parsed_php (r=0x81287fc) at mod_php4.c:590
#8  0x806d823 in ap_invoke_handler ()
#9  0x80822b9 in process_request_internal ()
#10 0x808231c in ap_process_request ()
#11 0x807961e in child_main ()
#12 0x80797d0 in make_child ()
#13 0x8079929 in startup_children ()
#14 0x8079f86 in standalone_main ()
#15 0x807a753 in main ()
#16 0x400b51eb in __libc_start_main (main=0x807a3fc <main>, argc=2, argv=0xbffffd54, init=0x804f878 <_init>, fini=0x80b131c <_fini>, rtld_fini=0x4000a610 <_dl_fini>,
    stack_end=0xbffffd4c) at ../sysdeps/generic/libc-start.c:90
(gdb)


If you need further information i'll be happy to help!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-23 23:01 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 19:00:03 2025 UTC