Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40028 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44993 invoked from network); 20 Aug 2008 20:53:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Aug 2008 20:53:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:44720] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/97-06543-5548CA84 for ; Wed, 20 Aug 2008 16:53:42 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 620F71EBC015; Wed, 20 Aug 2008 20:56:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IiZ0zGmKZ5jy; Wed, 20 Aug 2008 22:56:06 +0200 (CEST) Received: from [192.168.0.151] (77-57-23-243.dclient.hispeed.ch [77.57.23.243]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id CB6C24144009; Wed, 20 Aug 2008 22:56:05 +0200 (CEST) Cc: Stanislav Malyshev , internals Mailing List Message-ID: To: Greg Beaver , Dmitry Stogov In-Reply-To: <487EA069.3080500@chiaraquartet.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Date: Wed, 20 Aug 2008 22:51:35 +0200 References: <4855D62C.2010902@chiaraquartet.net> <487E5AE4.2050405@zend.com> <487EA069.3080500@chiaraquartet.net> X-Mailer: Apple Mail (2.928.1) Subject: Re: [PHP-DEV] potential shutdown order issue From: mls@pooteeweet.org (Lukas Kahwe Smith) On 17.07.2008, at 03:29, Greg Beaver wrote: > Stanislav Malyshev wrote: >> Hi! >> >>> zend_destroy_rsrc_list(&EG(regular_list)). On the next line, >>> zend_post_deactivate_modules() is called, which steps through the >>> module >>> list and unloads all the dynamically loaded modules. If one of >>> these >> >> dl() is really troublesome... >> >>> I think this issue could be fixed by moving the >>> zend_destroy_rsrc_list(&EG(regular_list)) call after the module >>> shutdown. I've attached a patch demonstrating the principle (this >>> fixes >>> the hashtable destroyed message and I don't get anything bad like a >>> segfault). >> >> But many resource dtors may need some action from modules they >> belong to. If modules are already past shutdown, that may be a >> problem. >> If we must spend time on supporting dl(), then I'd propose to fix >> module dtor so that it wouldn't try to access EG(regular_list) - if >> it happens as you described, it doesn't need it anyway. > Hi, > > This has nothing to do with dl(). mysqli was loaded in php.ini via > extension=mysqli.so > > I can't test the proposed fix until August, but it sounds like it > would also fix the issue without messing with shutdown. @Dmitry/Stas .. could you guys look into this issue? @Greg: can you provide any further context information? regards, Lukas Kahwe Smith mls@pooteeweet.org