tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44274] New: - Apache causes segfault and it doesn't start.
Date Mon, 21 Jan 2008 07:08:54 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: mashmk02@gmail.com


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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message