#19434 [Opn->Fbk]: oci8 + ldap -> crash

2003-10-14 Thread sniper
 ID:   19434
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ronan dot salmon at staff dot ittralee dot ie
-Status:   Open
+Status:   Feedback
 Bug Type: OCI8 related
 Operating System: redhat 7.3
 PHP Version:  4.3.3RC4-dev
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2003-07-17 03:40:47] ronan dot salmon at staff dot ittralee dot ie

Sorry, I don't know what I've done yesterday but in fact LDAP doesn't
work alone anymore.

Here the script :
Wrong username or password!\n";
exit;
}
?>

I'm using the same php as yesterday.

[~/php]# gdb ./php4-STABLE-200307160330/sapi/cgi/php login.php
(gdb) run login.php
Starting program: /root/php/php4-STABLE-200307160330/sapi/cgi/php
login.php
[New Thread 16384 (LWP 23469)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 23469)]
0x40a71a34 in _int_free () from /lib/libc.so.6
(gdb) bt
#0  0x40a71a34 in _int_free () from /lib/libc.so.6
#1  0x40a709cc in free () from /lib/libc.so.6
#2  0x08065d81 in zif_ldap_get_entries (ht=2, return_value=0x8208040,
this_ptr=0x0, return_value_used=1, tsrm_ls=0x40d76440)
at /root/php/php4-STABLE-200307160330/ext/ldap/ldap.c:953
#3  0x0813ce45 in execute (op_array=0x8203028, tsrm_ls=0x81876b0)
at /root/php/php4-STABLE-200307160330/Zend/zend_execute.c:1616
#4  0x0812f7f1 in zend_execute_scripts (type=8, tsrm_ls=0x81876b0,
retval=0x0,
file_count=3) at
/root/php/php4-STABLE-200307160330/Zend/zend.c:886
#5  0x08106305 in php_execute_script (primary_file=0xb980,
tsrm_ls=0x81876b0) at
/root/php/php4-STABLE-200307160330/main/main.c:1685
#6  0x08142609 in main (argc=2, argv=0xba14)
at /root/php/php4-STABLE-200307160330/sapi/cgi/cgi_main.c:1542
#7  0x40a195cd in __libc_start_main () from /lib/libc.so.6



[2003-07-16 14:31:31] [EMAIL PROTECTED]

Can you try and reduce your script to smallest possible that causes the
crash? (like with only the ldap stuff?)




[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 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.




[2002-09-16 06:49:24] ronan dot salmon at staff dot ittralee dot ie

php-4.2.3
apache-1.3.23-14
redhat 7.3
kernel 2.4.18-10 i686
oracle 9.0.1
openldap 2.0.23

Configure command :
 './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'
'--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'

If I use l

#19434 [Opn->Fbk]: oci8 + ldap -> crash

2003-07-16 Thread sniper
 ID:   19434
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ronan dot salmon at staff dot ittralee dot ie
-Status:   Open
+Status:   Feedback
 Bug Type: OCI8 related
 Operating System: redhat 7.3
 PHP Version:  4.3.3RC2-dev
 New Comment:

Can you try and reduce your script to smallest possible that causes the
crash? (like with only the ldap stuff?)



Previous Comments:


[2003-07-16 08:43:47] ronan dot salmon at staff dot ittralee dot ie

Red Hat Linux release 7.2
Oracle 9.0.1

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

[~/php]$ gdb ./php4-STABLE-200307160530/sapi/cgi/php
(gdb) run login.php
Starting program:
/home/sysadmin/php/php4-STABLE-200307160530/sapi/cgi/php login.php
[New Thread 1024 (LWP 3325)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 3325)]
__pthread_mutex_lock (mutex=0xc085fa41) at mutex.c:99
99  mutex.c: No such file or directory.
in mutex.c
(gdb) bt
#0  __pthread_mutex_lock (mutex=0xc085fa41) at mutex.c:99
#1  0x408a0f94 in __libc_free (mem=0x409dc460) at malloc.c:3152
#2  0x08066421 in zif_ldap_get_entries (ht=2, return_value=0x820ed38,
this_ptr=0x0, return_value_used=1, tsrm_ls=0x81934b8)
at /home/sysadmin/php/php4-STABLE-200307160530/ext/ldap/ldap.c:953
#3  0x08144204 in execute (op_array=0x8209f70, tsrm_ls=0x81934b8)
at
/home/sysadmin/php/php4-STABLE-200307160530/Zend/zend_execute.c:1616
#4  0x08130e4c in zend_execute_scripts (type=8, tsrm_ls=0x81934b8,
retval=0x0,
file_count=3)
at /home/sysadmin/php/php4-STABLE-200307160530/Zend/zend.c:886
#5  0x0810671e in php_execute_script (primary_file=0xb9d0,
tsrm_ls=0x81934b8)
at /home/sysadmin/php/php4-STABLE-200307160530/main/main.c:1685
#6  0x0814d32a in main (argc=2, argv=0xba74)
at
/home/sysadmin/php/php4-STABLE-200307160530/sapi/cgi/cgi_main.c:1542
#7  0x40840316 in __libc_start_main (main=0x814c820 , argc=2,
ubp_av=0xba74, init=0x8062d98 <_init>, fini=0x814da60 <_fini>,
rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xba6c)
at ../sysdeps/generic/libc-start.c:129


