php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35762 Segmentation fault (core dumped)...
Submitted: 2005-12-21 12:20 UTC Modified: 2006-01-04 16:45 UTC
From: necat at digicol dot de Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.4.1 OS: ia64-hp-hpux11.23
Private report: No CVE-ID: None
 [2005-12-21 12:20 UTC] necat at digicol dot de
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-21 12:26 UTC] tony2001@php.net
Are you using OCI8 from PECL?
 [2005-12-21 12:50 UTC] necat at digicol dot de
no, I use standard oci8 that comes by php4.4.1.
do you mean, when I install pecl package, is the solution?
 
N.Kutlar
 [2005-12-21 12:55 UTC] tony2001@php.net
Yes, this is the solution.
New OCI8 won't appear in 4.4.x, as this branch is reserved for critical fixes only.

Also, please name you reports with something more informative then just "segmentation fault".
 [2005-12-21 16:33 UTC] necat at digicol dot de
Hi,

a lot of Unsatisfied symbols :-(

ld: Unsatisfied symbol "zif_oci_fetch_all" in file ext/oci8/oci8.o
ld: Unsatisfied symbol "zif_oci_fetch_assoc" in file ext/oci8/oci8.o
ld: Unsatisfied symbol "php_oci_lob_read" in file ext/oci8/oci8.o
ld: Unsatisfied symbol "zif_oci_new_descriptor" in file ext/oci8/oci8.o
...

oracle home is ok
oracle lib dir is ok (lib32)

what am I missing?

I still try to find some bugs in the bugs list...

regards,
n.kutlar
 [2005-12-21 16:38 UTC] tony2001@php.net
./cvsclean && ./buildconf --force is what you need.
 [2005-12-22 10:41 UTC] necat at digicol dot de
hmmmmm,

appdc5@obds820:/dc5/home/appdc5/Sourcen/php-4.4.1>./cvsclean 
appdc5@obds820:/dc5/home/appdc5/Sourcen/php-4.4.1>./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
           Running cvsclean for you.
           To avoid this, install autoconf-2.13 and automake-1.5.
Make: Must be a separator on rules line 36.  Stop.
*** Error exit code 1

Stop.

automake is installed successfully
/usr/local/bin/automake --version
automake (GNU automake) 1.5

but make of autoconf-2.13 gives error!

Regards,
Necat Kutlar
 [2006-01-04 16:45 UTC] necat at digicol dot de
Hi,

oci8 from pecl installed
autoconf 2.56 and automake-1.5 installed
MAKE=gmake is defined in environment

rm -f ./configure
./cvsclean
./buildconf --force

and it works.
please close this ID.

regards,
Necat Kutar
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 04:01:34 2024 UTC