ID:               44589
 Comment by:       simong at bluhalo dot com
 Reported By:      s dot rost at ewerk dot com
 Status:           Assigned
 Bug Type:         PDO related
 Operating System: Debian 2.6.18.dfsg.1-18etch1
 PHP Version:      5.2.5
 Assigned To:      cjorcl
 New Comment:

We are receiving the same segfault in PHP 5.2.8
This is our backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208256752 (LWP 8743)]
0x0324e96f in kghufree () from
/usr/lib/oracle/10.2.0.4/client/lib/libclntsh.so.10.1
(gdb) bt
#0  0x0324e96f in kghufree () from
/usr/lib/oracle/10.2.0.4/client/lib/libclntsh.so.10.1
#1  0x031eea1f in kohfrem () from
/usr/lib/oracle/10.2.0.4/client/lib/libclntsh.so.10.1
#2  0x031ee29c in kohfrr () from
/usr/lib/oracle/10.2.0.4/client/lib/libclntsh.so.10.1
#3  0x031eeca7 in kohfrw () from
/usr/lib/oracle/10.2.0.4/client/lib/libclntsh.so.10.1
#4  0x0308a438 in kollfrfn () from
/usr/lib/oracle/10.2.0.4/client/lib/libclntsh.so.10.1
#5  0x02b369f9 in kpufdesc () from
/usr/lib/oracle/10.2.0.4/client/lib/libclntsh.so.10.1
#6  0x02c079be in OCIDescriptorFree () from
/usr/lib/oracle/10.2.0.4/client/lib/libclntsh.so.10.1
#7  0x011e129c in oci_blob_close (stream=0xa11026c, close_handle=1) at
/root/php-5.2.8/ext/pdo_oci/oci_statement.c:652
#8  0x013626b1 in _php_stream_free (stream=0xa11026c,
close_options=56830048) at /root/php-5.2.8/main/streams/streams.c:350
#9  0x013628db in stream_resource_regular_dtor (rsrc=0xa1102f0) at
/root/php-5.2.8/main/streams/streams.c:1371
#10 0x0139bc22 in list_entry_destructor (ptr=0xa1102f0) at
/root/php-5.2.8/Zend/zend_list.c:184
#11 0x0139a16d in zend_hash_del_key_or_index (ht=0x151f720,
arKey=0xa12cd <Address 0xa12cd out of bounds>, nKeyLength=0, h=173,
flag=1) at /root/php-5.2.8/Zend/zend_hash.c:497
#12 0x0139be6c in _zend_list_delete (id=173) at
/root/php-5.2.8/Zend/zend_list.c:58
#13 0x0138321f in _zval_ptr_dtor (zval_ptr=0xa110a58) at
/root/php-5.2.8/Zend/zend_variables.h:35
#14 0x013993e6 in zend_hash_destroy (ht=0xa110b94) at
/root/php-5.2.8/Zend/zend_hash.c:526
#15 0x0138f2c5 in _zval_dtor_func (zvalue=0xa1107bc) at
/root/php-5.2.8/Zend/zend_variables.c:43
#16 0x0138321f in _zval_ptr_dtor (zval_ptr=0xa10f97c) at
/root/php-5.2.8/Zend/zend_variables.h:35
#17 0x013993e6 in zend_hash_destroy (ht=0xa11051c) at
/root/php-5.2.8/Zend/zend_hash.c:526
#18 0x013a7f73 in zend_object_std_dtor (object=0xa1104f0) at
/root/php-5.2.8/Zend/zend_objects.c:45
#19 0x013a7fa2 in zend_objects_free_object_storage (object=0xa1104f0)
at /root/php-5.2.8/Zend/zend_objects.c:122
#20 0x013ab2a9 in zend_objects_store_del_ref_by_handle (handle=156) at
/root/php-5.2.8/Zend/zend_objects_API.c:206
#21 0x013ab2e8 in zend_objects_store_del_ref (zobject=0xa110504) at
/root/php-5.2.8/Zend/zend_objects_API.c:168
#22 0x0138321f in _zval_ptr_dtor (zval_ptr=0xa110cec) at
/root/php-5.2.8/Zend/zend_variables.h:35
#23 0x013993e6 in zend_hash_destroy (ht=0xa10fb88) at
/root/php-5.2.8/Zend/zend_hash.c:526
#24 0x0138f2c5 in _zval_dtor_func (zvalue=0xa10fd88) at
/root/php-5.2.8/Zend/zend_variables.c:43
#25 0x0138321f in _zval_ptr_dtor (zval_ptr=0x9f22dd0) at
/root/php-5.2.8/Zend/zend_variables.h:35
#26 0x013993e6 in zend_hash_destroy (ht=0x9ee9718) at
/root/php-5.2.8/Zend/zend_hash.c:526
#27 0x013a7f73 in zend_object_std_dtor (object=0x9f1832c) at
/root/php-5.2.8/Zend/zend_objects.c:45
#28 0x013a7fa2 in zend_objects_free_object_storage (object=0x9f1832c)
at /root/php-5.2.8/Zend/zend_objects.c:122
#29 0x013ab2a9 in zend_objects_store_del_ref_by_handle (handle=118) at
/root/php-5.2.8/Zend/zend_objects_API.c:206
#30 0x013ab2e8 in zend_objects_store_del_ref (zobject=0x9f22c58) at
/root/php-5.2.8/Zend/zend_objects_API.c:168
#31 0x0138321f in _zval_ptr_dtor (zval_ptr=0x9e3bab4) at
/root/php-5.2.8/Zend/zend_variables.h:35
#32 0x013993e6 in zend_hash_destroy (ht=0x9e3b958) at
/root/php-5.2.8/Zend/zend_hash.c:526
#33 0x013a7f73 in zend_object_std_dtor (object=0x9dcf218) at
/root/php-5.2.8/Zend/zend_objects.c:45
#34 0x013a7fa2 in zend_objects_free_object_storage (object=0x9dcf218)
at /root/php-5.2.8/Zend/zend_objects.c:122
#35 0x013aaecd in zend_objects_store_free_object_storage
(objects=0x151f7c8) at /root/php-5.2.8/Zend/zend_objects_API.c:89
#36 0x01383a21 in shutdown_executor () at
/root/php-5.2.8/Zend/zend_execute_API.c:299
#37 0x0138f833 in zend_deactivate () at
/root/php-5.2.8/Zend/zend.c:860
#38 0x0134f6d7 in php_request_shutdown (dummy=0x0) at
/root/php-5.2.8/main/main.c:1492
#39 0x01409946 in php_handler (r=0x99ba468) at
/root/php-5.2.8/sapi/apache2handler/sapi_apache2.c:469
#40 0x0029c96d in ap_run_handler () from /usr/sbin/httpd
#41 0x002a0318 in ap_invoke_handler () from /usr/sbin/httpd
#42 0x002ac38e in ap_process_request () from /usr/sbin/httpd
#43 0x002a916f in ap_register_input_filter () from /usr/sbin/httpd
#44 0x002a483d in ap_run_process_connection () from /usr/sbin/httpd
#45 0x002a493c in ap_process_connection () from /usr/sbin/httpd
#46 0x002b0952 in ap_graceful_stop_signalled () from /usr/sbin/httpd
#47 0x002b0bc4 in ap_graceful_stop_signalled () from /usr/sbin/httpd
#48 0x002b1ad9 in ap_mpm_run () from /usr/sbin/httpd
#49 0x00288147 in main () from /usr/sbin/httpd


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

