#20249 [NoF-Opn]: Apache child segfaults when using OCILogon.

2002-11-21 Thread bdabney
 ID:   20249
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   No Feedback
+Status:   Open
 Bug Type: OCI8 related
 Operating System: Solaris 9
 PHP Version:  4.2.3
 New Comment:

This is still an issue.


Previous Comments:


[2002-11-21 17:10:20] [EMAIL PROTECTED]

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.





[2002-11-07 19:12:07] [EMAIL PROTECTED]

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-11-06 10:14:28] [EMAIL PROTECTED]

Ok, doing an ldd on /usr/lib/64/libpthread.so.1 answered that question.
It uses libthread.



[2002-11-05 10:15:22] [EMAIL PROTECTED]

Ok, I had put those SetEnv statements in Apache to see if they would
help. I do have the same environment variables set in apachectl when I
run Apache.

And I did read the note. Here is output from ldd:

# ldd /usr/local/apache/bin/httpd
libpam.so.1 =   /usr/lib/64/libpam.so.1
libz.so.1 = /usr/lib/64/libz.so.1
libcrypt_i.so.1 =   /usr/lib/64/libcrypt_i.so.1
libresolv.so.2 =/usr/lib/64/libresolv.so.2
libm.so.1 = /usr/lib/64/libm.so.1
libdl.so.1 =/usr/lib/64/libdl.so.1
libnsl.so.1 =   /usr/lib/64/libnsl.so.1
libsocket.so.1 =/usr/lib/64/libsocket.so.1
libgen.so.1 =   /usr/lib/64/libgen.so.1
libclntsh.so.9.0 = 
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
libpthread.so.1 =   /usr/lib/64/libpthread.so.1
libc.so.1 = /usr/lib/64/libc.so.1
libcmd.so.1 =   /usr/lib/64/libcmd.so.1
libmp.so.2 =/usr/lib/64/libmp.so.2
libwtc9.so =/usr/local/oracle/OraHome/lib/libwtc9.so
libaio.so.1 =   /usr/lib/64/libaio.so.1
librt.so.1 =/usr/lib/64/librt.so.1
libmd5.so.1 =   /usr/lib/64/libmd5.so.1
libthread.so.1 =/usr/lib/64/libthread.so.1
/usr/platform/SUNW,Sun-Blade-100/lib/sparcv9/libc_psr.so.1
/usr/platform/SUNW,Sun-Blade-100/lib/sparcv9/libmd5_psr.so.1

Could the fact that it's linked to both the pthread and the thread
library be causing a problem? If so, how do I prevent it from linking
to the thread library?



[2002-11-04 17:15:57] [EMAIL PROTECTED]

Using Apache's  SetEnv doesn't work for PHP/Oracle. You have to set
these really in Apache's environment (e.g. in apachectl).

If that alone doesn't help: did you see the big fat note at
http://www.php3.de/manual/en/ref.oci8.php:

If your webserver doesn't start or crashes at startup:  Check that
Apache is linked with the pthread library: [...]



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20249

-- 
Edit this bug report at http://bugs.php.net/?id=20249edit=1




#20249 [Opn]: Apache child segfaults when using OCILogon.

2002-11-06 Thread bdabney
 ID:   20249
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: OCI8 related
 Operating System: Solaris 9
 PHP Version:  4.2.3
 New Comment:

Ok, doing an ldd on /usr/lib/64/libpthread.so.1 answered that question.
It uses libthread.


Previous Comments:


[2002-11-05 10:15:22] [EMAIL PROTECTED]

Ok, I had put those SetEnv statements in Apache to see if they would
help. I do have the same environment variables set in apachectl when I
run Apache.

And I did read the note. Here is output from ldd:

