#45769 [Opn]: Segmentation fault with OCI8

2010-01-05 Thread louis dot begin at cspq dot gouv dot qc dot ca
 ID:   45769
 User updated by:  louis dot begin at cspq dot gouv dot qc dot ca
 Reported By:  louis dot begin at cspq dot gouv dot qc dot ca
 Status:   Open
 Bug Type: OCI8 related
 Operating System: zVM/Linux
 PHP Version:  5.2CVS-2009-03-19 (snap)
 New Comment:

Hi,

Forget that bug, you may close it.
We used an other software to do the job.

Regards,

LBe


Previous Comments:


[2009-06-11 13:08:57] louis dot begin at cspq dot gouv dot qc dot ca

Again:
When i compiled i get these messages:
/logiciels/tldb/php/php5.2-200903191730/ext/oci8/oci8.c: In function
'php_oci_do_connect_ex':
/logiciels/tldb/php/php5.2-200903191730/ext/oci8/oci8.c:1102: warning:
cast from pointer to integer of different size
/logiciels/tldb/php/php5.2-200903191730/ext/oci8/oci8.c:1416: warning:
cast to pointer from integer of different size

which could indicated "losing a part of a pointer"
which is compatible with the error "segmentation fault".

LBe



[2009-05-12 17:51:20] louis dot begin at cspq dot gouv dot qc dot ca

Hi, sorry for delay,

Here what i get from GDB:
(gdb) run -X
Starting program: /logiciels/tldb/httpd-2.0.61/bin/httpd -X
[Thread debugging using libthread_db enabled]
[New Thread 2199026468240 (LWP 3700)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2199026468240 (LWP 3700)]
_zval_ptr_dtor (zval_ptr=0x3a94b20)
at
/logiciels/tldb/php/php5.2-200903191730/Zend/zend_execute_API.c:412
412 (*zval_ptr)->refcount--;
(gdb) bt
#0  _zval_ptr_dtor (zval_ptr=0x3a94b20)
at
/logiciels/tldb/php/php5.2-200903191730/Zend/zend_execute_API.c:412
#1  0x0253733a in zend_do_fcall_common_helper_SPEC
(execute_data=0x3a95100)
at /logiciels/tldb/php/php5.2-200903191730/Zend/zend_execute.h:155
#2  0x02528a5e in execute (op_array=0x274caa0)
at
/logiciels/tldb/php/php5.2-200903191730/Zend/zend_vm_execute.h:92
#3  0x02505378 in zend_execute_scripts (type=, retval=0x0,
file_count=2) at
/logiciels/tldb/php/php5.2-200903191730/Zend/zend.c:1134
#4  0x024bc538 in php_execute_script
(primary_file=0x3a97710)
at /logiciels/tldb/php/php5.2-200903191730/main/main.c:2023
#5  0x02599790 in php_handler (r=0x8024d2d0)
at
/logiciels/tldb/php/php5.2-200903191730/sapi/apache2handler/sapi_apache2.c:632
#6  0x80048e20 in ap_run_handler (r=0x8024d2d0) at
config.c:152
#7  0x8004c33a in ap_invoke_handler (r=0x8024d2d0) at
config.c:364
#8  0x8003615c in ap_process_request (r=0x8024d2d0) at
http_request.c:249
#9  0x80030ccc in ap_process_http_connection (c=0x80249290) at
http_core.c:253
#10 0x80055e4c in ap_run_process_connection (c=0x80249290) at
connection.c:43
#11 0x800476e4 in child_main (child_num_arg=) at prefork.c:610
#12 0x8004794e in make_child (s=0x800dca60, slot=0) at
prefork.c:650
#13 0x80047a5a in startup_children (number_to_start=2) at
prefork.c:722
#14 0x800483cc in ap_mpm_run (_pconf=,
plog=,
s=0x800dca60) at prefork.c:941
#15 0x8004f02c in main (argc=,
argv=0x3a98248) at main.c:636
(gdb) info locals
No locals.

--
/* Here a line from the "oracle listener log" indicating that the
connection occurs succesfully to the database  */
12-MAY-2009 13:21:57 *
(CONNECT_DATA=(SERVICE_NAME=sigubtm)(CID=(program=ht...@csigdsa1)(HOST=CSIGDSA1)(USER=oracle)))
* (ADDRESS=(PROTOCOL=tcp)(HOST=172.27.96.229)(PORT=56123)) * establish *
sigubtm * 0

