OCI8 problems

From: Date: Fri, 02 Jun 2000 03:26:18 +0000
Subject: OCI8 problems
Groups: php.db 
Request: Send a blank email to php-db+get-167@lists.php.net to get a copy of this message
We're experiencing some strange segfaults from PHP scripts, but they only happen in httpd children that have previously accessed the database w/ DBD::Oracle from mod_perl. Independently, both the PHP stuff and the mod_perl stuff work well and don't segv. I'm wondering what Oracle client stuff DBD::Oracle and PHP's OCI8 share, and how DBD::Oracle might change with something that PHP uses. The backtrace points at libclntsh.so.8.0. The platform is Redhat 6.2 with the Oracle 8.1.5 client. We use ociplogon, and if we remove calls to ocilogoff the problem goes away, but I'm not convinced that's a good solution. Has anyone experienced a similar problem? Any help would be appreciated, and I can provide more info if necessary to assist. I can reproduce the backtrace. Thanks, -Chris Jensen Here's the backtrace: Program received signal SIGSEGV, Segmentation fault. 0x40169775 in kpufdesc () from /usr/oracle/lib/libclntsh.so.8.0 (gdb) bt #0 0x40169775 in kpufdesc () from /usr/oracle/lib/libclntsh.so.8.0 #1 0x40187946 in OCIDescriptorFree () from /usr/oracle/lib/libclntsh.so.8.0 #2 0x4085b188 in _oci8_free_descr (descr=0x8d155f8) at functions/oci8.c:1894 #3 0x408342ca in _php3_hash_destroy (ht=0x8d17e48) at php3_hash.c:668 #4 0x40859a1c in _oci8_close_conn (connection=0x8d164d8) at functions/oci8.c:632 #5 0x4083b1c5 in list_entry_destructor (ptr=0x8d15e10) at list.c:96 #6 0x408341c2 in _php3_hash_del_key_or_index (ht=0x408b8420, arKey=0x0, nKeyLength=0, h=19, flag=1) at php3_hash.c:633 #7 0x4083b139 in php3_list_do_delete (list=0x408b8420, id=19) at list.c:72 #8 0x4085d581 in php3_oci8_logout (ht=0x8d161e0, return_value=0x408b6eb4, list=0x408b8420, plist=0x408b83e0) at functions/oci8.c:3349 #9 0x4087b7bd in phpparse () at control_structures_inline.h:929 #10 0x40832e40 in php3_parse (yyin=0x87a6bf0) at main.c:1538 #11 0x4083311c in apache_php3_module_main (r=0x87b2cb4, fd=27, display_source_mode=0, preprocessed=0) at main.c:1892 #12 0x4082fe81 in send_php3 () from /usr/local/apache/libexec/libphp3.so #13 0x4082ff07 in send_parsed_php3 () from /usr/local/apache/libexec/libphp3.so #14 0x8054553 in ap_invoke_handler () #15 0x8067cb9 in process_request_internal () #16 0x8067d1c in ap_process_request () #17 0x805f62e in child_main () #18 0x805f88c in make_child () #19 0x805f939 in startup_children () ---Type <return> to continue, or q <return> to quit--- #20 0x805ff66 in standalone_main () #21 0x80606e3 in main () #22 0x405be9cb in __libc_start_main (main=0x80603ac <main>, argc=2, argv=0xbffff9a4, init=0x804ea4c <_init>, fini=0x80962cc <_fini>, rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffff99c) at ../sysdeps/generic/libc-start.c:92

« previous php.db (#167) next »