DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23473>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23473

Hangs in poll() while child is waiting in write()

           Summary: Hangs in poll() while child is waiting in write()
           Product: Apache httpd-2.0
           Version: 2.0.47
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: prefork
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I found what appears to be a strange bug in both redhat 9 rpm package (2.0.40)
and 2.0.47 that I just compiled from the sources.

I have apache configured in prefork mode, no threads. Perl CGI script that
writes some debugging information to stderr. Sometimes it hangs on that very
thing, writing to stderr -- if I run strace this is what I see on the script:

[EMAIL PROTECTED]:/home/httpd> sudo strace -p 12038
write(2, "Web::Page::parse - path=\'/bits/m"..., 54

At the same time, apache that forked off that perl script:

[EMAIL PROTECTED]:~> sudo strace -p 12019
poll(


If I wait long enough apache gets (I guess) an alarm and breaks out of that poll
with EINTR, then sometimes it hangs again sometimes works fine through the end
of that script.

The same script always hangs in the same place, if I modify it -- it starts to
hang in a different place -- so I guess it depends not on timing, but on memory
allocation somehow.

Any ideas? I can reproduce it steadily.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to