php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8392 crash with --enable-debug, backtrace sourcefile
Submitted: 2000-12-23 21:32 UTC Modified: 2001-03-17 12:50 UTC
From: mog at linux dot nu Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.4 OS: Linux RedHat 7.0
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: mog at linux dot nu
New email:
PHP Version: OS:

 

 [2000-12-23 21:32 UTC] mog at linux dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-23 21:44 UTC] mog at linux dot 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

 [2001-03-16 20:29 UTC] sniper@php.net
Does this happen with latest CVS snapshot from http://snaps.php.net/ ??

--Jani

 [2001-03-16 21:12 UTC] mog at linux dot nu
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
 [2001-03-17 12:50 UTC] sniper@php.net
Not able to reproduce -> closed. (reopen if you get it to crash again.. :)


--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 07:01:27 2025 UTC