From: necat at digicol dot de
Operating system: ia64-hp-hpux11.23
PHP version: 4.4.1
PHP Bug Type: OCI8 related
Bug description: Segmentation fault (core dumped)...
Description:
------------
Hi,
checking whether to enable pcntl support... yes
checking for fork... no
configure: error: pcntl: fork() not supported by this platform
and then configure exists.
I edit the suffix in configure file for hpux from sl to so and
OCI8_DIR/lib to OCI8_DIR/lib32
and edit the file like too
php-4.4.1/ext/oci8/config.m4
OCI8_DIR/lib to OCI8_DIR/lib32
configure works well and no problem with compile.
Reproduce code:
---------------
run php
appdc5@obds820:/dc5/home/appdc5/Sourcen/php-4.4.1-cli/sapi/cli>./php -v
Segmentation fault (core dumped)
Actual result:
--------------
GDB Backtrace
=============
Script started on Wed Dec 21 11:50:05 2005
$ /opt/lon angtools/bin/gdb php core
HP gdb 5.2.03 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.2.03 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for
warranty/support.
..
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object
warning: Load module /usr/local/lib/hpux32/libz.so has been stripped.
Debugging information is not available.
warning: Load module /usr/local/lib/hpux32/libgdbm.so has been stripped.
Debugging information is not available.
warning: Load module /usr/local/lib/hpux32/libxml2.so has been stripped.
Debugging information is not available.
warning: Load module /usr/local/lib/hpux32/libpthread.so has been
stripped.
Debugging information is not available.
warning: Load module /usr/local/lib/hpux32/libiconv.so has been stripped.
Debugging information is not available.
warning: Load module
/dc5/home/appdc5/oracle/ORAHOME/lib32/libclntsh.so.10.1 has been stripped.
Debugging information is not available.
warning: Load module /dc5/home/appdc5/oracle/ORAHOME/lib32/libnnz10.so has
been stripped.
Debugging information is not available.
warning: Some of the libraries in the core file are different from the
libraries on this computer. It might be possible to proceed
with your debugging process successfully. However, if you run into
problems you must use the versions of the libraries used by the
core. The mismatches are:
./php in the core file is different from
./php used by gdb
#0 0x60000000c1f25910:1 in pth_mutex_acquire+0x61 ()
from /usr/local/lib/hpux32/libpthread.so
(gdb) bt
#0 0x60000000c1f25910:1 in pth_mutex_acquire+0x61 ()
from /usr/local/lib/hpux32/libpthread.so
#1 0x60000000c1f14a60:0 in pthread_mutex_lock+0xf0 ()
from /usr/local/lib/hpux32/libpthread.so
#2 0x60000000c7121cc0:0 in sltsima+0x40 ()
from /dc5/home/appdc5/oracle/ORAHOME/lib32/libclntsh.so.10.1
#3 0x60000000c6abb9a0:0 in kpummpin+0x60 ()
from /dc5/home/appdc5/oracle/ORAHOME/lib32/libclntsh.so.10.1
#4 0x60000000c5a64620:0 in kpupin+0xa0 ()
from /dc5/home/appdc5/oracle/ORAHOME/lib32/libclntsh.so.10.1
#5 0x60000000c5b9d4e0:0 in OCIInitialize+0x40 ()
from /dc5/home/appdc5/oracle/ORAHOME/lib32/libclntsh.so.10.1
#6 0x4260f10:0 in zm_startup_oci (type=1, module_number=9)
at /dc5/home/appdc5/Sourcen/php-4.4.1/ext/oci8/oci8.c:489
#7 0x44742f0:0 in zend_startup_module (module=0x40026ed0)
at /dc5/home/appdc5/Sourcen/php-4.4.1/Zend/zend_API.c:1006
#8 0x43f75b0:0 in php_startup_extensions (ptr=0x4002ab10)
at /dc5/home/appdc5/Sourcen/php-4.4.1/main/main.c:1041
#9 0x44c0ba0:0 in php_startup_internal_extensions ()
at main/internal_functions_cli.c:77
#10 0x43f8020:0 in php_module_startup ()
at /dc5/home/appdc5/Sourcen/php-4.4.1/main/main.c:1216
#11 0x44be680:0 in main ()
at /dc5/home/appdc5/Sourcen/php-4.4.1/sapi/cli/php_cli.c:582
(gdb) quit
$ exit
script done on Wed Dec 21 11:54:18 2005
Thanks and Regards,
Necat Kutlar
--
Edit bug report at http://bugs.php.net/?id=35762&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35762&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35762&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35762&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35762&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35762&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35762&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35762&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35762&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35762&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35762&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35762&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35762&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35762&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35762&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35762&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35762&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35762&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35762&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35762&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35762&r=mysqlcfg