The time match exactly.
I am sur i get the right program.

==
Thank
LBe



[2009-04-28 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2009-04-20 09:18:29] j...@php.net

That backtrace does not show any references to any OCI functions. Are
you absolutely sure the script you're running IS that script shown in
your first comment? Check your configuration (including all http.conf /
.htaccess files) and clean it up. Make sure you do NOT have any
extensions loaded from your php.ini and that you're loading correct
php.ini file. Also check for any append/prepend settings in it..



[2009-04-08 19:59:55] louis dot begin at cspq dot gouv dot qc dot ca

Sorry for the delay,

I got the exact same result,

Starting program: /logiciels/tldb/httpd-2.0.61/bin/httpd -X
[Thread debugging using libthread_db enabled]
[New Thread 2199026468240 (LWP 4426)]

Program received signal SIGSE

#45769 [Opn]: Segmentation fault with OCI8

2009-06-11 Thread louis dot begin at cspq dot gouv dot qc dot ca
 ID:   45769
 User updated by:  louis dot begin at cspq dot gouv dot qc dot ca
 Reported By:  louis dot begin at cspq dot gouv dot qc dot ca
 Status:   Open
 Bug Type: OCI8 related
 Operating System: zVM/Linux
 PHP Version:  5.2CVS-2009-03-19 (snap)
 New Comment:

Again:
When i compiled i get these messages:
/logiciels/tldb/php/php5.2-200903191730/ext/oci8/oci8.c: In function
'php_oci_do_connect_ex':
/logiciels/tldb/php/php5.2-200903191730/ext/oci8/oci8.c:1102: warning:
cast from pointer to integer of different size
/logiciels/tldb/php/php5.2-200903191730/ext/oci8/oci8.c:1416: warning:
cast to pointer from integer of different size

which could indicated "losing a part of a pointer"
which is compatible with the error "segmentation fault".

LBe


Previous Comments:


[2009-05-12 17:51:20] louis dot begin at cspq dot gouv dot qc dot ca

Hi, sorry for delay,

Here what i get from GDB:
(gdb) run -X
Starting program: /logiciels/tldb/httpd-2.0.61/bin/httpd -X
[Thread debugging using libthread_db enabled]
[New Thread 2199026468240 (LWP 3700)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2199026468240 (LWP 3700)]
_zval_ptr_dtor (zval_ptr=0x3a94b20)
at
/logiciels/tldb/php/php5.2-200903191730/Zend/zend_execute_API.c:412
412 (*zval_ptr)->refcount--;
(gdb) bt
#0  _zval_ptr_dtor (zval_ptr=0x3a94b20)
at
/logiciels/tldb/php/php5.2-200903191730/Zend/zend_execute_API.c:412
#1  0x0253733a in zend_do_fcall_common_helper_SPEC
(execute_data=0x3a95100)
at /logiciels/tldb/php/php5.2-200903191730/Zend/zend_execute.h:155
#2  0x02528a5e in execute (op_array=0x274caa0)
at
/logiciels/tldb/php/php5.2-200903191730/Zend/zend_vm_execute.h:92
#3  0x02505378 in zend_execute_scripts (type=, retval=0x0,
file_count=2) at
/logiciels/tldb/php/php5.2-200903191730/Zend/zend.c:1134
#4  0x024bc538 in php_execute_script
(primary_file=0x3a97710)
at /logiciels/tldb/php/php5.2-200903191730/main/main.c:2023
#5  0x02599790 in php_handler (r=0x8024d2d0)
at
/logiciels/tldb/php/php5.2-200903191730/sapi/apache2handler/sapi_apache2.c:632
#6  0x80048e20 in ap_run_handler (r=0x8024d2d0) at
config.c:152
#7  0x8004c33a in ap_invoke_handler (r=0x8024d2d0) at
config.c:364
#8  0x8003615c in ap_process_request (r=0x8024d2d0) at
http_request.c:249
#9  0x80030ccc in ap_process_http_connection (c=0x80249290) at
http_core.c:253
#10 0x80055e4c in ap_run_process_connection (c=0x80249290) at
connection.c:43
#11 0x800476e4 in child_main (child_num_arg=) at prefork.c:610
#12 0x8004794e in make_child (s=0x800dca60, slot=0) at
prefork.c:650
#13 0x80047a5a in startup_children (number_to_start=2) at
prefork.c:722
#14 0x800483cc in ap_mpm_run (_pconf=,
plog=,
s=0x800dca60) at prefork.c:941
#15 0x8004f02c in main (argc=,
argv=0x3a98248) at main.c:636
(gdb) info locals
No locals.

