[PHP-DEV] Bug #8621 Updated: be careful with interactive cmd line mode From: andi <email protected>
Date: 04/30/01

ID: 8621
Updated by: andi
Reported By: boian <email protected>
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
PHP Version: 4.0.3pl1 - 4.0.6-dev
Assigned To:
Comments:

Should be fixed in latest CVS

Previous Comments:
---------------------------------------------------------------------------

[2001-04-29 17:50:12] jmoore <email protected>
---------- Forwarded message ----------
Date: Sun, 29 Apr 2001 20:13:24 +0300
From: Boian Bonev <boian <email protected>>
To: Derick Rethans <d.rethans <email protected>>
Subject: bug 8621

i think this is a (e)free on something that is not (e)malloc-ed. or freed twice. i know nothing about the interactive mode and could not get the idea from the source

i have tried to track this down several weeks ago but i could not find a simple reason for the segfault

b.

---------------------------------------------------------------------------

[2001-04-29 13:05:24] bbonev <email protected>
date: Sun Apr 29 19:59:15 EEST 2001
cvs up
./cvsclean
./buildconf
./configure
make
gdb
file ./php
set args -a
run

Interactive mode enabled

<? $a=1 ?>
X-Powered-By: PHP/4.0.6-dev
Content-type: text/html

Program received signal SIGSEGV, Segmentation fault.
0x80c09b9 in _zval_ptr_dtor (zval_ptr=0x8169130) at zend_execute_API.c:259
259 (*zval_ptr)->refcount--;
(gdb) bt full
#0 0x80c09b9 in _zval_ptr_dtor (zval_ptr=0x8169130) at zend_execute_API.c:259
        zval_ptr = (zval **) 0x8169130
#1 0x80c9d81 in zend_hash_destroy (ht=0x813dfac) at zend_hash.c:560
        ht = (HashTable *) 0x813dfac
        p = (Bucket *) 0x0
        q = (Bucket *) 0x8169124
#2 0x80c085a in shutdown_executor () at zend_execute_API.c:165
No locals.
#3 0x80c6c7f in zend_deactivate () at zend.c:536
No locals.
#4 0x805e89e in php_request_shutdown (dummy=0x0) at main.c:660
No locals.
#5 0x805dc9e in main (argc=2, argv=0xbffff904) at cgi_main.c:768
        exit_status = 0
        cgi = 0
        c = 31
        i = -1073743732
        len = 135668168
        file_handle = {type = 2 '

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>