--
Red Hat Linux release 9 (Shrike)
Oracle 9.2.0.1

./configure   --prefix=/usr  --exec-prefix=/usr   --bindir=/usr/bin 
--sbindir=/usr/sbin  --sysconfdir=/etc   --datadir=/usr/share
--includedir=/usr/include --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.2.0.1 --enable-sigchild
--with-oci8=/home/oracle/Oracle-9.2.0.1 --enable-experimental-zts

[~/php]# ./php4-STABLE-200307160330/sapi/cgi/php -q login.php
Segmentation fault
[~/php]# gdb ./php4-STABLE-200307160330/sapi/cgi/php
(gdb) run login.php
Starting program: /root/php/php4-STABLE-200307160330/sapi/cgi/php
login.php
[New Thread 16384 (LWP 21897)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 21897)]
0x40a71a34 in _int_free () from /lib/libc.so.6
(gdb) bt
#0  0x40a71a34 in _int_free () from /lib/libc.so.6
#1  0x40a709cc in free () from /lib/libc.so.6
#2  0x08065d81 in zif_ldap_get_entries (ht=2, return_value=0x8207b68,
this_ptr=0x0, return_value_used=1, tsrm_ls=0x40d76440)
at /root/php/php4-STABLE-200307160330/ext/ldap/ldap.c:953
#3  0x0813ce45 in execute (op_array=0x8203028, tsrm_ls=0x81876b0)
at /root/php/php4-STABLE-200307160330/Zend/zend_execute.c:1616
#4  0x0812f7f1 in zend_execute_scripts (type=8, tsrm_ls=0x81876b0,
retval=0x0,
file_count=3) at
/root/php/php4-STABLE-200307160330/Zend/zend.c:886
#5  0x08106305 in php_execute_script (primary_file=0xb980,
tsrm_ls=0x81876b0) at
/root/php/php4-STABLE-200307160330/main/main.c:1685
#6  0x08142609 in main (argc=2, argv=0xba14)
at /root/php/php4-STABLE-200307160330/sapi/cgi/cgi_main.c:1542
#7  0x40a195cd in __libc_start_main () from /lib/libc.so.6



[2003-07-15 22:56:43] [EMAIL PROTECTED]

Set to open when you actually give the requested feedback.


--

#19434 [Opn->Fbk]: oci8 + ldap -> crash

2003-07-15 Thread sniper
 ID:   19434
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ronan dot salmon at staff dot ittralee dot ie
-Status:   Open
+Status:   Feedback
 Bug Type: OCI8 related
 Operating System: redhat 7.3
 PHP Version:  4.3.3RC2-dev
 New Comment:

Set to open when you actually give the requested feedback.



Previous Comments:


[2003-07-15 05:00:06] ronan dot salmon at staff dot ittralee dot ie

Hi,

I'm just back from holydays. Will try that option asap.
The problem can't be link to apache since I'm not using it yet. I'm
running php from the command line.

Ronan.



[2003-07-03 14:37:37] [EMAIL PROTECTED]

Try add --enable-experimental-zts to your configure line.
(guessing, but e.g. with Apache, you have to have Apache linked with
libpthread..)




[2003-07-03 05:56:56] ronan dot salmon at staff dot ittralee dot ie

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

