Bug 55346 - When on filled quota filesystem, mod_fcgid init infinitly loops at 100% CPU
Summary: When on filled quota filesystem, mod_fcgid init infinitly loops at 100% CPU
Status: RESOLVED LATER
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_fcgid (show other bugs)
Version: 2.2.22
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: MassUpdate
Depends on:
Blocks:
 
Reported: 2013-08-02 12:33 UTC by Dettorer
Modified: 2018-11-07 21:07 UTC (History)
2 users (show)



Attachments
`strace -f /usr/sbin/apache2 -f /home/usertest/apache/apache.conf` (651.10 KB, text/plain)
2013-08-02 12:33 UTC, Dettorer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dettorer 2013-08-02 12:33:29 UTC
Created attachment 30662 [details]
`strace -f /usr/sbin/apache2 -f /home/usertest/apache/apache.conf`

Hi.

I try to run apache from an unprivileged user which is on quota (set up with quotatool on a XFS partition).

When the hard limit of the disk quota is reached, apache fails to launch (which is ok), but a process stays in the background and uses 100% of one CPU core until I kill it (with `pkill -9 apache2` for example)

I attached an output of the command `strace -f /usr/sbin/apache2 -f /home/usertest/apache/apache.conf` to the report.

Here are two backtraces of the looping process (the only two I get when attaching to process at random times):
---
#0  0x00007fffea30ca56 in gettimeofday ()
#1  0x00007fce95746f8a in gettimeofday () from /lib/x86_64
#2  0x00007fce95c7ebb0 in apr_time_now () from /usr/lib/li
#3  0x00007fce94a2ade2 in scan_busylist () from /usr/lib/a
#4  0x00007fce94a2c066 in pm_main () from /usr/lib/apache2
#5  0x00007fce94a2df8c in create_process_manager () from /
#6  0x00007fce94a2e37f in procmgr_post_config () from /usr
#7  0x00007fce94a2673d in fcgid_init () from /usr/lib/apac
#8  0x00007fce96553d99 in ap_run_post_config ()
#9  0x00007fce9653eec3 in main ()
---
#0  0x00007fce95779df8 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fce95c7cb07 in apr_wait_for_io_or_timeout () from /usr/lib/libapr-1.so.0
#2  0x00007fce94a2e73c in procmgr_peek_cmd () from /usr/lib/apache2/modules/mod_fcgid.so
#3  0x00007fce94a2bfe9 in pm_main () from /usr/lib/apache2/modules/mod_fcgid.so
#4  0x00007fce94a2df8c in create_process_manager () from /usr/lib/apache2/modules/mod_fcgid.so
#5  0x00007fce94a2e37f in procmgr_post_config () from /usr/lib/apache2/modules/mod_fcgid.so
#6  0x00007fce94a2673d in fcgid_init () from /usr/lib/apache2/modules/mod_fcgid.so
#7  0x00007fce96553d99 in ap_run_post_config ()
#8  0x00007fce9653eec3 in main ()
---

And here is the /home/usertest/apache/apache.conf:
ServerRoot /home/usertest/apache
Listen     127.0.0.1:8080
LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so

A few data:
`uname -a`:
    Linux testbox 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux

`apache2 -v`:
    Server version: Apache/2.2.22 (Debian)
    Server built:   Mar  4 2013 22:05:29

mod_fcgid version:
    2.3.7 (compiled from http://httpd.apache.org/download.cgi#mod_fcgid)
Comment 1 William A. Rowe Jr. 2018-11-07 21:07:56 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.