# ldd /usr/local/apache/bin/httpd
libpam.so.1 =   /usr/lib/64/libpam.so.1
libz.so.1 = /usr/lib/64/libz.so.1
libcrypt_i.so.1 =   /usr/lib/64/libcrypt_i.so.1
libresolv.so.2 =/usr/lib/64/libresolv.so.2
libm.so.1 = /usr/lib/64/libm.so.1
libdl.so.1 =/usr/lib/64/libdl.so.1
libnsl.so.1 =   /usr/lib/64/libnsl.so.1
libsocket.so.1 =/usr/lib/64/libsocket.so.1
libgen.so.1 =   /usr/lib/64/libgen.so.1
libclntsh.so.9.0 = 
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
libpthread.so.1 =   /usr/lib/64/libpthread.so.1
libc.so.1 = /usr/lib/64/libc.so.1
libcmd.so.1 =   /usr/lib/64/libcmd.so.1
libmp.so.2 =/usr/lib/64/libmp.so.2
libwtc9.so =/usr/local/oracle/OraHome/lib/libwtc9.so
libaio.so.1 =   /usr/lib/64/libaio.so.1
librt.so.1 =/usr/lib/64/librt.so.1
libmd5.so.1 =   /usr/lib/64/libmd5.so.1
libthread.so.1 =/usr/lib/64/libthread.so.1
/usr/platform/SUNW,Sun-Blade-100/lib/sparcv9/libc_psr.so.1
/usr/platform/SUNW,Sun-Blade-100/lib/sparcv9/libmd5_psr.so.1

Could the fact that it's linked to both the pthread and the thread
library be causing a problem? If so, how do I prevent it from linking
to the thread library?



[2002-11-04 17:15:57] [EMAIL PROTECTED]

Using Apache's  SetEnv doesn't work for PHP/Oracle. You have to set
these really in Apache's environment (e.g. in apachectl).

If that alone doesn't help: did you see the big fat note at
http://www.php3.de/manual/en/ref.oci8.php:

If your webserver doesn't start or crashes at startup:  Check that
Apache is linked with the pthread library: [...]



[2002-11-04 16:52:18] [EMAIL PROTECTED]

This is with Oracle 9i Release 2.



[2002-11-04 16:43:30] [EMAIL PROTECTED]

I get the following messages in my Apache 1.3.27 error log whenever I
try to use OCILogon:

[Mon Nov  4 15:32:46 2002] [notice] Apache/1.3.27 (Unix) PHP/4.2.3
configured -- resuming normal ope
rations
[Mon Nov  4 15:32:46 2002] [notice] Accept mutex: fcntl (Default:
fcntl)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13088 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13086 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13085 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13084 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13083 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13082 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:01 2002] [notice] child pid 13090 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:01 2002] [notice] child pid 13089 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:02 2002] [notice] child pid 13092 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:02 2002] [notice] child pid 13091 exit signal
Segmentation Fault (11)

Here is the script I tested with:

?

$SID = (DESCRIPTION = 
(ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.140)(PORT = 1521))
)
(CONNECT_DATA =
  (SERVICE_NAME = TESTDB.WORLD)
)
);

$conn = OCILogon (scott, tiger,$SID);

print Connected!br\n;
?

Here are my configure lines:

For apache :

OPTIM=-g -m64 CFLAGS=-DDYNAMIC_MODULE_LIMIT=0 ./configure
--mandir=/usr/local/man --activate-module=src/modules/php4/libphp4.a
--enable-module=php4 --server-uid=www --server-gid=www

For PHP

CFLAGS=-g -m64 ./configure --with-apache=../apache_1.3.27 --with-xml
--with-oci8=/usr/local/oracle/OraHome --with-zlib
--enable-inline-optimization --enable-bcmath --enable-debug

They were both compiled with gcc-3.2.

Here are the environment variable settings from my httpd.conf:

SetEnv ORACLE_BASE /usr/local/oracle
SetEnv ORACLE_HOME /usr/local/oracle/OraHome
SetEnv ORACLE_SID TESTDB.WORLD
SetEnv TNS_ADMIN /usr/local/oracle/OraHome/network/admin/tnsnames.ora
SetEnv TWO_TASK 

#20249 [Opn]: Apache child segfaults when using OCILogon.

2002-11-05 Thread bdabney
 ID:   20249
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: OCI8 related
 Operating System: Solaris 9
 PHP Version:  4.2.3
 New Comment:

Ok, I had put those SetEnv statements in Apache to see if they would
help. I do have the same environment variables set in apachectl when I
run Apache.

And I did read the note. Here is output from ldd:

# ldd /usr/local/apache/bin/httpd
libpam.so.1 =   /usr/lib/64/libpam.so.1
libz.so.1 = /usr/lib/64/libz.so.1
libcrypt_i.so.1 =   /usr/lib/64/libcrypt_i.so.1
libresolv.so.2 =/usr/lib/64/libresolv.so.2
libm.so.1 = /usr/lib/64/libm.so.1
libdl.so.1 =/usr/lib/64/libdl.so.1
libnsl.so.1 =   /usr/lib/64/libnsl.so.1
libsocket.so.1 =/usr/lib/64/libsocket.so.1
libgen.so.1 =   /usr/lib/64/libgen.so.1
libclntsh.so.9.0 = 
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
libpthread.so.1 =   /usr/lib/64/libpthread.so.1
libc.so.1 = /usr/lib/64/libc.so.1
libcmd.so.1 =   /usr/lib/64/libcmd.so.1
libmp.so.2 =/usr/lib/64/libmp.so.2
libwtc9.so =/usr/local/oracle/OraHome/lib/libwtc9.so
libaio.so.1 =   /usr/lib/64/libaio.so.1
librt.so.1 =/usr/lib/64/librt.so.1
libmd5.so.1 =   /usr/lib/64/libmd5.so.1
libthread.so.1 =/usr/lib/64/libthread.so.1
/usr/platform/SUNW,Sun-Blade-100/lib/sparcv9/libc_psr.so.1
/usr/platform/SUNW,Sun-Blade-100/lib/sparcv9/libmd5_psr.so.1

Could the fact that it's linked to both the pthread and the thread
library be causing a problem? If so, how do I prevent it from linking
to the thread library?


Previous Comments:


[2002-11-04 17:15:57] [EMAIL PROTECTED]

Using Apache's  SetEnv doesn't work for PHP/Oracle. You have to set
these really in Apache's environment (e.g. in apachectl).

If that alone doesn't help: did you see the big fat note at
http://www.php3.de/manual/en/ref.oci8.php:

If your webserver doesn't start or crashes at startup:  Check that
Apache is linked with the pthread library: [...]



[2002-11-04 16:52:18] [EMAIL PROTECTED]

This is with Oracle 9i Release 2.



[2002-11-04 16:43:30] [EMAIL PROTECTED]

I get the following messages in my Apache 1.3.27 error log whenever I
try to use OCILogon:

[Mon Nov  4 15:32:46 2002] [notice] Apache/1.3.27 (Unix) PHP/4.2.3
configured -- resuming normal ope
rations
[Mon Nov  4 15:32:46 2002] [notice] Accept mutex: fcntl (Default:
fcntl)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13088 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13086 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13085 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13084 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13083 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13082 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:01 2002] [notice] child pid 13090 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:01 2002] [notice] child pid 13089 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:02 2002] [notice] child pid 13092 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:02 2002] [notice] child pid 13091 exit signal
Segmentation Fault (11)

Here is the script I tested with:

?

$SID = (DESCRIPTION = 
(ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.140)(PORT = 1521))
)
(CONNECT_DATA =
  (SERVICE_NAME = TESTDB.WORLD)
)
);

$conn = OCILogon (scott, tiger,$SID);

print Connected!br\n;
?

Here are my configure lines:

For apache :

OPTIM=-g -m64 CFLAGS=-DDYNAMIC_MODULE_LIMIT=0 ./configure
--mandir=/usr/local/man --activate-module=src/modules/php4/libphp4.a
--enable-module=php4 --server-uid=www --server-gid=www

For PHP

CFLAGS=-g -m64 ./configure --with-apache=../apache_1.3.27 --with-xml
--with-oci8=/usr/local/oracle/OraHome --with-zlib
--enable-inline-optimization --enable-bcmath --enable-debug

They were both compiled with gcc-3.2.

Here are the environment variable settings from my httpd.conf:

SetEnv ORACLE_BASE /usr/local/oracle
SetEnv ORACLE_HOME /usr/local/oracle/OraHome
SetEnv ORACLE_SID TESTDB.WORLD
SetEnv TNS_ADMIN /usr/local/oracle/OraHome/network/admin/tnsnames.ora
SetEnv TWO_TASK /usr/local/oracle/OraHome/network/admin/tnsnames.ora
SetEnv NLS_LANG English_America.WE8ISO8859P1

And here is the backtrace:

bash-2.05# gdb /usr/local/apache/bin/httpd 
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.

#20268 [NEW]: PHP (module or CLI) crashes with Bus Error on startup