--
/* Here a line from the "oracle listener log" indicating that the
connection occurs succesfully to the database  */
12-MAY-2009 13:21:57 *
(CONNECT_DATA=(SERVICE_NAME=sigubtm)(CID=(program=ht...@csigdsa1)(HOST=CSIGDSA1)(USER=oracle)))
* (ADDRESS=(PROTOCOL=tcp)(HOST=172.27.96.229)(PORT=56123)) * establish *
sigubtm * 0

The time match exactly.
I am sur i get the right program.

==
Thank
LBe



[2009-04-28 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2009-04-20 09:18:29] j...@php.net

That backtrace does not show any references to any OCI functions. Are
you absolutely sure the script you're running IS that script shown in
your first comment? Check your configuration (including all http.conf /
.htaccess files) and clean it up. Make sure you do NOT have any
extensions loaded from your php.ini and that you're loading correct
php.ini file. Also check for any append/prepend settings in it..



[2009-04-08 19:59:55] louis dot begin at cspq dot gouv dot qc dot ca

Sorry for the delay,

I got the exact same result,

Starting program: /logiciels/tldb/httpd-2.0.61/bin/httpd -X
[Thread debugging using libthread_db enabled]
[New Thread 2199026468240 (LWP 4426)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2199026468240 (LWP 4426)]
_zval_ptr_dtor (zval_ptr=0x3ae7ad8)
at
/logiciels/tldb/php/php5.2-200903191730/Zend/zend_execute_API.c:412
412 (*zval_ptr)->refcount--;
(gdb) bt
#0  _

#45769 [Opn]: Segmentation fault with OCI8

2008-08-29 Thread louis dot begin at cspq dot gouv dot qc dot ca
 ID:   45769
 User updated by:  louis dot begin at cspq dot gouv dot qc dot ca
 Reported By:  louis dot begin at cspq dot gouv dot qc dot ca
 Status:   Open
 Bug Type: OCI8 related
 Operating System: zVM/Linux
 PHP Version:  5.2.6
 New Comment:

Additional info:
This installation (with OCI8) works fine if i use de "phpinfo.php"
script or an other little script i did (an "Hello world" script)


Previous Comments:


[2008-08-28 14:31:20] louis dot begin at cspq dot gouv dot qc dot ca

I installed PECL OCI8 1.3.4
and i got the same result.

---
root.sigubtm:>gdb /logiciels/tldb/httpd-2.0.61/bin/httpd
GNU gdb 6.6
Copyright (C) 2006 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 "s390x-suse-linux"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) run -X
Starting program: /logiciels/tldb/httpd-2.0.61/bin/httpd -X
[Thread debugging using libthread_db enabled]
[New Thread 2199026468240 (LWP 11695)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2199026468240 (LWP 11695)]
_zval_ptr_dtor (zval_ptr=0x3f21818)
at /logiciels/tldb/php/php-5.2.6/Zend/zend_execute_API.c:412
412 (*zval_ptr)->refcount--;
(gdb) bt
#0  _zval_ptr_dtor (zval_ptr=0x3f21818)
at /logiciels/tldb/php/php-5.2.6/Zend/zend_execute_API.c:412
#1  0x026094d6 in zend_do_fcall_common_helper_SPEC
(execute_data=0x3f21e50)
at /logiciels/tldb/php/php-5.2.6/Zend/zend_execute.h:155
#2  0x025f79a2 in execute (op_array=0x20001e41a98)
at /logiciels/tldb/php/php-5.2.6/Zend/zend_vm_execute.h:92
#3  0x025d4258 in zend_execute_scripts (type=, retval=0x0,
file_count=2) at /logiciels/tldb/php/php-5.2.6/Zend/zend.c:1134
#4  0x0258bd78 in php_execute_script
(primary_file=0x3f24460)
at /logiciels/tldb/php/php-5.2.6/main/main.c:2005
#5  0x02667e4c in php_handler (r=0x8026cb60)
at
/logiciels/tldb/php/php-5.2.6/sapi/apache2handler/sapi_apache2.c:629
#6  0x80048e20 in ap_run_handler (r=0x8026cb60) at
config.c:152
#7  0x8004c33a in ap_invoke_handler (r=0x8026cb60) at
config.c:364
#8  0x8003615c in ap_process_request (r=0x8026cb60) at
http_request.c:249
#9  0x80030ccc in ap_process_http_connection (c=0x80262a50) at
http_core.c:253
#10 0x80055e4c in ap_run_process_connection (c=0x80262a50) at
connection.c:43
#11 0x800476e4 in child_main (child_num_arg=) at prefork.c:610
#12 0x8004794e in make_child (s=0x800dca60, slot=0) at
prefork.c:650
#13 0x80047a5a in startup_children (number_to_start=2) at
prefork.c:722
#14 0x800483cc in ap_mpm_run (_pconf=,
plog=, s=0x800dca60) at prefork.c:941
#15 0x8004f02c in main (argc=,
argv=0x3f24f98)
at main.c:636
(gdb)



