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 2009/04/29 09:00:50 UTC

DO NOT REPLY [Bug 47114] New: threads hang on _dl_sysinfo_int80 in apache 2.0.63

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

           Summary: threads hang on _dl_sysinfo_int80 in apache 2.0.63
           Product: Apache httpd-2
           Version: 2.0.63
          Platform: PC
               URL: http:/
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: vampirechina@hotmail.com


Threads in Apache 2.0.63  hang and not release memory sometimes.
I am using the prefork mpm on linux 2.6 Red Hat Enterprise Linux AS release 4
(Nahant Update 5).  
Kernel  is 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386
GNU/Linux.

Here is my server information.
[root@web22 ~]# /usr/local/apache/bin/httpd -v
Server version: Apache/2.0.63
Server built:   Jun 23 2008 11:24:13
[root@web22 ~]# /usr/local/apache/bin/httpd -l
Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c
[root@web22 ~]# top -p 7439
top - 14:17:16 up 9 days, 55 min,  5 users,  load average: 1.23, 1.64, 1.75
Tasks:   1 total,   0 running,   1 sleeping,   0 stopped,   0 zombie
Cpu(s): 10.7% us,  2.0% sy,  0.0% ni, 87.2% id,  0.1% wa,  0.1% hi,  0.0% si
Mem:   8310220k total,  5859196k used,  2451024k free,   244240k buffers
Swap:  6144852k total,    73540k used,  6071312k free,  1673068k cached
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
 7439 webid     16   0  185m 151m 7456 S    0  1.9   0:35.62 httpd 

[root@web22 ~]# ps -ef | grep httpd | grep 7439
webid     7439  4322  0 00:20 ?        00:00:35 /usr/local/apache/bin/httpd -k
start


And  here is my strace log
[root@web22 ~]# strace -p 7439
Process 7439 attached - interrupt to quit
futex(0x23a840, FUTEX_WAIT, 2, NULL <unfinished ...>
Process 7439 detached


Here is my gdb trace

[root@web22 ~]# gdb --quiet
(gdb) attach 7439
Attaching to process 7439
Reading symbols from /usr/local/apache/bin/httpd...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Reading symbols from /lib/libcwait.so...done.
Loaded symbols for /lib/libcwait.so
Reading symbols from /usr/local/apache/lib/libaprutil-0.so.0...done.
Loaded symbols for /usr/local/apache/lib/libaprutil-0.so.0
Reading symbols from /usr/lib/libexpat.so.0...done.
Loaded symbols for /usr/lib/libexpat.so.0
Reading symbols from /usr/local/apache/lib/libapr-0.so.0...done.
Loaded symbols for /usr/local/apache/lib/libapr-0.so.0
Reading symbols from /lib/tls/librt.so.1...done.
Loaded symbols for /lib/tls/librt.so.1
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/tls/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread -1207974208 (LWP 7439)]
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/local/apache/modules/mod_rewrite.so...done.
Loaded symbols for /usr/local/apache/modules/mod_rewrite.so
Reading symbols from /usr/local/apache/modules/mod_deflate.so...done.
Loaded symbols for /usr/local/apache/modules/mod_deflate.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/local/apache/modules/mod_headers.so...done.
Loaded symbols for /usr/local/apache/modules/mod_headers.so
Reading symbols from /usr/local/apache/modules/libphp4.so...done.
Loaded symbols for /usr/local/apache/modules/libphp4.so
Reading symbols from /usr/local/gd/lib/libgd.so.2...done.
Loaded symbols for /usr/local/gd/lib/libgd.so.2
Reading symbols from /usr/local/lib/libfreetype.so.6...done.
Loaded symbols for /usr/local/lib/libfreetype.so.6
Reading symbols from /usr/local/lib/libpng12.so.0...done.
Loaded symbols for /usr/local/lib/libpng12.so.0
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libcurl.so.3...done.
Loaded symbols for /usr/lib/libcurl.so.3
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libssl.so.4...done.
Loaded symbols for /lib/libssl.so.4
Reading symbols from /lib/libcrypto.so.4...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /usr/lib/libgssapi_krb5.so.2...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libkrb5.so.3...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /lib/libcom_err.so.2...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libk5crypto.so.3...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /usr/lib/libidn.so.11...done.
Loaded symbols for /usr/lib/libidn.so.11
Reading symbols from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0...done.
Loaded symbols for /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Loaded symbols for /usr/X11R6/lib/libXpm.so.4
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /opt/oracle/product/9.2.0/lib/libwtc9.so...done.
Loaded symbols for /opt/oracle/product/9.2.0/lib/libwtc9.so
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from
/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so...done.
Loaded symbols for
/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so
Reading symbols from
/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429/memcache.so...done.
Loaded symbols for
/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429/memcache.so
Reading symbols from /usr/lib/gconv/GB18030.so...done.
Loaded symbols for /usr/lib/gconv/GB18030.so
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
0x007d97a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) bt
#0  0x007d97a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x001e6a9e in __lll_mutex_lock_wait () from /lib/tls/libc.so.6
#2  0x0017800b in _L_mutex_lock_3769 () from /lib/tls/libc.so.6
#3  0x085308ec in ?? ()
#4  0xbfffed48 in ?? ()
#5  0x0853be60 in ?? ()
#6  0x085a4fdc in ?? ()
#7  0x00993bb0 in eaccelerator_globals () from
/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so
#8  0xbfffed18 in ?? ()
#9  0x0116c759 in _efree (ptr=0x853be60) at
/home/dalamar/php-4.4.8/Zend/zend_alloc.c:280
#10 0x0116c759 in _efree (ptr=0x853be6c) at
/home/dalamar/php-4.4.8/Zend/zend_alloc.c:280
#11 0x0117be0d in zend_hash_destroy (ht=0x853be60) at
/home/dalamar/php-4.4.8/Zend/zend_hash.c:570
#12 0x0097e94a in zm_deactivate_eaccelerator (type=1, module_number=25) at
/home/dalamar/eaccelerator-0.9.5.3/eaccelerator.c:2170
#13 0x0117a419 in module_registry_cleanup (module=0xfffffffc) at
/home/dalamar/php-4.4.8/Zend/zend_API.c:1168
#14 0x0117c0c0 in zend_hash_apply (ht=0x1329540, apply_func=0x117a3e8
<module_registry_cleanup>)
    at /home/dalamar/php-4.4.8/Zend/zend_hash.c:708
