ID:               19434
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         OCI8 related
 Operating System: redhat 7.3
 PHP Version:      4.2.3
 New Comment:

Configure Command =>  './configure' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr'
'--with-config-file-path=/etc' '--enable-debug'
'--with-exec-dir=/usr/bin' '--with-ldap=/home/oracle/Oracle-9.0.1'
'--with-oci8=/home/oracle/Oracle-9.0.1'

[/var/www/html/test]$ gdb php
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run login-test.php 
Starting program: /usr/bin/php login-test.php
[New Thread 1024 (LWP 15919)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 15919)]
0x4026347d in gslufpFLog () from
/home/oracle/Oracle-9.0.1/lib/libclntsh.so.9.0
(gdb) bt
#0  0x4026347d in gslufpFLog ()
   from /home/oracle/Oracle-9.0.1/lib/libclntsh.so.9.0
#1  0x4025321e in ldap_open ()
   from /home/oracle/Oracle-9.0.1/lib/libclntsh.so.9.0
#2  0x08065ace in zif_ldap_connect (ht=1, return_value=0x8272f0c, 
    this_ptr=0x0, return_value_used=1)
    at /home/ronan/download/php4-200209270000/ext/ldap/ldap.c:397
#3  0x081920cf in execute (op_array=0x8269f74)
    at /home/ronan/download/php4-200209270000/Zend/zend_execute.c:1602
#4  0x081820ae in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /home/ronan/download/php4-200209270000/Zend/zend.c:834
#5  0x081540e2 in php_execute_script (primary_file=0xbffff8e0)
    at /home/ronan/download/php4-200209270000/main/main.c:1537
#6  0x081978e0 in main (argc=2, argv=0xbffff984)
    at /home/ronan/download/php4-200209270000/sapi/cli/php_cli.c:695
#7  0x408151c4 in __libc_start_main () from /lib/libc.so.6
(gdb)


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

[2002-09-26 20:22:44] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

Reduce your configure options to bare minimum,
only use --with-apxs, --with-oci8 and --with-ldap and
don't compile them as shared!

Do this using the latest snapshot above.


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

[2002-09-16 11:02:35] [EMAIL PROTECTED]

[/var/www/html/accounts/login]# php login_test.php 
Segmentation fault (core dumped)
/var/www/html/accounts/login]# gdb /usr/bin/php ./core.11077 
GNU gdb Red Hat Linux (5.2-2)
...
Reading symbols from /usr/lib/php4/ldap.so...done.
Loaded symbols for /usr/lib/php4/ldap.so
Reading symbols from
/home/oracle/Oracle-9.0.1/lib/libclntsh.so.9.0...done.
Loaded symbols for /home/oracle/Oracle-9.0.1/lib/libclntsh.so.9.0
Reading symbols from /home/oracle/Oracle-9.0.1/lib/libwtc9.so...done.
Loaded symbols for /home/oracle/Oracle-9.0.1/lib/libwtc9.so
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/php4/oci8.so...done.
Loaded symbols for /usr/lib/php4/oci8.so
#0  0x408a647d in gslufpFLog () from
/home/oracle/Oracle-9.0.1/lib/libclntsh.so.9.0
(gdb) bt
#0  0x408a647d in gslufpFLog () from
/home/oracle/Oracle-9.0.1/lib/libclntsh.so.9.0
#1  0x4089621e in ldap_open () from
/home/oracle/Oracle-9.0.1/lib/libclntsh.so.9.0
#2  0x40015ab1 in zif_ldap_connect (ht=1, return_value=0x826734c,
this_ptr=0x0, return_value_used=1) at
/usr/src/redhat/BUILD/php-4.2.3/ext/ldap/ldap.c:414
#3  0x0816b84b in execute ()
#4  0x08141dcc in zend_execute_scripts ()
#5  0x0806f626 in php_execute_script ()
#6  0x0806c8ac in main ()
#7  0x400fb1c4 in __libc_start_main () from /lib/libc.so.6
(gdb)

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

[2002-09-16 09:41:09] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



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

[2002-09-16 09:32:48] [EMAIL PROTECTED]

I recompiled php (see below) and apache still crashes.

'./configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr'
'--with-config-file-path=/etc' '--enable-force-cgi-redirect'
'--disable-debug' '--enable-pic' '--disable-rpath'
'--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl'
'--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr'
'--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf'
'--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp'
'--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png'
'--with-pspell' '--with-regex=system' '--with-xml'
'--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-debugger' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path'
'--enable-track-vars' '--enable-trans-sid' '--enable-yp'
'--enable-wddx' '--without-oci8' '--with-imap=shared' '--with-imap-ssl'
'--with-kerberos=/usr/kerberos'
'--with-ldap=shared,/home/oracle/Oracle-9.0.1'
'--with-mysql=shared,/usr'
'--with-oci8=shared,/home/oracle/Oracle-9.0.1' '--enable-sigchild'
'--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared'
'--enable-ucd-snmp-hack' '--with-unixODBC=shared'
'--enable-memory-limit' '--enable-bcmath' '--enable-shmop'
'--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio'
'--enable-mcal' '--enable-mbstring' '--enable-mbstr-enc-trans'
'--with-apxs=/usr/sbin/apxs'

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

[2002-09-16 07:13:50] [EMAIL PROTECTED]

Oracle has it's own ldap stuff. You can't compile both openldap and
oracle together. But you don't need to:

--with-ldap=/home/oracle/Oracle-9.0.1

works too.


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

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

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

Reply via email to