PHP 4.0 Bug #8392 Updated: crash with --enable-debug, backtrace sourcefile
| From: | mog at linux dot nu | Date: | Sat, 17 Mar 2001 02:12:44 +0000 |
| Subject: | PHP 4.0 Bug #8392 Updated: crash with --enable-debug, backtrace sourcefile | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49187@lists.php.net to get a copy of this message | ||
ID: 8392
User Update by: mog@linux.nu
Old-Status: Feedback
Status: Open
Bug Type: Reproduceable crash
Description: crash with --enable-debug, backtrace sourcefile
Hello.
I'm sorry i haven't been able to reproduce this for a long
time. I think this bug is dependend on certain db structure
and code of other files included from the main file.
And the new code doesn't use =& even though it doesn't crash
when using it. Might be because the db was cleared and refilled.
Anyway thanks for the (little late) feedback.
- Mog
Previous Comments:
---------------------------------------------------------------------------
[2001-03-16 20:29:29] sniper@php.net
Does this happen with latest CVS snapshot from http://snaps.php.net/ ??
--Jani
---------------------------------------------------------------------------
[2000-12-23 21:44:21] mog@linux.nu
hi agin
if i use:
$PHORUM_ROWS[$row["message_id"]] = $PHORUM_ROWS_UNSORTED[$key];
instead of:
$PHORUM_ROWS[$row["message_id"]] =&
$PHORUM_ROWS_UNSORTED[$key];
the crash doesn't occur, so apparantly it has to do with
variable references and arrays or something
thanks, keep up the good work!
// Morgan
---------------------------------------------------------------------------
[2000-12-23 21:32:21] mog@linux.nu
for some reason it just crashes
the distro is a standard redhat 7 with compiled php
configured with
'./configure' '--with-gd' '--with-mysql' '--with-xml'
'--with-apxs'
--enable-debug too, but phpinfo() apparantly didn't list it
the php file that crashes is available at:
http://hem.netlink.se/~sft3905/list.php
phpinfo(); output is available at:
http://hem.netlink.se/~sft3905/phpinfo.html
backtrace:
(gdb) r -X -D HAVE_PHP4
Starting program: /usr/sbin/httpd -X -D HAVE_PHP4
Program received signal SIGSEGV, Segmentation fault.
0x402d8f71 in _efree (ptr=0x8125184) at zend_alloc.c:232
232
REMOVE_POINTER_FROM_LIST(p);
(gdb) bt
#0 0x402d8f71 in _efree (ptr=0x8125184) at zend_alloc.c:232
#1 0x402f0591 in _zval_dtor (zvalue=0x81237e4) at
zend_variables.c:62
#2 0x402e8afe in zend_assign_to_variable (result=0x80f04ec,
op1=0x80f04fc,
op2=0x80f050c, value=0x80ecbbc, type=4, Ts=0xbfffb230)
at ./zend_execute.c:357
#3 0x402e2525 in execute (op_array=0x80f2ee0) at
./zend_execute.c:1261
#4 0x402e375a in execute (op_array=0x8121ec4) at
./zend_execute.c:1559
#5 0x402e5d1d in execute (op_array=0x80e80a4) at
./zend_execute.c:2063
#6 0x402f18c1 in zend_execute_scripts (type=8,
file_count=3) at zend.c:729
#7 0x40302aaf in php_execute_script
(primary_file=0xbffff860) at main.c:1221
#8 0x402ff3e2 in apache_php_module_main (r=0x80e1c0c,
display_source_mode=0)
at sapi_apache.c:89
#9 0x402ffcf5 in send_php (r=0x80e1c0c,
display_source_mode=0, filename=0x0)
at mod_php4.c:506
#10 0x402ffd2a in send_parsed_php (r=0x80e1c0c) at
mod_php4.c:517
#11 0x80538b9 in ap_invoke_handler ()
#12 0x80638d2 in ap_some_auth_required ()
#13 0x806393f in ap_process_request ()
#14 0x805cf37 in ap_child_terminate ()
#15 0x805d0bf in ap_child_terminate ()
#16 0x805d1d4 in ap_child_terminate ()
#17 0x805d6ff in ap_child_terminate ()
#18 0x805de38 in main ()
---Type <return> to continue, or q <return> to quit---
#19 0x40145a7c in __libc_start_main (main=0x805db00 <main>,
argc=4,
ubp_av=0xbffffaf4, init=0x804f1d0 <_init>,
fini=0x807e98c <_fini>,
rtld_fini=0x4000d684 <_dl_fini>, stack_end=0xbffffaec)
at ../sysdeps/generic/libc-start.c:111
thanks for your help!
- Mog
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8392