#15 0x01178152 in zend_deactivate_modules () at
/home/dalamar/php-4.4.8/Zend/zend.c:678
#16 0x01153a6a in php_request_shutdown (dummy=0x0) at
/home/dalamar/php-4.4.8/main/main.c:990
#17 0x01188e40 in php_handler (r=0x8479aa8) at
/home/dalamar/php-4.4.8/sapi/apache2handler/sapi_apache2.c:598
#18 0x0807d1f6 in ap_run_handler (r=0x8479aa8) at config.c:153
#19 0x0807d6be in ap_invoke_handler (r=0x8479aa8) at config.c:364
#20 0x0806cd63 in ap_process_request (r=0x8479aa8) at http_request.c:249
#21 0x08068b95 in ap_process_http_connection (c=0x84718c8) at http_core.c:253
#22 0x0808673e in ap_run_process_connection (c=0x84718c8) at connection.c:43
#23 0x0807bd6f in child_main (child_num_arg=-4) at prefork.c:610
#24 0x0807be8c in make_child (s=0x80c1868, slot=24) at prefork.c:704
#25 0x0807c0d2 in perform_idle_server_maintenance (p=0x80b50a8) at
prefork.c:839
#26 0x0807c672 in ap_mpm_run (_pconf=0x3c, plog=0x80ed188, s=0x0) at
prefork.c:1040
#27 0x080818da in main (argc=3, argv=0xbffff924) at main.c:636
(gdb) info thread
  1 Thread -1207974208 (LWP 7439)  0x007d97a2 in _dl_sysinfo_int80 () from
/lib/ld-linux.so.2
(gdb) list
636     main.c: No such file or directory.
        in main.c
(gdb) dir /home/dalamar/dalamar/httpd-2.0.63/server
Source directories searched:
/home/dalamar/dalamar/httpd-2.0.63/server:$cdir:$cwd
(gdb) list
636             if (ap_mpm_run(pconf, plog, server_conf))
637                 break;
638
639             apr_pool_lock(pconf, 0);
640         }
641
642         apr_pool_lock(pconf, 0);
643         destroy_and_exit_process(process, 0);
644
645         return 0; /* Termination 'ok' */
(gdb) q
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /usr/local/apache/bin/httpd, process 7439

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 47114] threads hang on _dl_sysinfo_int80 in apache 2.0.63

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


Ruediger Pluem <rp...@apache.org> changed:

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




--- Comment #1 from Ruediger Pluem <rp...@apache.org>  2009-04-29 00:17:15 PST ---
The backtrace shows that the process is hanging in PHP code. This is no httpd
issue. Please open up the bug at http://bugs.php.net/.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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