Re: Re: PHP 4.0 Bug #2348 Updated: get_browser() segfaults

From: Date: Mon, 22 Nov 1999 07:02:45 +0000
Subject: Re: Re: PHP 4.0 Bug #2348 Updated: get_browser() segfaults
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-12904@lists.php.net to get a copy of this message
Evan Klinger writes: > > OK, I just checked out the latest cvs and compiled; no > > change. > > Can you provide a backtrace? > > See http://bugs.php.net/bugs-generating-backtrace.php3 on how > to > generate one. > -- > > ev I already did--it's included with the original bug report. I did generate a new one; it is pretty much identical. Here it is again (this is the new one): /usr/local/src/php4 shanna% gdb ./php GNU gdb 4.17.0.4 with Linux/x86 hardware watchpoint and FPU support Copyright 1998 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-redhat-linux"... (gdb) run ./browscap.php Starting program: /usr/local/src/php4/./php ./browscap.php Content-Type: text/html 4b3-dev Program received signal SIGSEGV, Segmentation fault. zend_hash_copy (target=0x81e3a20, source=0x0, pCopyConstructor=0x807cecc <zval_add_ref>, tmp=0xbffff66c, size=4) at zend_hash.c:859 859 p = source->pListHead; (gdb) bt #0 zend_hash_copy (target=0x81e3a20, source=0x0, pCopyConstructor=0x807cecc <zval_add_ref>, tmp=0xbffff66c, size=4) at zend_hash.c:859 #1 0x807d015 in _zval_copy_ctor (zvalue=0xbffff7a0, __zend_filename=0x80dfb82 "browscap.c", __zend_lineno=106) at zend_variables.c:152 #2 0x809e45f in php3_get_browser (ht=1, return_value=0xbffff7a0, list=0x811ebb0, plist=0x811ebdc, this_ptr=0x0, return_value_used=1) at browscap.c:106 #3 0x80c31dc in execute (op_array=0x81e03f0) at zend_execute.c:1471 #4 0x806f04d in php_execute_script (primary_file=0xbffffaac) at main.c:1230 #5 0x805858d in main (argc=2, argv=0xbffffad4) at cgi_main.c:470 (gdb) quit Torben

« previous php.dev (#12904) next »