[~/php]$ gdb /home/sysadmin/usr/bin/php
GNU gdb Red Hat Linux (5.2-2)
This GDB was configured as "i386-redhat-linux"...
(gdb) run login.php
Starting program: /home/sysadmin/usr/bin/php login.php
[New Thread 1024 (LWP 3629)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 3629)]
__pthread_mutex_lock (mutex=0xff3a881f) at mutex.c:99
99  mutex.c: No such file or directory.
in mutex.c
(gdb) bt
#0  __pthread_mutex_lock (mutex=0xff3a881f) at mutex.c:99
#1  0x40889f94 in __libc_free (mem=0x409dc460) at malloc.c:3152
#2  0x08066b42 in zif_ldap_get_entries (ht=2, return_value=0x820eb94,
this_ptr=0x0, return_value_used=1)
at /home/sysadmin/php/php4-STABLE-200307030930/ext/ldap/ldap.c:953
#3  0x0817023f in execute (op_array=0x820ed14)
at
/home/sysadmin/php/php4-STABLE-200307030930/Zend/zend_execute.c:1616
#4  0x081600e2 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/sysadmin/php/php4-STABLE-200307030930/Zend/zend.c:886
#5  0x0812f984 in php_execute_script (primary_file=0xba00)
at /home/sysadmin/php/php4-STABLE-200307030930/main/main.c:1685
#6  0x0817664c in main (argc=2, argv=0xbab4)
at
/home/sysadmin/php/php4-STABLE-200307030930/sapi/cgi/cgi_main.c:1542
#7  0x40829316 in __libc_start_main (main=0x8175c74 , argc=2,
ubp_av=0xbab4, init=0x8062af8 <_init>, fini=0x8176f00 <_fini>,
rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbaac)
at ../sysdeps/generic/libc-start.c:129
(gdb)



I tried on a Redhat 9.0 with oracle-9.2.0.1 and it does crash as well
:

./configure   --prefix=/usr  --exec-prefix=/usr   --bindir=/usr/bin  
--sbindir=/usr/sbin  --sysconfdir=/etc   --datadir=/usr/share  
--includedir=/usr/include --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.2.0.1 --enable-sigchild
--with-oci8=/home/oracle/Oracle-9.2.0.1

[~/php]# gdb php
(gdb) run login.php
Starting program: /usr/bin/php login.php
[New Thread 16384 (LWP 376)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 376)]
0x40a20a34 in _int_free () from /lib/libc.so.6
(gdb) bt
#0  0x40a20a34 in _int_free () from /lib/libc.so.6
#1  0x40a1f9cc in free () from /lib/libc.so.6
#2  0x080662c3 in zif_ldap_get_entries (ht=2, return_value=0x8209e5c,
this_ptr=0x0, return_value_used=1)
at /root/php/php4-STABLE-200307030930/ext/ldap/ldap.c:953
#3  0x0816674f in execute (op_array=0x820531c) at
/root/php/php4-STABLE-200307030930/Zend/zend_execute.c:1616
#4  0x08156d25 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /root/php/php4-STABLE-200307030930/Zend/zend.c:886
#5  0x081276f4 in php_execute_script (primary_file=0xb9a0) at
/root/php/php4-STABLE-200307030930/main/main.c:1685
#6  0x0816ca29 in main (argc=2, argv=0xba54) at
/root/php/php4-STABLE-200307030930/sapi/cgi/cgi_main.c:1542
#7  0x409c85cd in __libc_start_main () from /lib/libc.so.6
(gdb)

-

#19434 [Opn->Fbk]: oci8 + ldap -> crash

2003-07-03 Thread sniper
 ID:   19434
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ronan dot salmon at staff dot ittralee dot ie
-Status:   Open
+Status:   Feedback
 Bug Type: OCI8 related
 Operating System: redhat 7.3
-PHP Version:  4.2.3
+PHP Version:  4.3.3RC2-dev
 New Comment:

Try add --enable-experimental-zts to your configure line.
(guessing, but e.g. with Apache, you have to have Apache linked with
libpthread..)



Previous Comments:


[2003-07-03 05:56:56] ronan dot salmon at staff dot ittralee dot ie

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

