php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15858 Unable to load dynamic library liboci8.so
Submitted: 2002-03-04 11:15 UTC Modified: 2003-02-08 01:01 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: Pavel dot Zakouril at mff dot cuni dot cz Assigned:
Status: No Feedback Package: OCI8 related
PHP Version: 4.0.6-4.2.1 OS: UnixWare 7.1.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Pavel dot Zakouril at mff dot cuni dot cz
New email:
PHP Version: OS:

 

 [2002-03-04 11:15 UTC] Pavel dot Zakouril at mff dot cuni dot cz
Hi!

we have

- SuperMicro P3TDLE, 2* Pentium III, 1 GB RAM
- UnixWare 7.1.1 with latest patches installed
- Apache 1.3.23
- PHP 4.1.2
- Oracle 8.1.7.2
- gcc 2.95.2

PHP was configured with command:

export ORACLE_HOME=/u01/app/oracle/product/8.1.7
export LD_LIBRARY_PATH=/usr/local/lib:$ORACLE_HOME/lib
./configure --with-oci8 --with-apxs --without-mysql --enable-sigchild --host=i486-sco-sysv5uw7
 
We have found (at least) one php page using database connection (this page is rather complicated, but we can provide it on demand), which generates "Segmentation fault" reproducibly. It seems, that "Segmentation fault" is caused by php, as it can be seen from following lines generated by gdb session:

egg 174# gdb /usr/local/apache.dbg/bin/httpd
(gdb) run -X
Starting program: /usr/local/apache.dbg/bin/./httpd -X
warning: Lowest section in /usr/lib/libdl.so.1 is .hash at 00000094

Program received signal SIGSEGV, Segmentation fault.
_efree (ptr=0x0) at zend_alloc.c:222
222             CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size);
[New Thread 1]
(gdb) bt
#0  _efree (ptr=0x0) at zend_alloc.c:222
#1  0xbfd6b787 in zend_hash_destroy (ht=0x0) at zend_hash.c:548
#2  0xbfd651b4 in _zval_dtor (zvalue=0x82072f4) at zend_variables.c:57
#3  0xbfd5d498 in _zval_ptr_dtor (zval_ptr=0x82566d0) at zend_execute_API.c:274
#4  0xbfd6b7d0 in zend_hash_clean (ht=0x81cede4) at zend_hash.c:567
#5  0xbfd57f07 in execute () from /usr/local/apache.dbg/libexec/libphp4.so
#6  0xbfd66a97 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at zend.c:814
#7  0xbfd77326 in php_execute_script (primary_file=0x80479d8) at main.c:1307
#8  0xbfd71af6 in apache_php_module_main (r=0x812d7e4, display_source_mode=0)
    at sapi_apache.c:90
#9  0xbfd72d2f in send_php (r=0x812d7e4, display_source_mode=0, filename=0x0)
    at mod_php4.c:575
#10 0xbfd72d96 in send_parsed_php (r=0x0) at mod_php4.c:590
#11 0x8056aa5 in ap_invoke_handler ()
#12 0x806d910 in process_request_internal ()
#13 0x806d97a in ap_process_request ()
#14 0x8063be7 in child_main ()
#15 0x8063da9 in make_child ()
#16 0x8063f22 in startup_children ()
#17 0x80644f0 in standalone_main ()
#18 0x8064d40 in main ()
#19 0x804f149 in _start ()

Unfortunately, we are unable to configure PHP with --enable-debug option, it crashes with "Segmentation fault" during Apache startup :-(

Can somebody help ?

Pavel


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 18:10 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-10-03 10:00 UTC] Pavel dot Zakouril at mff dot cuni dot cz
Unfortunately, I am not able to compile this version at all:

/home/sw/php4-200210030600/ext/mbstring/mbregex.c:4565: parm types given both in parmlist and separately
/home/sw/php4-200210030600/ext/mbstring/mbregex.c:4564: parameter name omitted
/home/sw/php4-200210030600/ext/mbstring/mbregex.c:4567: parse error before `regs'
/home/sw/php4-200210030600/ext/mbstring/mbregex.c:4568: parse error before `regs'
/home/sw/php4-200210030600/ext/mbstring/mbregex.c:4569: parse error before `regs'
make: *** [ext/mbstring/mbregex.lo] Error 1
 [2002-10-03 19:30 UTC] sniper@php.net
Try newer snapshot..and if that compile error persists, just configure using --disable-mbstring to skip the compile of that buggy thing.

 [2002-10-04 08:26 UTC] Pavel dot Zakouril at mff dot cuni dot cz
In newer snapshot this compile error persists, --disable-mbstring helps, but compilation then stops at 

gcc -I/usr/local/include -Isapi/apache/ -I/home/sw/php4-200210040300/sapi/apache/ -DPHP_ATOM_INC -I/home/sw/php4-200210040300/include -I/home/sw/php4-200210040300/main -I/home/sw/php4-200210040300 -I/home/sw/php4-200210040300/Zend -I/u01/app/oracle/product/8.1.7/rdbms/public -I/u01/app/oracle/product/8.1.7/rdbms/demo -I/home/sw/php4-200210040300/ext/xml/expat -DUW=700 -DMOD_SSL=208110 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I/home/sw/php4-200210040300/TSRM -g -Wall -c /home/sw/php4-200210040300/sapi/apache/mod_php4.c  -fPIC -DPIC -o sapi/apache/mod_php4.lo
In file included from /usr/local/include/ap_config.h:1118,
                 from /usr/local/include/httpd.h:72,
                 from /home/sw/php4-200210040300/sapi/apache/php_apache_http.h:15,
                 from /home/sw/php4-200210040300/sapi/apache/mod_php4.c:22:
/usr/include/sys/file.h:105: warning: `/*' within comment
/home/sw/php4-200210040300/sapi/apache/mod_php4.c: In function `apache_php_module_shutdown_wrapper':
/home/sw/php4-200210040300/sapi/apache/mod_php4.c:788: structure has no member named `shutdown'
/home/sw/php4-200210040300/sapi/apache/mod_php4.c: In function `php_child_exit_handler':
/home/sw/php4-200210040300/sapi/apache/mod_php4.c:809: structure has no member named `shutdown'
make: *** [sapi/apache/mod_php4.lo] Error 1

In the same configuration, version 4.2.3 can be compiled without any problem.
 [2002-10-04 18:44 UTC] sniper@php.net
Seems like something wrong in your header files.
That warning about /usr/include/sys/file.h:105...what is in that file on that line? (and around it)

Also, what was the full configure line used?

 [2002-10-07 03:51 UTC] Pavel dot Zakouril at mff dot cuni dot cz
Lines 103-109 from file.h follow:

#define FAPPEND         0x08
#define FSYNC           0x10
#define FDIRECT         0x20            /* perform direct I/O/*/
#define FDSYNC          0x40            /* perform data synchronous I/O */
#define FNONBLOCK       0x80
/* LFS SUPPORT */
#define FLARGEFILE      0x80000

