Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2041 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27330 invoked from network); 27 May 2003 18:39:03 -0000 Received: from unknown (HELO jawa.at) (213.229.17.146) by pb1.pair.com with SMTP; 27 May 2003 18:39:03 -0000 Received: from worf (worf.jawa.at [192.168.201.12]) by jawa.at (8.12.6p2/8.12.6) with ESMTP id h4RIcvRi006778; Tue, 27 May 2003 20:38:57 +0200 (CEST) (envelope-from mbretter@jawa.at) Date: Tue, 27 May 2003 20:35:37 +0200 (CEST) To: Michael Mauch cc: internals@lists.php.net In-Reply-To: <4mlcqxikh.ln2@elmicha.333200002251-0001.dialin.t-online.de> Message-ID: <20030527202650.K402@worf.jawa.at> References: <4mlcqxikh.ln2@elmicha.333200002251-0001.dialin.t-online.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=-27.0 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) Subject: Re: [PHP-DEV] Re: 4.3.2RC4 OCI8 crash From: mbretter@jawa.at (Michael Bretterklieber) On Tue, 27 May 2003, Michael Mauch wrote: > Michael Bretterklieber wrote: > > > we discovered a crash using 4.3.2RC4 with oci8, here's the bt: > > Is your Apache linked to pthread, like it's written on > ? sure, and all other neat things like library-preload, etc. we usualy start this script with the cli-php, but sometimes also from apache. > > And your extension_dir .../no-debug-non-zts-20020429 > is probably the wrong one, as you are using --enable-debug. > we don't load any extensions dynamicaly (all exts are staticaly compiled in) and usualy we use a non debug-build :-) however we could workaround this, we had a function like this: function foo() { $db = new DB; $db->query(..) .. } this function was invoked several times, and our database-objects connected also several times to oracle, then I declared $db static: function foo() { static $db; $db = new DB; $db->query(..) .. } et voila, the script didn't crashed anymore :-) It looks like that the oci extension has some bugs in freeing resources, because according to the bt, the oci module freees an already freeed resource, if I'm right, or maybe a problem with the reference counting, ... tomorrow I can send the output with ociinternaldebug(true) another hint, I tried all php versions down to 4.2.1, and all versions caused the script to crash. bye, -- ------------------------------- ---------------------------------- Michael Bretterklieber - http://www.bretterklieber.com JAWA Management Software GmbH - http://www.jawa.at Tel: ++43-(0)316-403274-12 - GSM: ++43-(0)676-84 03 15 712 ------------------------------- ---------------------------------- "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972