[2008-08-15 17:44:17] louis dot begin at cspq dot gouv dot qc dot ca

Maybe this info could help:
:>file php
php: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), for
GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux
2.6.4, not stripped

:>ldd php
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x02028000)
librt.so.1 => /lib64/librt.so.1 (0x02064000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x0206e000)
libm.so.6 => /lib64/libm.so.6 (0x02085000)
libdl.so.2 => /lib64/libdl.so.2 (0x0211b000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x0212)
libclntsh.so.10.1 =>
/logiciels/oracle/product/10.2.0.3/lib/libclntsh.so.10.1
(0x0213a000)
libc.so.6 => /lib64/libc.so.6 (0x02000147)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0200015d)
/lib/ld64.so.1 (0x0200)
libnnz10.so =>
/logiciels/oracle/product/10.2.0.3/lib/libnnz10.so (0x0200015eb000)



[2008-08-11 14:47:58] louis dot begin at cspq dot gouv dot qc dot ca

That happend with any table, 
I think that the "OCILogon" function does not return
Could be a problem of 32bits/64bits compatibility.
Could be a problem of 32bits/64bits compatibility.

./configure --prefix=/logiciels/tldb/php-5.2.6
--with-config-file-path=/logiciels/tldb/php-5.2.6  
--with-apxs2=/logiciels/tldb/httpd-2.0.61/bin/apxs
--with-oci8=/logiciels/oracle/product/10.2.0.3 
--with-pdo-oci8=/logiciels/oracle/product/10.2.0.3 --disable-libxml
--disable-dom --disable-simplexml 
--disable-xml --disable-xmlreader --disable-xmlwriter --without-pear
--enable-sigchild

#45769 [Opn]: Segmentation fault with OCI8

2008-08-28 Thread louis dot begin at cspq dot gouv dot qc dot ca
 ID:   45769
 User updated by:  louis dot begin at cspq dot gouv dot qc dot ca
 Reported By:  louis dot begin at cspq dot gouv dot qc dot ca
 Status:   Open
 Bug Type: OCI8 related
 Operating System: zVM/Linux
 PHP Version:  5.2.6
 New Comment:

I installed PECL OCI8 1.3.4
and i got the same result.

