ID:               20539
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Bogus
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Linux
 PHP Version:      4CVS-2002-11-21 (stable)
 New Comment:

he is probably not, see #20604


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

[2002-11-26 20:42:46] [EMAIL PROTECTED]

This can be anything from broken hardware to some file errors..but
surely it's not bug in PHP since you're the only one reporting it.


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

[2002-11-26 06:27:59] [EMAIL PROTECTED]

Today I tried snap php4-STABLE-200211261030.tar.gz. It produces the
same segfault like reported above.

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

[2002-11-25 06:58:21] [EMAIL PROTECTED]

> Did you compile the last test from CLEAN sources?

Yes, every time a new fresh CVS download. And btw. removing the
download directory from the test before.

> ie. do us all a favour and grab the latest snapshot
> from snaps.php.net and try again.

I'll that today evening.

> If it still fails, I suspect there's something very broken
> in your system. (what gcc version are you using..? )

gcc version 2.95.4 (latest debian release, i guess)

It might be my system, sure - but I cannot locate a single error that
points to that problem. If I'm wrong, please gimme a hint.

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

[2002-11-25 06:35:39] [EMAIL PROTECTED]

Did you compile the last test from CLEAN sources?
ie. do us all a favour and grab the latest snapshot
from snaps.php.net and try again.

If it still fails, I suspect there's something very broken
in your system. (what gcc version are you using..? )


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

[2002-11-25 02:19:11] [EMAIL PROTECTED]

Just compiled a fresh CVS version without any ./configure arguments:

./buildconf
./configure
make
make install

running the script:
<?php
    echo "test\n";
?>

producing:

test
Segmentation fault

running gdb:

GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or 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.
This GDB was configured as "i386-linux"...
(gdb) run php-test.php
Starting program: /usr/local/bin/php php-test.php
test

Program received signal SIGSEGV, Segmentation fault.
0x080fd985 in _efree (ptr=0x819f7f4) at
/tmp/php4/Zend/zend_alloc.c:229
229             REMOVE_POINTER_FROM_LIST(p);

(gdb) bt
#0  0x080fd985 in _efree (ptr=0x819f7f4) at
/tmp/php4/Zend/zend_alloc.c:229
#1  0x081096e9 in _zval_dtor (zvalue=0x819f998) at
/tmp/php4/Zend/zend_variables.c:44
#2  0x08102409 in free_zend_constant (c=0x819f998) at
/tmp/php4/Zend/zend_constants.c:31
#3  0x0810de64 in zend_hash_destroy (ht=0x8167288) at
/tmp/php4/Zend/zend_hash.c:543
#4  0x08102728 in zend_shutdown_constants () at
/tmp/php4/Zend/zend_constants.c:151
#5  0x0810a11d in zend_shutdown () at /tmp/php4/Zend/zend.c:552
#6  0x080e8042 in php_module_shutdown () at /tmp/php4/main/main.c:1316
#7  0x08120797 in main (argc=2, argv=0xbffffdf4) at
/tmp/php4/sapi/cli/php_cli.c:809

(gdb) bt full
#0  0x080fd985 in _efree (ptr=0x819f7f4) at
/tmp/php4/Zend/zend_alloc.c:229
        ptr = (void *) 0x819f7f4
        p = (zend_mem_header *) 0x819f7e8
        cache_index = 135912072
#1  0x081096e9 in _zval_dtor (zvalue=0x819f998) at
/tmp/php4/Zend/zend_variables.c:44
        zvalue = (zval *) 0x819f998
#2  0x08102409 in free_zend_constant (c=0x819f998) at
/tmp/php4/Zend/zend_constants.c:31
        c = (zend_constant *) 0x819f998
#3  0x0810de64 in zend_hash_destroy (ht=0x8167288) at
/tmp/php4/Zend/zend_hash.c:543
        ht = (HashTable *) 0x8167288
        p = (Bucket *) 0x81a0568
        q = (Bucket *) 0x819f968
#4  0x08102728 in zend_shutdown_constants () at
/tmp/php4/Zend/zend_constants.c:151
No locals.
#5  0x0810a11d in zend_shutdown () at /tmp/php4/Zend/zend.c:552
No locals.
#6  0x080e8042 in php_module_shutdown () at /tmp/php4/main/main.c:1316
No locals.
#7  0x08120797 in main (argc=2, argv=0xbffffdf4) at
/tmp/php4/sapi/cli/php_cli.c:809
        exit_status = 0
        c = 135912072
        file_handle = {type = 2 '\002', filename = 0xbffffede
"php-test.php", opened_path = 0x0, handle = {fd = 135867464, fp =
0x8192c48}, free_filename = 0 '\0'}
        behavior = 1
        orig_optind = 1
        orig_optarg = 0x0
        arg_free = 0xbffffd5c ""
        script_file = 0xbffffede "php-test.php"
        global_vars = {head = 0x0, tail = 0x0, size = 4, count = 0,
dtor = 0, persistent = 0 '\0', traverse_ptr = 0x816195c}
        interactive = 0
        module_started = 1
        exec_direct = 0x0
        param_error = 0x0
(gdb)

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/20539

-- 
Edit this bug report at http://bugs.php.net/?id=20539&edit=1

Reply via email to