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=26231>.
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=26231

jk2_child_init called before make_child completes (in prefork MPM)

           Summary: jk2_child_init called before make_child completes (in
                    prefork MPM)
           Product: Tomcat 5
           Version: 5.0.16
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Native:JK
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have built Apache 2.0.48 with the prefork MPM, and mod_jk2 using the tomcat
5.0.16 source tarball.  When I start apache, I see some errors of the form:

jk2_init() Can't find child 23459 in none of the 256 scoreboard slots

I've traced this error to the jk2_child_init function in
native2/server/mod_jk2.c. By adding additional logging calls to mod_jk2.c and
the apache prefork.c file, I've verified that these messages are issued when
jk2_child_init is called AFTER make_child (from prefork.c) is invoked, and
BEFORE it completes.  I think this is pretty good evidence of a race condition.

I'm not familiar enough with the Apache codebase to figure out why this is
happening, but I think it ought to be corrected nevertheless.  (The only way I'm
sure I could fix this is by putting a little delay and retry in jk2_child_init
when the process can't be found in the apache scoreboard, but that seems tacky.)

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

Reply via email to