php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39462 Segmentation fault (11) when i change the file /opt/apache2/bin/envvars
Submitted: 2006-11-10 13:52 UTC Modified: 2006-11-17 12:14 UTC
From: maremyanin at mera dot ru Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.2.0 OS: SuSE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: maremyanin at mera dot ru
New email:
PHP Version: OS:

 

 [2006-11-10 13:52 UTC] maremyanin at mera dot ru
Description:
------------
I compile Apache+PHP with using Instantclient. For that are done the changes in Makefile:
--with-oci8=instantclient,/opt/instantclient

Then I have to change the file /opt/apache2/bin/envvars. I
add the following lines:
unset ORACLE_BASE ORACLE_HOME ORA_NLS ORA_NLS33 ORACLE_SID LD_LIBRARY_PATH
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export LD_LIBRARY_PATH=/opt/instantclient:$LD_LIBRARY_PATH 

But after starting Apache crashs.
If I delete ORACLE_HOME from the file, Apache works but PHP does not.

More details:
OS: SuSE Linux 9
uname -a:
Linux oracle 2.6.5-7.257-bigsmp #1 SMP Mon May 15 14:14:14 UTC 2006 i686 i686 i386 GNU/Linux
Apache 2.2.3
Oracle 10.2.0.1.0
PHP 5.1.2


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-10 13:54 UTC] tony2001@php.net
Please try using this CVS snapshot:

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


 [2006-11-10 14:54 UTC] maremyanin at mera dot ru
I have compiled the latest version but it didn't help. There is the same error when the line "unset ORACLE_HOME"  is put in the file envvars.
 [2006-11-10 14:59 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2006-11-13 11:18 UTC] maremyanin at mera dot ru
Here is a backtrace:

(gdb) bt
#0  0x40213c89 in siglongjmp () from /lib/tls/libpthread.so.0
#1  0x41b6b397 in _nss_ldap_enter () from /lib/libnss_ldap.so.2
#2  0x41b6b692 in _nss_ldap_ent_context_init () from /lib/libnss_ldap.so.2
#3  0x41b6bf60 in _nss_ldap_setpwent () from /lib/libnss_ldap.so.2
#4  0x41b60316 in _nss_compat_getgrent_r () from /lib/libnss_compat.so.2
#5  0x41b6098f in _nss_compat_getpwuid_r () from /lib/libnss_compat.so.2
#6  0xbfffad90 in ?? ()
#7  0x08168fd0 in ?? ()
#8  0xbfffad80 in ?? ()
#9  0x08168fd0 in ?? ()
#10 0xbfffad98 in ?? ()
#11 0x40333ff4 in ?? () from /lib/tls/libc.so.6
#12 0xbfffadd4 in ?? ()
#13 0x402e84f5 in __nss_lookup_function () from /lib/tls/libc.so.6

Also i can note that there are Oracle base and Instant Client on the server. Their version is 10.2.0.1.0
The line 'unset ORACLE_HOME' is necessary in the file /opt/apache2/bin/envvars in order to use libraries of Instant Client but not Oracle base.
 [2006-11-13 11:21 UTC] maremyanin at mera dot ru
Also, i can provide an account for you in order to reproduce/investigate this problem on our server.
 [2006-11-13 11:29 UTC] tony2001@php.net
Thanks, no need for an account, the backtrace clearly shows that the problem is not in PHP, but in libnss.
 [2006-11-17 12:14 UTC] maremyanin at mera dot ru
Thank you for your help. I'll try to resolve the issue by installation of a later version of the library.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 11:01:34 2025 UTC