2002-11-05 Thread bdabney
From: [EMAIL PROTECTED]
Operating system: Solaris 9
PHP version:  4CVS-2002-11-05
PHP Bug Type: Zend Engine 2 problem
Bug description:  PHP (module or CLI) crashes with Bus Error on startup

The CVS version (and the 4.3.0pre2 version, same error and backtrace) core
dumps on startup with this error:

Bus Error (core dumped)

My configure:

CFLAGS=-g -m64 ./configure --with-apache=../apache_1.3.27  --with-xml
--with-oci8=/usr/local/oracle/OraHome --with-zlib
--enable-inline-optimization --enable-bcmath --enable-debug --with-curl

Here is the backtrace:

bash-2.05# gdb /usr/local/bin/php ,/core
GNU gdb 5.2.1
Copyright 2002 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 sparc-sun-solaris2.9...
/export/home/bdabney/php4/,/core: No such file or directory.
(gdb) quit
bash-2.05# gdb /usr/local/bin/php ./core 
GNU gdb 5.2.1
Copyright 2002 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 sparc-sun-solaris2.9...
Core was generated by `/export/home/bdabney/php4/sapi/cli/php -d
safe_mode=0 -d open_basedir= /export/'.
Program terminated with signal 10, Bus error.
Reading symbols from /usr/lib/64/libz.so.1...done.
Loaded symbols for /usr/lib/64/libz.so.1
Reading symbols from /usr/lib/64/libdl.so.1...done.
Loaded symbols for /usr/lib/64/libdl.so.1
Reading symbols from /usr/lib/64/libsocket.so.1...done.
Loaded symbols for /usr/lib/64/libsocket.so.1
Reading symbols from /usr/lib/64/libnsl.so.1...done.
Loaded symbols for /usr/lib/64/libnsl.so.1
Reading symbols from /usr/lib/64/libcrypt_i.so.1...done.
Loaded symbols for /usr/lib/64/libcrypt_i.so.1
Reading symbols from /usr/lib/64/libresolv.so.2...done.
Loaded symbols for /usr/lib/64/libresolv.so.2
Reading symbols from /usr/lib/64/libm.so.1...done.
Loaded symbols for /usr/lib/64/libm.so.1
Reading symbols from /usr/local/lib/libcurl.so.2...done.
Loaded symbols for /usr/local/lib/libcurl.so.2
Reading symbols from /usr/lib/64/libgen.so.1...done.
Loaded symbols for /usr/lib/64/libgen.so.1
Reading symbols from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0...done.
Loaded symbols for /usr/local/oracle/OraHome/lib/libclntsh.so.9.0
Reading symbols from /usr/lib/64/libc.so.1...done.
Loaded symbols for /usr/lib/64/libc.so.1
Reading symbols from /usr/lib/64/libmp.so.2...done.
Loaded symbols for /usr/lib/64/libmp.so.2
Reading symbols from /usr/local/oracle/OraHome/lib/libwtc9.so...done.
Loaded symbols for /usr/local/oracle/OraHome/lib/libwtc9.so
---Type return to continue, or q return to quit---
Reading symbols from /usr/lib/64/libaio.so.1...done.
Loaded symbols for /usr/lib/64/libaio.so.1
Reading symbols from /usr/lib/64/librt.so.1...done.
Loaded symbols for /usr/lib/64/librt.so.1
Reading symbols from /usr/lib/64/libmd5.so.1...done.
Loaded symbols for /usr/lib/64/libmd5.so.1
Reading symbols from
/usr/platform/SUNW,Sun-Blade-100/lib/sparcv9/libc_psr.so.1...done.
Loaded symbols for
/usr/platform/SUNW,Sun-Blade-100/lib/sparcv9/libc_psr.so.1
#0  0x100265bd0 in OnUpdateInt (entry=0x100407fb0, 
new_value=0x1002ad390 1024, new_value_length=4, mh_arg1=0x4c, 
mh_arg2=0x1003f2e50, mh_arg3=0x0, stage=1)
at /export/home/bdabney/php4/Zend/zend_ini.c:444
444 *p = zend_atoi(new_value, new_value_length);
(gdb) bt
#0  0x100265bd0 in OnUpdateInt (entry=0x100407fb0, 
new_value=0x1002ad390 1024, new_value_length=4, mh_arg1=0x4c, 
mh_arg2=0x1003f2e50, mh_arg3=0x0, stage=1)
at /export/home/bdabney/php4/Zend/zend_ini.c:444
#1  0x100264cbc in zend_register_ini_entries (ini_entry=0x1003ec008, 
module_number=0) at /export/home/bdabney/php4/Zend/zend_ini.c:157
#2  0x1001ea968 in php_module_startup (sf=0x1003f1e00,
additional_modules=0x0, 
num_additional_modules=0) at
/export/home/bdabney/php4/main/main.c:1068
#3  0x10027644c in main (argc=9, argv=0x7ad8)
at /export/home/bdabney/php4/sapi/cli/php_cli.c:443
(gdb)
-- 
Edit bug report at http://bugs.php.net/?id=20268edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20268r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=20268r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=20268r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20268r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=20268r=oldversion
Not developer issue:http://bugs.php.net/fix.php

#20249 [NEW]: Apache child segfaults when using OCILogon.

2002-11-04 Thread bdabney
From: [EMAIL PROTECTED]
Operating system: Solaris 9
PHP version:  4.2.3
PHP Bug Type: OCI8 related
Bug description:  Apache child segfaults when using OCILogon.

I get the following messages in my Apache 1.3.27 error log whenever I try
to use OCILogon:

[Mon Nov  4 15:32:46 2002] [notice] Apache/1.3.27 (Unix) PHP/4.2.3
configured -- resuming normal ope
rations
[Mon Nov  4 15:32:46 2002] [notice] Accept mutex: fcntl (Default: fcntl)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13088 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13086 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13085 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13084 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13083 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13082 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:01 2002] [notice] child pid 13090 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:01 2002] [notice] child pid 13089 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:02 2002] [notice] child pid 13092 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:02 2002] [notice] child pid 13091 exit signal
Segmentation Fault (11)

Here is the script I tested with:

?

$SID = (DESCRIPTION = 
(ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.140)(PORT = 1521))
)
(CONNECT_DATA =
  (SERVICE_NAME = TESTDB.WORLD)
)
);

$conn = OCILogon (scott, tiger,$SID);

print Connected!br\n;
?

Here are my configure lines:

For apache :

OPTIM=-g -m64 CFLAGS=-DDYNAMIC_MODULE_LIMIT=0 ./configure
--mandir=/usr/local/man --activate-module=src/modules/php4/libphp4.a
--enable-module=php4 --server-uid=www --server-gid=www

For PHP

CFLAGS=-g -m64 ./configure --with-apache=../apache_1.3.27 --with-xml
--with-oci8=/usr/local/oracle/OraHome --with-zlib
--enable-inline-optimization --enable-bcmath --enable-debug

They were both compiled with gcc-3.2.

Here are the environment variable settings from my httpd.conf:

SetEnv ORACLE_BASE /usr/local/oracle
SetEnv ORACLE_HOME /usr/local/oracle/OraHome
SetEnv ORACLE_SID TESTDB.WORLD
SetEnv TNS_ADMIN /usr/local/oracle/OraHome/network/admin/tnsnames.ora
SetEnv TWO_TASK /usr/local/oracle/OraHome/network/admin/tnsnames.ora
SetEnv NLS_LANG English_America.WE8ISO8859P1

And here is the backtrace:

bash-2.05# gdb /usr/local/apache/bin/httpd 
GNU gdb 5.2.1
Copyright 2002 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 sparc-sun-solaris2.9...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x7d03b84c in strlen () from /usr/lib/64/libc.so.1
(gdb) bt
#0  0x7d03b84c in strlen () from /usr/lib/64/libc.so.1
#1  0x7d843e68 in snauca_check_adapter ()
   from /usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#2  0x7d841d58 in nau_viat () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#3  0x7d838454 in nau_gettab () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#4  0x7d8360a0 in nau_ini () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#5  0x7d827084 in nainit () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#6  0x7d7ce8b0 in nsnainit () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#7  0x7d7c0070 in nsopen () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#8  0x7d7a59e0 in nscall1 () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#9  0x7d7a4e28 in nscall () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#10 0x7d85e6dc in niotns () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#11 0x7d857fe8 in nigcall () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#12 0x7d7dfd54 in osncon () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#13 0x7d5b39dc in kpuadef () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#14 0x7d67b5fc in upiini () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#15 0x7d666554 in upiah0 () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#16 0x7d5b3308 in kpuatch () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#17 0x7d657084 in OCIServerAttach () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#18 0x10007684c in _oci_open_server (
dbname=0x10048fc30 (DESCRIPTION = \n(ADDRESS_LIST =\n 
(ADDRESS = (PROTOCOL = TCP)(HOST = 176.175.0.140)(PORT = 1521))\n)\n  
 (CONNECT_DATA =\n  (SERVICE_NAME = 

#20249 [Opn]: Apache child segfaults when using OCILogon.

2002-11-04 Thread bdabney
 ID:   20249
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: OCI8 related
 Operating System: Solaris 9
 PHP Version:  4.2.3
 New Comment:

This is with Oracle 9i Release 2.


Previous Comments:


[2002-11-04 16:43:30] [EMAIL PROTECTED]

I get the following messages in my Apache 1.3.27 error log whenever I
try to use OCILogon:

[Mon Nov  4 15:32:46 2002] [notice] Apache/1.3.27 (Unix) PHP/4.2.3
configured -- resuming normal ope
rations
[Mon Nov  4 15:32:46 2002] [notice] Accept mutex: fcntl (Default:
fcntl)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13088 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13086 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13085 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13084 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13083 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:00 2002] [notice] child pid 13082 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:01 2002] [notice] child pid 13090 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:01 2002] [notice] child pid 13089 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:02 2002] [notice] child pid 13092 exit signal
Segmentation Fault (11)
[Mon Nov  4 15:33:02 2002] [notice] child pid 13091 exit signal
Segmentation Fault (11)

Here is the script I tested with:

?

$SID = (DESCRIPTION = 
(ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.140)(PORT = 1521))
)
(CONNECT_DATA =
  (SERVICE_NAME = TESTDB.WORLD)
)
);

$conn = OCILogon (scott, tiger,$SID);

print Connected!br\n;
?

Here are my configure lines:

For apache :

OPTIM=-g -m64 CFLAGS=-DDYNAMIC_MODULE_LIMIT=0 ./configure
--mandir=/usr/local/man --activate-module=src/modules/php4/libphp4.a
--enable-module=php4 --server-uid=www --server-gid=www

For PHP

CFLAGS=-g -m64 ./configure --with-apache=../apache_1.3.27 --with-xml
--with-oci8=/usr/local/oracle/OraHome --with-zlib
--enable-inline-optimization --enable-bcmath --enable-debug

They were both compiled with gcc-3.2.

Here are the environment variable settings from my httpd.conf:

SetEnv ORACLE_BASE /usr/local/oracle
SetEnv ORACLE_HOME /usr/local/oracle/OraHome
SetEnv ORACLE_SID TESTDB.WORLD
SetEnv TNS_ADMIN /usr/local/oracle/OraHome/network/admin/tnsnames.ora
SetEnv TWO_TASK /usr/local/oracle/OraHome/network/admin/tnsnames.ora
SetEnv NLS_LANG English_America.WE8ISO8859P1

And here is the backtrace:

bash-2.05# gdb /usr/local/apache/bin/httpd 
GNU gdb 5.2.1
Copyright 2002 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 sparc-sun-solaris2.9...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x7d03b84c in strlen () from /usr/lib/64/libc.so.1
(gdb) bt
#0  0x7d03b84c in strlen () from /usr/lib/64/libc.so.1
#1  0x7d843e68 in snauca_check_adapter ()
   from /usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#2  0x7d841d58 in nau_viat () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#3  0x7d838454 in nau_gettab () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#4  0x7d8360a0 in nau_ini () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#5  0x7d827084 in nainit () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#6  0x7d7ce8b0 in nsnainit () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#7  0x7d7c0070 in nsopen () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#8  0x7d7a59e0 in nscall1 () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#9  0x7d7a4e28 in nscall () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#10 0x7d85e6dc in niotns () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#11 0x7d857fe8 in nigcall () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#12 0x7d7dfd54 in osncon () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#13 0x7d5b39dc in kpuadef () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#14 0x7d67b5fc in upiini () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#15 0x7d666554 in upiah0 () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#16 0x7d5b3308 in kpuatch () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#17 0x7d657084 in OCIServerAttach () from
/usr/local/oracle/OraHome/lib/libclntsh.so.9.0
#18 0x10007684c in