Re: PHP 4.0 Bug #7348 Updated: php (cgi-version) crashes when oci8 support compiled in

From: Date: Fri, 20 Oct 2000 06:56:26 +0000
Subject: Re: PHP 4.0 Bug #7348 Updated: php (cgi-version) crashes when oci8 support compiled in
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-35625@lists.php.net to get a copy of this message
Do you use linux? Could you then try to load php with LD_PRELOAD=libpthread.so? Does it help? If it does then that is the same problem php has (due to bugs in glibc) with mod_php+oci8 and apache core dumps on startup. I had the similar problem and as a workaround I have built the standalone php with EXTRA_LIBS=-lpthread option. It works for me. Oleg edink@proventum.net wrote: > ID: 7348 > User Update by: edink@proventum.net > Old-Status: Feedback > Status: Open > Bug Type: OCI8 related > Description: php (cgi-version) crashes when oci8 support compiled in > > Yes. As I've metioned the script actually works. It only crashes when exiting. All the > files get closed, changes are commited, etc. > > Another thing that I've discovered last night is that this only happens if I compile oci8 > support as a php shared module: > --with-oci8=shared,/ora01/app/oracle/product/8.1.6 > > It works fine if compiled with just: > --with-oci8=/ora01/app/oracle/product/8.1.6 > > This is now only a minor problem. The bug report could probably be closed. > > Previous Comments: > --------------------------------------------------------------------------- > > [2000-10-19 19:36:12] sniper@php.net > Have you specified the environment variables mentioned at > http://www.php.net/manual/ref.oci8.php > > What is the oci8 version? > > --Jani > > --------------------------------------------------------------------------- > > [2000-10-19 15:29:56] edink@proventum.net > At the very end of the executing any script produces segmentation fault. This only happens if > compiled with oci8 support. > > Backtrace: > > ek@uxa {/data/src/cvs-php4}$ gdb ./php > GNU gdb 19991004 > Copyright 1998 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) r > Starting program: /data/src/cvs-php4/./php > Test > X-Powered-By: PHP/4.0.4-dev > Content-type: text/html > > Test > Cannot access memory at address 0x2b458b14 > (gdb) bt > #0 0x2aab5f21 in _dl_debug_state () at dl-debug.c:56 > #1 0x2ac21156 in _dl_close (map=0x813da38) at dl-close.c:195 > #2 0x2aacf430 in dlclose_doit (handle=0x813da38) at dlclose.c:26 > #3 0x2aab5c3b in _dl_catch_error (errstring=0x2aad1080, > operate=0x2aacf418 <dlclose_doit>, args=0x813da38) at dl-error.c:141 > #4 0x2aacf8b9 in _dlerror_run (operate=0x2aacf418 <dlclose_doit>, > args=0x813da38) at dlerror.c:125 > #5 0x2aacf3fe in dlclose (handle=0x813da38) at dlclose.c:32 > #6 0x80a1cd2 in module_destructor (module=0x813f200) at zend_API.c:823 > #7 0x80a40c9 in zend_hash_destroy (ht=0x8102220) at zend_hash.c:564 > #8 0x80a100f in zend_shutdown () at zend.c:413 > #9 0x805a088 in php_module_shutdown () at main.c:932 > #10 0x8059184 in main (argc=1, argv=0x7ffff994) at cgi_main.c:752 > > --------------------------------------------------------------------------- > > Full Bug description available at: http://bugs.php.net/?id=7348 > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#35625) next »