ID:               40647
 User updated by:  csi92 at yahoo dot com
 Reported By:      csi92 at yahoo dot com
-Status:           Bogus
+Status:           Open
 Bug Type:         LDAP related
 Operating System: Red Hat Enterprise Linux AS rele
 PHP Version:      4.4.5
 New Comment:

Here is the information I got from Oracle on this. It looks like an
issue in the LDAP API implementation:

Bug 4944940
Problem statement:

INCORRECT USE OF NZ API, NZDSI_INITIALIZE, CAUSES CRASH 

The nz API nzdsi_initialize is thread-unsafe and should be used only
during startup/initialization. In the OCI stack the ldap API calls this
API for each thread which causes the app to crash. As a temporary fix we
have made some changes in nz to resolve that issue (see bug 4405452).
But this needs to be fixed in ldap API implementation. The nzctx
context should be created just once. 

The stack when nzdsi_initialize is invoked - 
@ start_thread 
@ thread_main 
@ oci_connect 
@ OCIServerAttach 
@ kpuatch 
@ kwfcinit 
@ kwfnran 
@ niqname 
@ nnfsn2a 
@ nnfun2a 
@ nlolgobj 
@ nnfgrne 
@ nnflboot 
@ nnflcgc 
@ nnflobc 
@ nnflgcp 
@ nnfloiddisco 
@ ora_create_discov_hdl 
@ gslccx_Getgsluctx 
@ gsluizgcGetContext 
@ gsluinit 
@ nzdsi_initialize        # initializes nz context


Previous Comments:
------------------------------------------------------------------------

[2007-02-28 20:37:44] [EMAIL PROTECTED]

Sure. Just look at your backtrace, everything there points to the
Oracle Instant Client.

#0  0x04bcf104 in ?? ()
#1  0x06046e48 in nzdst_terminate ()
   from /usr/lib/oracle/10.2.0.3/client/lib/libnnz10.so
#2  0x06046b48 in nzdsi_initialize ()
   from /usr/lib/oracle/10.2.0.3/client/lib/libnnz10.so
#3  0x03af45c1 in gsluinit ()
   from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1
#4  0x03af4920 in gsluizgcGetContext ()
   from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1
#5  0x03af84e3 in gslutcTraceWithCtx ()
   from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1
#6  0x03ac4520 in ldap_init ()
   from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1
#7  0x0108ac16 in zif_ldap_connect (ht=1, return_value=0xb73c752c, 
    this_ptr=0x0, return_value_used=1)

------------------------------------------------------------------------

[2007-02-28 20:25:34] csi92 at yahoo dot com

Can you explain what exactly indicates to you that the Oracle instant
client is the problem?

------------------------------------------------------------------------

[2007-02-27 16:34:26] [EMAIL PROTECTED]

Ok, feel free to reopen the report when/if you have any additional
information.

------------------------------------------------------------------------

[2007-02-27 16:06:46] csi92 at yahoo dot com

I've rebuilt php without the Oracle component and the problem indeed
has gone away. I will follow up with Oracle. Thanks for the help.

------------------------------------------------------------------------

[2007-02-26 20:06:48] [EMAIL PROTECTED]

A segfault somewhere deep inside the Oracle Instant Client doesn't seem
PHP related to me.
Did you try reporting this to Oracle developers?

------------------------------------------------------------------------

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/40647

-- 
Edit this bug report at http://bugs.php.net/?id=40647&edit=1

Reply via email to