Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53606 invoked from network); 20 Mar 2003 00:09:47 -0000 Received: from unknown (HELO mailout11.sul.t-online.com) (194.25.134.85) by pb1.pair.com with SMTP; 20 Mar 2003 00:09:47 -0000 Received: from fwd08.sul.t-online.de by mailout11.sul.t-online.com with smtp id 18vnct-0001Vb-02; Thu, 20 Mar 2003 01:09:43 +0100 Received: from baumbart.marcus-boerger.de (520072483730-0001@[80.142.153.236]) by fwd08.sul.t-online.com with esmtp id 18vnco-0BL83UC; Thu, 20 Mar 2003 01:09:38 +0100 Reply-to:marcus.boerger@post.rwth-aachen.de Message-ID: <5.1.0.14.2.20030319221845.02694460@mailbox.rwth-aachen.de> X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 20 Mar 2003 01:09:36 +0100 To: Wez Furlong Cc: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Sender: 520072483730-0001@t-dialin.net Subject: DBA problems / shutdown memory manager From: marcus.boerger@t-online.de ((Marcus =?iso-8859-1?Q?B=F6rger?=)) Hi Wez, after adding persistent to dba i get this: [marcus@zaphod PHP_4_3_0]$ make sapi/cli/php && sapi/cli/php -r '$db=dba_popen($argv[1],"n","flatfile");echo "$db\n";dba_insert("a","b",$db);sleep(5);echo "done\n";' -- /tmp/test.db make: `sapi/cli/php' is up to date. Resource id #5 done /usr/src/PHP_4_3_0/main/streams.c(2575) : Freeing 0x083A2E0C (13 bytes), script=- /usr/src/PHP_4_3_0/Zend/zend_hash.c(948) : ht=0x08319d88 is already destroyed /usr/src/PHP_4_3_0/Zend/zend_hash.c(98) : Bailed out without a bailout address! And i have an interesting effect: locks of 4.3.2 and 5.0 do not mutual exclude!?! I have experimented with the first: it is about the stream->__orig_path and i could not found a solution why it wasn't freed. But finally i found that the stream is freed after the memory manager is being shut down. This is another reason why i thing was must do shutdown of the memory manager later. marcus