ID:               29996
 User updated by:  thomas dot hebinck at digionline dot de
 Reported By:      thomas dot hebinck at digionline dot de
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Linux Debian Woody
 PHP Version:      5.0.0
 New Comment:

there a tons of includes in there ... a few thousand lines of code ...


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

[2004-09-06 15:18:35] [EMAIL PROTECTED]

What's in /SPACE/ww3-dev/www/ww3ee/8.php ?
Are you able to reproduce it with this script?

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

[2004-09-06 12:12:33] thomas dot hebinck at digionline dot de

I know, this is far to less information to fix anything.
When I add --with-debug, it seems, that everything breaks much earlier
- even scripts, that work normally don't work any more.

Bye,
Thomas.

ww3-dev:/# gdb /usr/local/apache1/bin/httpd
gdb: Symbol `emacs_ctlx_keymap' has different size in shared object,
consider re-linking
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"...(no debugging symbols
found)...
(gdb) run -X
Starting program: /usr/local/apache1/bin/httpd -X
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...[New Thread 1024 (LWP 12399)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 12399)]
0x400d8bb8 in free () from /lib/libc.so.6
(gdb) bt
#0  0x400d8bb8 in free () from /lib/libc.so.6
#1  0x400d8aa3 in free () from /lib/libc.so.6
#2  0x402f5001 in zend_hash_del_key_or_index (ht=0x816b16c,
arKey=0x824582c "p_parent", nKeyLength=9, h=755180190, flag=0) at
/usr/src/php-5.0.1/Zend/zend_hash.c:495
#3  0x40302ccb in zend_std_unset_property (object=0xbfffeb80,
member=0x814d7f4) at
/usr/src/php-5.0.1/Zend/zend_object_handlers.c:506
#4  0x40317b52 in zend_unset_dim_obj_handler (execute_data=0xbfffe800,
opline=0x814d7c4, op_array=0x81431e4) at
/usr/src/php-5.0.1/Zend/zend_execute.c:3662
#5  0x403116f9 in execute (op_array=0x81431e4) at
/usr/src/php-5.0.1/Zend/zend_execute.c:1400
#6  0x403153ff in zend_do_fcall_common_helper (execute_data=0xbfffe920,
opline=0x8239da4, op_array=0x823b03c) at
/usr/src/php-5.0.1/Zend/zend_execute.c:2737
#7  0x403158d0 in zend_do_fcall_by_name_handler
(execute_data=0xbfffe920, opline=0x8239da4, op_array=0x823b03c) at
/usr/src/php-5.0.1/Zend/zend_execute.c:2822
#8  0x403116f9 in execute (op_array=0x823b03c) at
/usr/src/php-5.0.1/Zend/zend_execute.c:1400
#9  0x402e0cc4 in zend_call_function (fci=0xbfffead0,
fci_cache=0xbfffea90) at
/usr/src/php-5.0.1/Zend/zend_execute_API.c:835
#10 0x402fecee in zend_call_method (object_pp=0xbfffeb7c,
obj_ce=0x81db894, fn_proxy=0x0, function_name=0x403a4957 "__destruct",
function_name_len=10, retval_ptr_ptr=0x0, param_count=0, arg1=0x0,
    arg2=0x0) at /usr/src/php-5.0.1/Zend/zend_interfaces.c:79
#11 0x40301c9f in zend_objects_destroy_object (object=0x81d9774,
handle=5) at /usr/src/php-5.0.1/Zend/zend_objects.c:78
#12 0x40304282 in zend_objects_store_call_destructors
(objects=0x4040b6a4) at /usr/src/php-5.0.1/Zend/zend_objects_API.c:54
#13 0x402decf2 in shutdown_executor () at
/usr/src/php-5.0.1/Zend/zend_execute_API.c:209
#14 0x402eceed in zend_deactivate () at
/usr/src/php-5.0.1/Zend/zend.c:819
#15 0x402a5ca7 in php_request_shutdown (dummy=0x0) at
/usr/src/php-5.0.1/main/main.c:1212
#16 0x4031d858 in apache_php_module_main (r=0x811b734,
display_source_mode=0) at
/usr/src/php-5.0.1/sapi/apache/sapi_apache.c:60
#17 0x4031e782 in send_php (r=0x811b734, display_source_mode=0,
filename=0x811c254 "/SPACE/ww3-dev/www/ww3ee/8.php") at
/usr/src/php-5.0.1/sapi/apache/mod_php5.c:622
#18 0x4031e7f1 in send_parsed_php (r=0x811b734) at
/usr/src/php-5.0.1/sapi/apache/mod_php5.c:637
#19 0x08058307 in ap_invoke_handler ()
#20 0x0806d39f in process_request_internal ()
#21 0x0806d400 in ap_process_request ()
#22 0x08064439 in child_main ()
#23 0x080645e4 in make_child ()
#24 0x0806474c in startup_children ()
#25 0x08064e42 in standalone_main ()
#26 0x0806568a in main ()
#27 0x4008314f in __libc_start_main () from /lib/libc.so.6
(gdb)

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

[2004-09-06 11:36:17] [EMAIL PROTECTED]

If you're unable to reproduce it than why do you think we can fix it?
Try at least to generate a gdb backtrace.

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

[2004-09-06 11:32:21] thomas dot hebinck at digionline dot de

Description:
------------
Hi,

there is some strange error in the release version of PHP5:
I use a massive amoung of objects and in some scripts, I get a
segmentation fault after the whole script run.
This results in a missing end of die output (since PHP is called from
within apache).
I tried 5.0.0, 5.0.1 and 5.1-dev from yesterday.
I switched back to 5.0.0RC3 and everything is fine again.

I know, this will be "useless" as a bug report, but maybe others have
the same problem.
And then at least it is a hint, when the bug went into the source
code.

Bye,
Thomas.

---

sh ./configure \
        --disable-ipv6 \
        --with-apxs=/usr/local/apache1/bin/apxs \
        --prefix=/usr/local/apache1/php \
        --with-config-file-path=/usr/local/apache1/php \
        --disable-all \
        --with-ldap \
        --with-pgsql=/usr/local/pgsql \
        --with-gmp \
        --enable-xml \
        --enable-libxml \
        --with-pcre-regex \
        --with-imap=/usr/src/imap-2004a \
        --without-imap-ssl \


Reproduce code:
---------------
sorry - I cannot reproduce the bug with only a few lines of code.

Expected result:
----------------
;-)

Actual result:
--------------
[Sun Sep  5 15:59:54 2004] [notice] Apache/1.3.31 (Unix) PHP/5.0.0
configured -- resuming normal operations
[Sun Sep  5 15:59:54 2004] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Sun Sep  5 16:00:01 2004] [notice] child pid 30806 exit signal
Segmentation fault (11)
[Sun Sep  5 16:00:21 2004] [notice] child pid 30818 exit signal
Segmentation fault (11)
[Sun Sep  5 16:00:21 2004] [notice] child pid 30817 exit signal
Segmentation fault (11)
[Sun Sep  5 16:00:21 2004] [notice] child pid 30805 exit signal
Segmentation fault (11)
[Sun Sep  5 16:00:22 2004] [notice] child pid 30847 exit signal
Segmentation fault (11)
[Sun Sep  5 16:00:22 2004] [notice] child pid 30846 exit signal
Segmentation fault (11)
[Sun Sep  5 16:00:22 2004] [notice] child pid 30839 exit signal
Segmentation fault (11)
[Sun Sep  5 16:00:22 2004] [notice] child pid 30803 exit signal
Segmentation fault (11)



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


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

Reply via email to