---
root.sigubtm:>gdb /logiciels/tldb/httpd-2.0.61/bin/httpd
GNU gdb 6.6
Copyright (C) 2006 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 "s390x-suse-linux"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) run -X
Starting program: /logiciels/tldb/httpd-2.0.61/bin/httpd -X
[Thread debugging using libthread_db enabled]
[New Thread 2199026468240 (LWP 11695)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2199026468240 (LWP 11695)]
_zval_ptr_dtor (zval_ptr=0x3f21818)
at /logiciels/tldb/php/php-5.2.6/Zend/zend_execute_API.c:412
412 (*zval_ptr)->refcount--;
(gdb) bt
#0  _zval_ptr_dtor (zval_ptr=0x3f21818)
at /logiciels/tldb/php/php-5.2.6/Zend/zend_execute_API.c:412
#1  0x026094d6 in zend_do_fcall_common_helper_SPEC
(execute_data=0x3f21e50)
at /logiciels/tldb/php/php-5.2.6/Zend/zend_execute.h:155
#2  0x025f79a2 in execute (op_array=0x20001e41a98)
at /logiciels/tldb/php/php-5.2.6/Zend/zend_vm_execute.h:92
#3  0x025d4258 in zend_execute_scripts (type=, retval=0x0,
file_count=2) at /logiciels/tldb/php/php-5.2.6/Zend/zend.c:1134
#4  0x0258bd78 in php_execute_script
(primary_file=0x3f24460)
at /logiciels/tldb/php/php-5.2.6/main/main.c:2005
#5  0x02667e4c in php_handler (r=0x8026cb60)
at
/logiciels/tldb/php/php-5.2.6/sapi/apache2handler/sapi_apache2.c:629
#6  0x80048e20 in ap_run_handler (r=0x8026cb60) at
config.c:152
#7  0x8004c33a in ap_invoke_handler (r=0x8026cb60) at
config.c:364
#8  0x8003615c in ap_process_request (r=0x8026cb60) at
http_request.c:249
#9  0x80030ccc in ap_process_http_connection (c=0x80262a50) at
http_core.c:253
#10 0x80055e4c in ap_run_process_connection (c=0x80262a50) at
connection.c:43
#11 0x800476e4 in child_main (child_num_arg=) at prefork.c:610
#12 0x8004794e in make_child (s=0x800dca60, slot=0) at
prefork.c:650
#13 0x80047a5a in startup_children (number_to_start=2) at
prefork.c:722
#14 0x800483cc in ap_mpm_run (_pconf=,
plog=, s=0x800dca60) at prefork.c:941
#15 0x8004f02c in main (argc=,
argv=0x3f24f98)
at main.c:636
(gdb)


Previous Comments:


[2008-08-15 17:44:17] louis dot begin at cspq dot gouv dot qc dot ca

Maybe this info could help:
:>file php
php: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), for
GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux
2.6.4, not stripped

:>ldd php
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x02028000)
librt.so.1 => /lib64/librt.so.1 (0x02064000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x0206e000)
libm.so.6 => /lib64/libm.so.6 (0x02085000)
libdl.so.2 => /lib64/libdl.so.2 (0x0211b000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x0212)
libclntsh.so.10.1 =>
/logiciels/oracle/product/10.2.0.3/lib/libclntsh.so.10.1
(0x0213a000)
libc.so.6 => /lib64/libc.so.6 (0x02000147)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0200015d)
/lib/ld64.so.1 (0x0200)
libnnz10.so =>
/logiciels/oracle/product/10.2.0.3/lib/libnnz10.so (0x0200015eb000)



[2008-08-11 14:47:58] louis dot begin at cspq dot gouv dot qc dot ca

That happend with any table, 
I think that the "OCILogon" function does not return
Could be a problem of 32bits/64bits compatibility.
Could be a problem of 32bits/64bits compatibility.

./configure --prefix=/logiciels/tldb/php-5.2.6
--with-config-file-path=/logiciels/tldb/php-5.2.6  
--with-apxs2=/logiciels/tldb/httpd-2.0.61/bin/apxs
--with-oci8=/logiciels/oracle/product/10.2.0.3 
--with-pdo-oci8=/logiciels/oracle/product/10.2.0.3 --disable-libxml
--disable-dom --disable-simplexml 
--disable-xml --disable-xmlreader --disable-xmlwriter --without-pear
--enable-sigchild

(xml is not install on this server)


:>echo $NLS_LANG
AMERICAN_AMERICA.WE8ISO8859P1


create table dri.client (
 code_client  varchar2(3) ,
 client   varchar2(30) );

insert into dri.client('CAR', 'Carra') ;
insert into dri.client('MAM', 'Mamm') ;

--

#45769 [Opn]: Segmentation fault with OCI8

2008-08-15 Thread louis dot begin at cspq dot gouv dot qc dot ca
 ID:   45769
 User updated by:  louis dot begin at cspq dot gouv dot qc dot ca
 Reported By:  louis dot begin at cspq dot gouv dot qc dot ca
 Status:   Open
 Bug Type: OCI8 related
 Operating System: zVM/Linux
 PHP Version:  5.2.6
 New Comment:

Maybe this info could help:
:>file php
php: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), for
GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux
2.6.4, not stripped