[~/php]$ gdb /home/sysadmin/usr/bin/php
GNU gdb Red Hat Linux (5.2-2)
This GDB was configured as "i386-redhat-linux"...
(gdb) run login.php
Starting program: /home/sysadmin/usr/bin/php login.php
[New Thread 1024 (LWP 3629)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 3629)]
__pthread_mutex_lock (mutex=0xff3a881f) at mutex.c:99
99  mutex.c: No such file or directory.
in mutex.c
(gdb) bt
#0  __pthread_mutex_lock (mutex=0xff3a881f) at mutex.c:99
#1  0x40889f94 in __libc_free (mem=0x409dc460) at malloc.c:3152
#2  0x08066b42 in zif_ldap_get_entries (ht=2, return_value=0x820eb94,
this_ptr=0x0, return_value_used=1)
at /home/sysadmin/php/php4-STABLE-200307030930/ext/ldap/ldap.c:953
#3  0x0817023f in execute (op_array=0x820ed14)
at
/home/sysadmin/php/php4-STABLE-200307030930/Zend/zend_execute.c:1616
#4  0x081600e2 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/sysadmin/php/php4-STABLE-200307030930/Zend/zend.c:886
#5  0x0812f984 in php_execute_script (primary_file=0xba00)
at /home/sysadmin/php/php4-STABLE-200307030930/main/main.c:1685
#6  0x0817664c in main (argc=2, argv=0xbab4)
at
/home/sysadmin/php/php4-STABLE-200307030930/sapi/cgi/cgi_main.c:1542
#7  0x40829316 in __libc_start_main (main=0x8175c74 , argc=2,
ubp_av=0xbab4, init=0x8062af8 <_init>, fini=0x8176f00 <_fini>,
rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbaac)
at ../sysdeps/generic/libc-start.c:129
(gdb)



I tried on a Redhat 9.0 with oracle-9.2.0.1 and it does crash as well
:

./configure   --prefix=/usr  --exec-prefix=/usr   --bindir=/usr/bin  
--sbindir=/usr/sbin  --sysconfdir=/etc   --datadir=/usr/share  
--includedir=/usr/include --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.2.0.1 --enable-sigchild
--with-oci8=/home/oracle/Oracle-9.2.0.1

[~/php]# gdb php
(gdb) run login.php
Starting program: /usr/bin/php login.php
[New Thread 16384 (LWP 376)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 376)]
0x40a20a34 in _int_free () from /lib/libc.so.6
(gdb) bt
#0  0x40a20a34 in _int_free () from /lib/libc.so.6
#1  0x40a1f9cc in free () from /lib/libc.so.6
#2  0x080662c3 in zif_ldap_get_entries (ht=2, return_value=0x8209e5c,
this_ptr=0x0, return_value_used=1)
at /root/php/php4-STABLE-200307030930/ext/ldap/ldap.c:953
#3  0x0816674f in execute (op_array=0x820531c) at
/root/php/php4-STABLE-200307030930/Zend/zend_execute.c:1616
#4  0x08156d25 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /root/php/php4-STABLE-200307030930/Zend/zend.c:886
#5  0x081276f4 in php_execute_script (primary_file=0xb9a0) at
/root/php/php4-STABLE-200307030930/main/main.c:1685
#6  0x0816ca29 in main (argc=2, argv=0xba54) at
/root/php/php4-STABLE-200307030930/sapi/cgi/cgi_main.c:1542
#7  0x409c85cd in __libc_start_main () from /lib/libc.so.6
(gdb)



[2003-06-29 21:37:12] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2002-09-27 06:06:22] ronan dot salmon at staff dot ittralee dot ie

Configure Command =>  './configure' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sb

#19434 [Opn->Fbk]: oci8 + ldap -> crash

2003-06-29 Thread iliaa
 ID:   19434
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ronan dot salmon at staff dot ittralee dot ie
-Status:   Open
+Status:   Feedback
 Bug Type: OCI8 related
 Operating System: redhat 7.3
 PHP Version:  4.2.3
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2002-09-27 06:06:22] ronan dot salmon at staff dot ittralee dot ie

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-20020927/ext/ldap/ldap.c:397
#3  0x081920cf in execute (op_array=0x8269f74)
at /home/ronan/download/php4-20020927/Zend/zend_execute.c:1602
#4  0x081820ae in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/ronan/download/php4-20020927/Zend/zend.c:834
#5  0x081540e2 in php_execute_script (primary_file=0xb8e0)
at /home/ronan/download/php4-20020927/main/main.c:1537
#6  0x081978e0 in main (argc=2, argv=0xb984)
at /home/ronan/download/php4-20020927/sapi/cli/php_cli.c:695
#7  0x408151c4 in __libc_start_main () from /lib/libc.so.6
(gdb)



[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] ronan dot salmon at staff dot ittralee dot ie

[/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 backtra