https://bz.apache.org/bugzilla/show_bug.cgi?id=57746

            Bug ID: 57746
           Summary: Apache hangs on startup using MPM event
           Product: Apache httpd-2
           Version: 2.4.12
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mpm_event
          Assignee: [email protected]
          Reporter: [email protected]

Apache threads are hanging after starting when Apache is started via one of
our daemons (Apache is forked off) and Apache is invoked with the -DFOREGROUND
option.

This is on a Linux system and the event MPM is used.

It's spinning in the ap_mpm_podx_check, doing a read on a bad file descriptor
It's trying to read from FD 2, which is the error_log

#0  0x000000321ec0d9eb in read () from /lib64/libpthread.so.0
#1  0x00000000004988e1 in ap_mpm_podx_check (pod=0x1d6e43a8) at mpm_unix.c:535
#2  0x00000000005dbd67 in child_main (child_num_arg=2) at worker.c:1341
#3  0x00000000005dbf1a in make_child (s=0x1d69fa08, slot=2) at worker.c:1427
#4  0x00000000005dbfb7 in startup_children (number_to_start=1) at worker.c:1452
#5  0x00000000005dcad5 in worker_run (_pconf=0x1d674138, plog=0x1d6a7648,
s=0x1d69fa08) at worker.c:1811
#6  0x0000000000466b72 in ap_run_mpm (pconf=0x1d674138, plog=0x1d6a7648,
s=0x1d69fa08) at mpm_common.c:94
#7  0x000000000045ed8c in main (argc=5, argv=0x7fff8be62ac8) at main.c:777


Strace output:
read(2, 0x7fff8be625fb, 1)              = -1 EBADF (Bad file descriptor)
read(2, 0x7fff8be625fb, 1)              = -1 EBADF (Bad file descriptor)
read(2, 0x7fff8be625fb, 1)              = -1 EBADF (Bad file descriptor)
read(2, 0x7fff8be625fb, 1)              = -1 EBADF (Bad file descriptor)

If we run using the preform MPM everything works fine.  If Apache is run from
the command line, using the event MPM, everything works fine.  It's only when
we
fork off Apache from our own daemon, use the -DFOREGROUND option, and use the
event MPM.

-- 
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