Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8104 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61148 invoked by uid 1010); 24 Feb 2004 21:45:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60926 invoked from network); 24 Feb 2004 21:45:29 -0000 Received: from unknown (HELO smtp1.pp.htv.fi) (212.90.64.119) by pb1.pair.com with SMTP; 24 Feb 2004 21:45:29 -0000 Received: from localhost.localdomain (cs181008.pp.htv.fi [213.243.181.8]) by smtp1.pp.htv.fi (Postfix) with ESMTP id CE2D77FC3C; Tue, 24 Feb 2004 23:45:27 +0200 (EET) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.10/8.12.10) with ESMTP id i1OLjNpn007000; Tue, 24 Feb 2004 23:45:26 +0200 Date: Tue, 24 Feb 2004 23:45:23 +0200 (EET) Reply-To: Jani Taskinen To: Hans Lellelid Cc: Hans Lellelid , internals@lists.php.net In-Reply-To: <403B97D3.6040202@appliedsec.com> Message-ID: References: <403053EC.6090501@velum.net> <403B97D3.6040202@appliedsec.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Re: segfault in shutdown sequence From: sniper@iki.fi (Jani Taskinen) This is most likely fixed already in CVS. --Jani p.s. ALWAYS try the latest snapshot first before submitting any bug report / sending any mails. On Tue, 24 Feb 2004, Hans Lellelid wrote: >Hi - I know that this segfault report is quite vague. Can anyone tell >me by looking at the stacktrace where I could start looking for the >problem? I have not tested this on latest snapshot (the stacktrace >below is w/ PHP5b4), but am told the problem persists. Seems clearly to >be in shutdown sequence but beyond that I'm not sure -- Reflection_API, >XML (expat) ... ? Not using destructors... > >Thanks- >Hans > >Hans Lellelid wrote: >> I'm getting a segfault at the end of (successful) script execution. >> Appears to be an issue in the shutdown sequence; I'm unsure how to >> report this bug, since providing duplicating code is not possible. >> >> The segfault is happening at the end of a Phing (http://phing.info) >> build process, which involves many (over a hundred, I'm sure) classes, >> uses reflection api heavily, XML (expat), etc. >> >> Here's a bugtrace from the core file. I don't know if this is any help >> at all. I was hoping to find some 'execute' lines so I could track down >> the issue in my code. This seems to be just part of the shutdown >> sequence, though. If anyone has some suggestions for things I could look >> for, please let me know. >> >> Thanks, >> Hans >> >> #0 0x0818e625 in zend_mm_remove_from_free_list (heap=0x81f7a80, >> mm_block=0xbed43144) >> at /home/work/php-5.0.0b4/Zend/zend_mm.c:163 >> #1 0x0818e158 in zend_mm_free (heap=0x81f7a80, p=0xbed434b0) >> at /home/work/php-5.0.0b4/Zend/zend_mm.c:356 >> #2 0x0816bf79 in _efree (ptr=0x3) at >> /home/work/php-5.0.0b4/Zend/zend_alloc.c:283 >> #3 0x0818bc50 in zend_objects_free_object_storage (object=0xbed44fec) >> at /home/work/php-5.0.0b4/Zend/zend_objects.c:78 >> #4 0x0818e94e in reflection_free_objects_storage (object=0xbed44fec) >> at /home/work/php-5.0.0b4/Zend/zend_reflection_api.c:191 >> #5 0x0818da3c in zend_objects_store_del_ref (zobject=0x3) >> at /home/work/php-5.0.0b4/Zend/zend_objects_API.c:140 >> #6 0x0817c1d1 in _zval_dtor (zvalue=0xbed443e4) >> at /home/work/php-5.0.0b4/Zend/zend_variables.c:61 >> #7 0x08174f79 in _zval_ptr_dtor (zval_ptr=0xbed48798) >> at /home/work/php-5.0.0b4/Zend/zend_execute_API.c:359 >> #8 0x08182da0 in zend_hash_destroy (ht=0xbedae214) >> at /home/work/php-5.0.0b4/Zend/zend_hash.c:513 >> #9 0x0817c1fd in _zval_dtor (zvalue=0xbedafc14) >> at /home/work/php-5.0.0b4/Zend/zend_variables.c:52 >> #10 0x08174f79 in _zval_ptr_dtor (zval_ptr=0xbed46430) >> at /home/work/php-5.0.0b4/Zend/zend_execute_API.c:359 >> #11 0x08182da0 in zend_hash_destroy (ht=0xbed44324) >> at /home/work/php-5.0.0b4/Zend/zend_hash.c:513 >> #12 0x0818bc47 in zend_objects_free_object_storage (object=0xbedac1cc) >> at /home/work/php-5.0.0b4/Zend/zend_objects.c:77 >> #13 0x0818d878 in zend_objects_store_free_object_storage >> (objects=0x81f7f70) >> at /home/work/php-5.0.0b4/Zend/zend_objects_API.c:71 >> #14 0x08174d90 in shutdown_executor () >> at /home/work/php-5.0.0b4/Zend/zend_execute_API.c:273 >> #15 0x0817d4ec in zend_deactivate () at >> /home/work/php-5.0.0b4/Zend/zend.c:813 >> #16 0x0814cd9b in php_request_shutdown (dummy=0x0) >> at /home/work/php-5.0.0b4/main/main.c:1243 >> #17 0x081a13bf in main (argc=9, argv=0xbff651c4) >> at /home/work/php-5.0.0b4/sapi/cli/php_cli.c:1044 > > -- https://www.paypal.com/xclick/business=sniper@php.net&no_note=1&tax=0¤cy_code=EUR