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

http://issues.apache.org/bugzilla/show_bug.cgi?id=44274

           Summary: Apache causes segfault and it doesn't start.
           Product: Tomcat 5
           Version: Nightly Build
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi.

I tested mod_jk 1.2.27-dev (checkout from trunk head) on RHEL 4u5, i got 
segfault. 

My setting includes two virtual host settings. 
This problem occurs when "JkMountCopy off" is included in the virtual host
setting(When "JkMountCopy all" is not included in the global setting, and
"JkMountCopy on" is not included in the virtual host setting, it is similar).

Backtrace is as follows. 
-----start-----
(gdb) bt full
#0  0x0000002a99f776b8 in uri_worker_map_ext (uw_map=0x0, l=0x552ad0d630)
    at jk_uri_worker_map.c:469
        i = 0
        __FUNCTION__ = "uri_worker_map_ext"
#1  0x0000002a99f67086 in jk_post_config (pconf=0x552ac01138, plog=Variable
"plog" is not available.
)
    at mod_jk.c:2979
        sconf = (jk_server_conf_t *) 0x0
        rv = Variable "rv" is not available.
-----end-----

and patch. Is this patch correct?
===================================================================
--- mod_jk/native/apache-2.0/mod_jk.c   (revision 613744)
+++ mod_jk/native/apache-2.0/mod_jk.c   (working copy)
@@ -2975,7 +2975,7 @@
             for (srv = s; srv; srv = srv->next) {
                 jk_server_conf_t *sconf = (jk_server_conf_t
*)ap_get_module_config(srv->module_config,

    &jk_module);
-                if (conf->uw_map != sconf->uw_map)
+                if (conf->uw_map != sconf->uw_map && sconf->uw_map)
                     uri_worker_map_ext(sconf->uw_map, sconf->log);
             }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to