You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2014/01/27 20:40:44 UTC

[Bug 56069] New: Crash related to Oracle libclntsh.so.10.1

https://issues.apache.org/bugzilla/show_bug.cgi?id=56069

            Bug ID: 56069
           Summary: Crash related to Oracle libclntsh.so.10.1
           Product: Apache httpd-2
           Version: 2.4.7
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: charles.fisher@alcoa.com

I realize that this involves libraries outside of your control, but any
assistance that you can offer would be very much appreciated.

Random child server crashes, seemingly related to clone(), Oracle Instant
Client, and pthreads. If MPM is not configured for prefork, PHP functions
appear in the backtrace.

Platform is Oracle Linux 5.10. Configure directives below.

[Mon Jan 27 13:24:03.830719 2014] [core:notice] [pid 2831] AH00051: child pid
2835 exit signal Segmentation fault (11), possible coredump in
/home/oracle/httpd/core

[root@prdoi httpd]# ll core
total 302768
-rw------- 1 oracle dba 157147136 Jan 27 13:24 core.2835
-rw------- 1 oracle dba 156528640 Jan 27 13:24 core.2838
-rw------- 1 oracle dba 155570176 Jan 27 13:24 core.2877 #all corefiles result
in similar bt

[root@prdoi httpd]# gdb bin/httpd
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-45.0.1.el5)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/oracle/httpd/bin/httpd...done.