:>ldd php
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x02028000)
librt.so.1 => /lib64/librt.so.1 (0x02064000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x0206e000)
libm.so.6 => /lib64/libm.so.6 (0x02085000)
libdl.so.2 => /lib64/libdl.so.2 (0x0211b000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x0212)
libclntsh.so.10.1 =>
/logiciels/oracle/product/10.2.0.3/lib/libclntsh.so.10.1
(0x0213a000)
libc.so.6 => /lib64/libc.so.6 (0x02000147)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0200015d)
/lib/ld64.so.1 (0x0200)
libnnz10.so =>
/logiciels/oracle/product/10.2.0.3/lib/libnnz10.so (0x0200015eb000)


Previous Comments:


[2008-08-11 14:47:58] louis dot begin at cspq dot gouv dot qc dot ca

That happend with any table, 
I think that the "OCILogon" function does not return
Could be a problem of 32bits/64bits compatibility.
Could be a problem of 32bits/64bits compatibility.

./configure --prefix=/logiciels/tldb/php-5.2.6
--with-config-file-path=/logiciels/tldb/php-5.2.6  
--with-apxs2=/logiciels/tldb/httpd-2.0.61/bin/apxs
--with-oci8=/logiciels/oracle/product/10.2.0.3 
--with-pdo-oci8=/logiciels/oracle/product/10.2.0.3 --disable-libxml
--disable-dom --disable-simplexml 
--disable-xml --disable-xmlreader --disable-xmlwriter --without-pear
--enable-sigchild

(xml is not install on this server)


:>echo $NLS_LANG
AMERICAN_AMERICA.WE8ISO8859P1


create table dri.client (
 code_client  varchar2(3) ,
 client   varchar2(30) );

insert into dri.client('CAR', 'Carra') ;
insert into dri.client('MAM', 'Mamm') ;



[2008-08-09 22:36:04] [EMAIL PROTECTED]

Does this happen for all tables?
What were the configure options?
What is the NLS environment (and how is it set)?
Please supply an export file or SQL script to creates a table & data
that reproduces the problem.




[2008-08-08 19:43:55] louis dot begin at cspq dot gouv dot qc dot ca

Description:

Envir:
Oracle version 10.2.0.3 (64bits)
Envir.: zVM Linux
Linux Suse SLES10 (64bits)
:>uname -a
Linux CSIGDSA1 2.6.16.46-0.12-default #1 SMP Thu May 17 14:00:09 UTC
2007 s390x s390x s390x GNU/Linux

:>cat /etc/SuSE-release
SUSE Linux Enterprise Server 10 (s390x)
VERSION = 10
PATCHLEVEL = 1

phpinfo.php works fine

When executing "OCILogon(...)"
the connection to oracle occurs (listener.log "sees" it), but when
returning to to prog.:
[Fri Jul 18 09:27:16 2008] [notice] child pid 17963 exit signal
Segmentation fault (11)

Reproduce code:
---
\n";
  print date('Y-m-d H:i:s')."\n";

  $cmdstr = "select code_client, client from dri.client";

  $parsed = OCIParse($conn, $cmdstr);
  OCIExecute($parsed, OCI_DEFAULT);

  echo "Oracle Test avec PHP";
  echo "Oracle Test avec PHP";

  print '';
  while ($succ = OCIFetchInto($stid, $row, OCI_RETURN_NULLS)) {
  print '';
  foreach ($row as $item) {
 print ''.($item?htmlentities($item):' ').'';
  }
  print '';
  }
  print '';

  echo " Nombre de rangees:
$nrows";
  echo "Si vous voyez les donnees, ca
marche!\n";

  OCILogoff($conn);
?>

Expected result:

The contains of rows from 
select code_client, client from dri.client

(The piece of code comes from:
http://www.oracle.com/technology/tech/php/htdocs/inst_php_apache_linux.html
with modification to match an existing table.

Actual result:
--
CSIGDSA1:/parm/oracle/bin # gdb /logiciels/tldb/httpd-2.0.61/bin/httpd
GNU gdb 6.6
Copyright (C) 2006 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 "s390x-suse-linux"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) run -X
Starting program: /logiciels/tldb/httpd-2.0.61/bin/httpd -X
[Thread debugging using libthread_db enabled]
[New Thread 2199026468240 (LWP 9613)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2199026468240 (LWP 9613)]
_zval_ptr_dtor (zval_ptr=0x3bdcb28)
at /logiciels/tldb/php/ph