[2008-04-28 09:13:26] [email protected]

Issue #44852 is the same, but has a bit more information. Keeping both
open as they complement each other. 

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

[2008-04-01 14:58:32] s dot rost at ewerk dot com

FYI Compiling PHP against different versions of oracle instantclient 
does not improve the matter but leads to more errors. We have tried 
instantclient 10.1 and 10.2 as well.

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

[2008-04-01 12:32:41] s dot rost at ewerk dot com

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1245628192 (LWP 13277)]
0xb79b3a5e in kghufree () from 
/opt/oracle/instantclient/libclntsh.so.11.1
(gdb) bt
#0  0xb79b3a5e in kghufree () from 
/opt/oracle/instantclient/libclntsh.so.11.1
#1  0xb79a83a6 in kohfrem () from 
/opt/oracle/instantclient/libclntsh.so.11.1
#2  0xb79a7b3b in kohfrr () from 
/opt/oracle/instantclient/libclntsh.so.11.1
#3  0xb68dfe48 in kohfrw () from 
/opt/oracle/instantclient/libclntsh.so.11.1
#4  0xb685b010 in kollfrfn () from 
/opt/oracle/instantclient/libclntsh.so.11.1
#5  0xb63f5379 in kpufdesc2 () from 
/opt/oracle/instantclient/libclntsh.so.11.1
#6  0xb63f4bb1 in kpufdesc () from 
/opt/oracle/instantclient/libclntsh.so.11.1
#7  0xb63ce20e in OCIDescriptorFree () from 
/opt/oracle/instantclient/libclntsh.so.11.1
#8  0x08171a7e in oci_blob_close (stream=0xb5be08d0, close_handle=1)
    at /var/install/source/php-5.2.5/ext/pdo_oci/oci_statement.c:652
#9  0x0837cbdc in _php_stream_free (stream=0xb5be08d0, 
close_options=11)
    at /var/install/source/php-5.2.5/main/streams/streams.c:346
#10 0x0837ef17 in stream_resource_regular_dtor (rsrc=0xb5be06bc)
    at /var/install/source/php-5.2.5/main/streams/streams.c:1369
#11 0x083c85a0 in list_entry_destructor (ptr=0xb5be06bc) at 
/var/install/source/php-5.2.5/Zend/zend_list.c:184
#12 0x083c5d9a in zend_hash_del_key_or_index (ht=0x852c7e8, arKey=0x0,