Full configure line used follows:

./configure --with-oci8=shared --with-apxs --without-mysql --enable-sigchild --build=i486-sco-sysv5uw7 --host=i486-sco-sysv5uw7 --enable-debug --disable-mbstring
 [2002-10-07 18:46 UTC] sniper@php.net
This really looks like something to be pretty broken in
those header files. Try fixing this line:

#define FDIRECT         0x20            /* perform direct I/O/*/

to be:

#define FDIRECT         0x20            /* perform direct I/O */

(just remove that extra / in the comment)

This might not fix the rest of the problems, but at least it gets rid of that one warning..which _might_ cause the other errors. And you don't have e.g. two versions of Apache in your machine, by any chance?

 [2002-10-17 07:59 UTC] Pavel dot Zakouril at mff dot cuni dot cz
Still unable to compile, even with file.h fixed and with latest php snapshot. And I am sure I do not have  two versions of Apache in my machine. Compilation error follows:

gcc -I/usr/local/include -Isapi/apache/ -I/home/sw/php4-200210170300/sapi/apache/ -DPHP_ATOM_INC -I/home/sw/php4-200210170300/include -I/home/sw/php4-200210170300/main -I/home/sw/php4-200210170300 -I/home/sw/php4-200210170300/Zend -I/u01/app/oracle/product/8.1.7/rdbms/public -I/u01/app/oracle/product/8.1.7/rdbms/demo -I/home/sw/php4-200210170300/ext/xml/expat -DUW=700 -DMOD_SSL=208110 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I/home/sw/php4-200210170300/TSRM -g -Wall -c /home/sw/php4-200210170300/sapi/apache/mod_php4.c  -fPIC -DPIC -o sapi/apache/mod_php4.lo
/home/sw/php4-200210170300/sapi/apache/mod_php4.c: In function `apache_php_module_shutdown_wrapper':
/home/sw/php4-200210170300/sapi/apache/mod_php4.c:788: structure has no member named `shutdown'
/home/sw/php4-200210170300/sapi/apache/mod_php4.c: In function `php_child_exit_handler':
/home/sw/php4-200210170300/sapi/apache/mod_php4.c:809: structure has no member named `shutdown'
make: *** [sapi/apache/mod_php4.lo] Error 1
 [2003-02-08 01:01 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-02-24 23:14 UTC] justin at emailalaska dot D0t dot net
When running ./configure I get:
zend_hash_internal_pointer_reset_ex ext/standard/info.lo
zend_llist_sort                     sapi/cli/php_cli.lo
zend_ini_sort_entries               ext/standard/info.lo
_convert_to_string                  ext/standard/info.lo
php_get_highlight_struct            sapi/cli/php_cli.lo
UX:ld: ERROR: sapi/cli/php: fatal error: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
*** Error code 1 (bu21)
UX:make: ERROR: fatal error.
[root@UNIX-1]/usr/local/source/php-4.3.1#make
/bin/sh libtool --silent --mode=compile gcc -I/usr/local/apache/include -Isapi/apache/ -I/usr/local/source/php-4.3.1/sapi/apache/ -DPHP_ATOM_INC -I/usr/local/source/php-4.3.1/include -I/usr/local/source/php-4.3.1/main -I/usr/local/source/php-4.3.1 -I/usr/local/source/php-4.3.1/Zend -I/usr/local/mysql/include -I/usr/local/source/php-4.3.1/ext/xml/expat  -DUW=700 -DUSE_HSREGEX -DUSE_EXPAT -I/usr/local/source/php-4.3.1/TSRM  -g -O2  -prefer-pic -c /usr/local/source/php-4.3.1/sapi/apache/mod_php4.c -o sapi/apache/mod_php4.lo
/usr/local/source/php-4.3.1/sapi/apache/mod_php4.c: In function `apache_php_module_shutdown_wrapper':
/usr/local/source/php-4.3.1/sapi/apache/mod_php4.c:780: structure has no member named `shutdown'
/usr/local/source/php-4.3.1/sapi/apache/mod_php4.c: In function `php_child_exit_handler':
/usr/local/source/php-4.3.1/sapi/apache/mod_php4.c:801: structure has no member named `shutdown'
make: *** [sapi/apache/mod_php4.lo] Error 1
[root@UNIX-1]/usr/local/source/php-4.3.1#

Any idas?
- Justin
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 26 03:03:35 2021 UTC