#29652 [Fbk]: number of FD to ocius.msg is growing

From: Date: Thu, 16 Sep 2004 12:42:33 +0000
Subject: #29652 [Fbk]: number of FD to ocius.msg is growing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66290@lists.php.net to get a copy of this message
ID: 29652 Updated by: tony2001@php.net Reported By: yannick at agl dot fr Status: Feedback Bug Type: OCI8 related Operating System: Linux Redhat 7.3 PHP Version: 4.3.7 New Comment: Please, generate a gdb backtrace, it works fine for me. Previous Comments: ------------------------------------------------------------------------ [2004-09-16 14:35:01] rvs at angara dot ru Yes it works perfectly for FDs but introduces segfault at php shutdown, when I use the code: for ($i=0; $i < 200; $i++) { $c1 = @ociplogon($valid_user, $valid_password, $db); } Note that the credentials are valid here. It seems that the ENV handle is freed more than once somewhere :-) ------------------------------------------------------------------------ [2004-09-16 14:16:51] tony2001@php.net Well, yes, of course Solaris & Linux clients are different, but initial report states that this issue was reproduced under Linux. I updated the patch (revers the old one before applying this), you can get at the same URL. Btw, this version of the patch should fix another issue: it reports memleaks for me with ocilogon() and invalid password/login. Try it out and tell me if it works under Solaris. ------------------------------------------------------------------------ [2004-09-16 11:47:03] rvs at angara dot ru P.S. I think you can't reproduce this under Linux because of the Oracle Client software design for Linux may be quite different from Solaris' one. ------------------------------------------------------------------------ [2004-09-16 11:42:04] rvs at angara dot ru Tried your patch, it resolves the problem partially. In fact, only one bad case remains: C'. using ocilogon()/ociplogon() with invalid credentials. I mean if you use ocinlogon() with invalid credentials, all works because the ENV handle is freed for exclusive session explictly by your patch. So I suppose you should free ENV handle explicitly in the case of a failed connection/invalid logon also. Then all will work fine, hope :-) How about these patches for 4.3.x? Sergei ------------------------------------------------------------------------ [2004-09-16 07:49:13] tony2001@php.net Please, try this patch: http://tony2001.phpclub.net/dev/tmp/bug29652.diff.txt It was done against HEAD, so please use latest snapshot from http://snaps.php.net The problem becomes complicated because I still can't reproduce this under Linux and Apache 1.3.31, no matter with or without the patch. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/29652 -- Edit this bug report at http://bugs.php.net/?id=29652&edit=1

« previous php.bugs (#66290) next »