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

            Bug ID: 55346
           Summary: When on filled quota filesystem, mod_fcgid init
                    infinitly loops at 100% CPU
           Product: Apache httpd-2
           Version: 2.2.22
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_fcgid
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 30662
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30662&action=edit
`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)

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to