Bug 44870

Summary: process spinning on 100% cpu
Product: Apache httpd-2 Reporter: RH <richard_hubbe11>
Component: mpm_preforkAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED LATER    
Severity: normal Keywords: MassUpdate
Priority: P2    
Version: 2.2.8   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description RH 2008-04-24 11:28:35 UTC
I tried attaching strace but got nothing back so I attached gdb.
Using prefork mpm.  Don't know what else is significant here.
Please advise if more information is wanted.

Attaching to process 5241
Reading symbols from /var/proxy-cache/bin/httpd...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /var/proxy-cache/lib/libaprutil-1.so.0...done.
Loaded symbols for /var/proxy-cache/lib/libaprutil-1.so.0
Reading symbols from /usr/lib/libexpat.so.0...done.
Loaded symbols for /usr/lib/libexpat.so.0
Reading symbols from /var/proxy-cache/lib/libapr-1.so.0...done.
Loaded symbols for /var/proxy-cache/lib/libapr-1.so.0
Reading symbols from /lib/libuuid.so.1...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /lib/tls/librt.so.1...done.
Loaded symbols for /lib/tls/librt.so.1
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/tls/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread -151463072 (LWP 5241)]
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 /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
0x00b14704 in apr_bucket_alloc@plt () from /var/proxy-cache/lib/libaprutil-1.so.0
(gdb) where
#0  0x00b14704 in apr_bucket_alloc@plt () from /var/proxy-cache/lib/libaprutil-1.so.0
#1  0x00b16593 in apr_bucket_flush_create (list=0x961d4c8) at buckets/apr_buckets_flush.c:39
#2  0x0809570f in ap_proxy_http_process_response (p=0x96174b0, r=0x9625ca0, backend=0x95f9780, origin=0x9617c08, conf=0x953f0f8,
    server_portstr=0xfee80990 ":8888") at mod_proxy_http.c:1632
#3  0x080960c1 in proxy_http_handler (r=0x9625ca0, worker=0x95b22a0, conf=0x953f0f8, url=0x9617bf0 "/cluster/news/hd/1",
    proxyname=0x0, proxyport=<value optimized out>) at mod_proxy_http.c:1871
#4  0x0808a8d1 in proxy_run_scheme_handler (r=0x9625ca0, worker=0x95b22a0, conf=0x953f0f8,
    url=0x9627376 "http://www.dailymotion.com/cluster/news/hd/1", proxyhost=0x0, proxyport=0) at mod_proxy.c:2208
#5  0x0808d104 in proxy_handler (r=0x9625ca0) at mod_proxy.c:852
#6  0x08072fe6 in ap_run_handler (r=0x9625ca0) at config.c:157
#7  0x080733b1 in ap_invoke_handler (r=0x9625ca0) at config.c:372
#8  0x0809e6e9 in ap_process_request (r=0x9625ca0) at http_request.c:258
#9  0x0809c20d in ap_process_http_connection (c=0x9617680) at http_core.c:190
#10 0x08078876 in ap_run_process_connection (c=0x9617680) at connection.c:43
#11 0x080af2f3 in child_main (child_num_arg=<value optimized out>) at prefork.c:640
#12 0x080af52a in make_child (s=<value optimized out>, slot=568) at prefork.c:736
#13 0x080b00b1 in ap_mpm_run (_pconf=0x95380a8, plog=0x9582310, s=0x953e2c8) at prefork.c:871
#14 0x080633ac in main (argc=3, argv=0xfee80ed4) at main.c:730
Comment 1 Ruediger Pluem 2008-04-24 12:44:44 UTC
Can you please check if the patch in comment 31 in PR 44381 (https://issues.apache.org/bugzilla/show_bug.cgi?id=44381#c31) makes this go away?
Comment 2 RH 2008-04-24 20:28:55 UTC
Will try that.  Although since changing MaxRequestsPerChild from 0 to 1000 I have not seen the issue again.  I will change that and re-try with MaxRequestsPerChild = 0 and report findings here.
Comment 3 RH 2008-04-25 10:28:23 UTC
I don't think this problem would be limited to prefork mpm; would also impact work mpm and others.  True?
Comment 4 Ruediger Pluem 2008-04-25 14:10:42 UTC
(In reply to comment #3)
> I don't think this problem would be limited to prefork mpm; would also impact
> work mpm and others.  True?
> 

Your understanding is correct. If this PR is the same as PR 44381, then it affects all MPM's.
Comment 5 William A. Rowe Jr. 2018-11-07 21:09:05 UTC
Please help us to refine our list of open and current defects; this is a mass update of old and inactive Bugzilla reports which reflect user error, already resolved defects, and still-existing defects in httpd.

As repeatedly announced, the Apache HTTP Server Project has discontinued all development and patch review of the 2.2.x series of releases. The final release 2.2.34 was published in July 2017, and no further evaluation of bug reports or security risks will be considered or published for 2.2.x releases. All reports older than 2.4.x have been updated to status RESOLVED/LATER; no further action is expected unless the report still applies to a current version of httpd.

If your report represented a question or confusion about how to use an httpd feature, an unexpected server behavior, problems building or installing httpd, or working with an external component (a third party module, browser etc.) we ask you to start by bringing your question to the User Support and Discussion mailing list, see [https://httpd.apache.org/lists.html#http-users] for details. Include a link to this Bugzilla report for completeness with your question.

If your report was clearly a defect in httpd or a feature request, we ask that you retest using a modern httpd release (2.4.33 or later) released in the past year. If it can be reproduced, please reopen this bug and change the Version field above to the httpd version you have reconfirmed with.

Your help in identifying defects or enhancements still applicable to the current httpd server software release is greatly appreciated.