(gdb) core core/core.2835
[New Thread 2857]
[New Thread 2835]
warning: .dynamic section for "/lib/librt.so.1" is not at the expected address
...
Loaded symbols for /usr/lib/oracle/10.2.0.5/client/lib/libociei.so
Core was generated by `bin/httpd'.
Program terminated with signal 11, Segmentation fault.
#0  0x00331410 in __kernel_vsyscall ()

(gdb) bt
#0  0x00331410 in __kernel_vsyscall ()
#1  0x00bdda96 in nanosleep () from /lib/libc.so.6
#2  0x00bdd8bf in sleep () from /lib/libc.so.6
#3  0x03a5d994 in kpucpincrtime () from
/usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
#4  0x00143912 in start_thread () from /lib/libpthread.so.0
#5  0x00c1f7ce in clone () from /lib/libc.so.6

(gdb) bt full
#0  0x00331410 in __kernel_vsyscall ()
No symbol table info available.
#1  0x00bdda96 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#2  0x00bdd8bf in sleep () from /lib/libc.so.6
No symbol table info available.
#3  0x03a5d994 in kpucpincrtime () from
/usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
No symbol table info available.
#4  0x00143912 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5  0x00c1f7ce in clone () from /lib/libc.so.6
No symbol table info available.



--Apache config:
#APR:
./configure --prefix=/home/oracle/httpd/apr

#APR-UTIL:
./configure --prefix=/home/oracle/httpd/apr-util \
        --with-apr=/home/oracle/httpd/apr

./configure \
        --prefix=/home/oracle/httpd \
        --enable-suexec --with-suexec --enable-so \
        --with-apr=/home/oracle/httpd/apr \
        --with-mpm=prefork \
        --with-apr-util=/home/oracle/httpd/apr-util \
        --with-suexec-uidmin=500 --with-suexec-gidmin=100 \
        $*

--PHP config:
        ./configure \
        --with-zlib-dir \
        --with-png-dir \
        --with-gd \
        --enable-gd-native-ttf \
        --with-freetype-dir \
        --with-gettext \
        --with-ldap \
        --without-mysql \
        --with-oci8=instantclient,/usr/lib/oracle/10.2.0.5/client/lib \
        --enable-ftp \
        --enable-sockets \
        --with-lib-dir=/home/oracle/httpd/php/lib \
        --with-apxs2=/home/oracle/httpd/bin/apxs

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56069] Crash related to Oracle libclntsh.so.10.1

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56069

Charles Fisher <ch...@alcoa.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|Windows XP                  |Linux

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56069] Crash related to Oracle libclntsh.so.10.1

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56069

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Eric Covener <co...@gmail.com> ---
That's not the problematic thread, try 

thread apply all bt. 

You might find it easier to summarize by piping the above output through this
script, but I've only used it a few times.

  http://people.apache.org/~covener/uniqstack

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56069] Crash related to Oracle libclntsh.so.10.1

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56069

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Eric Covener <co...@gmail.com> ---
yes, nothing can be done here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56069] Crash related to Oracle libclntsh.so.10.1

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56069

--- Comment #2 from Charles Fisher <ch...@alcoa.com> ---
I guess PHP is all over this. Move on to them?

(gdb) thread apply all bt

Thread 2 (Thread 0xb7f2b700 (LWP 2835)):
#0  0x00331410 in __kernel_vsyscall ()
#1  0x00b73266 in kill () from /lib/libc.so.6
#2  0x080942fd in sig_coredump (sig=2835) at mpm_unix.c:977
#3  <signal handler called>
#4  0x042b1c8f in lmsaicmt () from
/usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
#5  0x0410cd34 in kpugemlc () from
/usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
#6  0x0410ca6d in kpugeml () from
/usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
#7  0x039ec3f4 in kpugdr () from
/usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
#8  0x03ab9033 in OCIErrorGet () from
/usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
#9  0x0123c364 in php_oci_create_env (charsetid=17124, tsrm_ls=0x84ffc70) at
/dpwusers/fishecj/php-5.5.7/ext/oci8/oci8.c:2927
#10 0x0123da09 in php_oci_create_spool (username=0xb7f06d90
"WEBAPPL_FULL_ACCESS", username_len=19, password=0xb7f0abb8 "OURPASSWORD",
password_len=10,
    dbname=0xb7f0a674
"(description=(address=(protocol=tcp)(host=prdoi.dpw.alcoa.com)(port=1521))(connect_data=(sid=prdapps)))",
dbname_len=103,
    hash_key=0xb7f0ad24
"oci8spool***webappl_full_access****3038584789**(description=(address=(protocol=tcp)(host=prdoi.dpw.alcoa.com)(port=1521))(connect_data=(sid=prdapps)))**1",
hash_key_len=153, charsetid=1, tsrm_ls=0x8336c58) at
/dpwusers/fishecj/php-5.5.7/ext/oci8/oci8.c:2731
#11 0x01243228 in php_oci_get_spool (username=0xb7f06d90 "WEBAPPL_FULL_ACCESS",
username_len=19, password=0xb7f0abb8 "OURPASSWORD", password_len=10,
    new_password=0x0, new_password_len=0,
    dbname=0xb7f0a674
"(description=(address=(protocol=tcp)(host=prdoi.dpw.alcoa.com)(port=1521))(connect_data=(sid=prdapps)))",
dbname_len=103,
    charset=0x0, session_mode=0, persistent=0, exclusive=0, tsrm_ls=0x8336c58)
at /dpwusers/fishecj/php-5.5.7/ext/oci8/oci8.c:2875
#12 php_oci_do_connect_ex (username=0xb7f06d90 "WEBAPPL_FULL_ACCESS",
username_len=19, password=0xb7f0abb8 "OURPASSWORD", password_len=10,
new_password=0x0,
    new_password_len=0, dbname=0xb7f0a674
"(description=(address=(protocol=tcp)(host=prdoi.dpw.alcoa.com)(port=1521))(connect_data=(sid=prdapps)))",
    dbname_len=103, charset=0x0, session_mode=0, persistent=0, exclusive=0,
tsrm_ls=0x8336c58) at /dpwusers/fishecj/php-5.5.7/ext/oci8/oci8.c:2082
#13 0x01243e0f in php_oci_do_connect (ht=3, return_value=0xb7f06dc8,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1, tsrm_ls=0x8336c58,
    persistent=0, exclusive=0) at
/dpwusers/fishecj/php-5.5.7/ext/oci8/oci8.c:1745
#14 0x01256e84 in zif_oci_connect (ht=3, return_value=0xb7f06dc8,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1, tsrm_ls=0x8336c58)
    at /dpwusers/fishecj/php-5.5.7/ext/oci8/oci8_interface.c:1606
#15 0x0140c0e0 in zend_do_fcall_common_helper_SPEC (execute_data=0xb7eec300,
tsrm_ls=0x8336c58) at /dpwusers/fishecj/php-5.5.7/Zend/zend_vm_execute.h:550
#16 0x0140b469 in execute_ex (execute_data=0xb7eec300, tsrm_ls=0x8336c58) at
/dpwusers/fishecj/php-5.5.7/Zend/zend_vm_execute.h:363
#17 0x013d4eeb in zend_execute_scripts (type=8, tsrm_ls=0x8336c58, retval=0x0,
file_count=3) at /dpwusers/fishecj/php-5.5.7/Zend/zend.c:1320
#18 0x0136e058 in php_execute_script (primary_file=0xbfea7560,
tsrm_ls=0x8336c58) at /dpwusers/fishecj/php-5.5.7/main/main.c:2489
#19 0x0148d558 in php_handler (r=0x84cec60) at
/dpwusers/fishecj/php-5.5.7/sapi/apache2handler/sapi_apache2.c:667
#20 0x08087a5b in ap_run_handler (r=0x84cec60) at config.c:169
#21 0x0808b69b in ap_invoke_handler (r=0x84cec60) at config.c:439
#22 0x0809dac7 in ap_process_async_request (r=0x84cec60) at http_request.c:317
#23 0x0809dbfd in ap_process_request (r=0x84cec60) at http_request.c:363
#24 0x0809a130 in ap_process_http_sync_connection (c=0x84c8a88) at
http_core.c:190
#25 ap_process_http_connection (c=0x84c8a88) at http_core.c:231
#26 0x0809204b in ap_run_process_connection (c=0x84c8a88) at connection.c:41
#27 0x080a4110 in child_main (child_num_arg=<value optimized out>) at
prefork.c:704
#28 0x080a4483 in make_child (s=0x831fee8, slot=0) at prefork.c:800
#29 0x080a4544 in startup_children (number_to_start=5) at prefork.c:818
#30 0x080a4b93 in prefork_run (_pconf=0x82fb0a8, plog=0x83219b0, s=0x831fee8)
at prefork.c:976
#31 0x0806fd19 in ap_run_mpm (pconf=0x82fb0a8, plog=0x83219b0, s=0x831fee8) at
mpm_common.c:96
#32 0x0806a43a in main (argc=137334944, argv=0x84c68a8) at main.c:777

Thread 1 (Thread 0x7852b90 (LWP 2857)):
#0  0x00331410 in __kernel_vsyscall ()
#1  0x00bdda96 in nanosleep () from /lib/libc.so.6
#2  0x00bdd8bf in sleep () from /lib/libc.so.6
#3  0x03a5d994 in kpucpincrtime () from
/usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
#4  0x00143912 in start_thread () from /lib/libpthread.so.0
#5  0x00c1f7ce in clone () from /lib/libc.so.6

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org