nKeyLength=0, h=11, flag=1)
    at /var/install/source/php-5.2.5/Zend/zend_hash.c:497
#13 0x083c825b in _zend_list_delete (id=11) at 
/var/install/source/php-5.2.5/Zend/zend_list.c:58
#14 0x083b7e54 in _zval_dtor_func (zvalue=0xb5be0858, 
    __zend_filename=0x84f9ebc "/var/install/source/php-
5.2.5/Zend/zend_variables.h", __zend_lineno=35)
    at /var/install/source/php-5.2.5/Zend/zend_variables.c:60
#15 0x083aa842 in _zval_dtor (zvalue=0xb5be0858, 
    __zend_filename=0x84f9e48 "/var/install/source/php-
5.2.5/Zend/zend_execute_API.c", __zend_lineno=414)
    at /var/install/source/php-5.2.5/Zend/zend_variables.h:35
#16 0x083aaa00 in _zval_ptr_dtor (zval_ptr=0xb5be09d8, 
    __zend_filename=0x84faf94 "/var/install/source/php-
5.2.5/Zend/zend_variables.c", __zend_lineno=175)
    at /var/install/source/php-5.2.5/Zend/zend_execute_API.c:414
#17 0x083b81b4 in _zval_ptr_dtor_wrapper (zval_ptr=0xb5be09d8)
    at /var/install/source/php-5.2.5/Zend/zend_variables.c:175
#18 0x083c5ee5 in zend_hash_destroy (ht=0xb5be07b4) at 
/var/install/source/php-5.2.5/Zend/zend_hash.c:526
#19 0x083b7e05 in _zval_dtor_func (zvalue=0xb5be0680, 
    __zend_filename=0x84fe2a8 "/var/install/source/php-
5.2.5/Zend/zend_variables.h", __zend_lineno=35)
    at /var/install/source/php-5.2.5/Zend/zend_variables.c:43
#20 0x083de15b in _zval_dtor (zvalue=0xb5be0680, 
    __zend_filename=0x84fe274 "/var/install/source/php-
5.2.5/Zend/zend_execute.c", __zend_lineno=811)
    at /var/install/source/php-5.2.5/Zend/zend_variables.h:35
#21 0x083e2203 in zend_assign_to_variable (result=0xb5be2834, 
op1=0xb5be2848, op2=0xb5be285c, value=0xb5bde518, 
    type=4, Ts=0xbf8a01d0) at /var/install/source/php-
5.2.5/Zend/zend_execute.c:811
---Type <return> to continue, or q <return> to quit---
#22 0x0842abbe in ZEND_ASSIGN_SPEC_CV_VAR_HANDLER 
(execute_data=0xbf8a0554)
    at /var/install/source/php-5.2.5/Zend/zend_vm_execute.h:24176
#23 0x083dec8c in execute (op_array=0xb5bddea8) at 
/var/install/source/php-5.2.5/Zend/zend_vm_execute.h:92
#24 0x083ba1ab in zend_execute_scripts (type=8, retval=0x0, 
file_count=3)
    at /var/install/source/php-5.2.5/Zend/zend.c:1134
#25 0x083691b6 in php_execute_script (primary_file=0xbf8a28f0) at 
/var/install/source/php-5.2.5/main/main.c:2004
#26 0x08433966 in main (argc=2, argv=0xbf8a2a34) at 
/var/install/source/php-5.2.5/sapi/cli/php_cli.c:1140

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

[2008-04-01 11:33:48] [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 for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

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.



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

[2008-04-01 11:22:40] s dot rost at ewerk dot com

php -i | grep configure

Configure Command =>  './configure'  '--prefix=/opt/server_apps/php' 
'--with-apxs2=/opt/server_apps/httpd/bin/apxs' '--disable-cgi' '--
with-config-file-path=/etc' '--enable-magic-quotes' '--with-
curl=shared' '--with-jpeg-dir=/usr' '--with-freetype-dir=/usr' '--
with-openssl=shared' '--with-gd=shared' '--with-iconv=shared' '--with-
ldap=shared' '--enable-mbstring=shared' '--with-
mysql=/opt/server_apps/mysql' '--with-mysql-
sock=/var/lib/mysqld/mysqld.sock' '--with-
mysqli=/opt/server_apps/mysql/bin/mysql_config' '--with-pear' '--with-
snmp=shared' '--enable-sockets' '--with-zlib' '--with-mime-magic' '--
with-pspell' '--with-xsl' '--with-mcrypt' '--with-mhash' '--enable-
soap' '--with-oci8=instantclient,/opt/oracle/instantclient' '--enable-
sigchild' '--with-pdo-mysql=/opt/server_apps/mysql' '--with-pdo-
oci=instantclient,/opt/oracle/instantclient,11.1'

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

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

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

Reply via email to