"Philipp Rotmann, Linksystem Muenchen" wrote:
> 
>      Hi guys,
> 
> I've got Apache/1.3.12 (Unix) PHP/3.0.18+Midgard/1.4/SG
> Midgard/1.4/SG running with three virtual hosts, all using
> Midgard, and the main server w/o Midgard. Everything's fine.
> 
> Now I add another virtual host on a new IP address, also with
> Midgard support and nothing special in Apache's or Midgard's
> configuration (empty root style and root page as generated by
> Asgard).
> 
> Restarting Apache with that (syntactically valid, as of
> apachectl configtest) configuration leads to a segfault after
> 1-2 seconds w/o any log message, not even the usual "resuming
> normal operations" and even with LogLevel set to "debug". gdb
> says:

Which means that mod_midgard bombs early in the process. Could you
try the attached patch? I want to know where processing stops.
Won't fix anything but will leave traces in your log.

Emile
? mod_midgard.c.verbose-decline.patch
Index: mod_midgard.c
===================================================================
RCS file: /usr/local/cvs/midgard/mod/mod_midgard.c,v
retrieving revision 1.79
diff -u -r1.79 mod_midgard.c
--- mod_midgard.c       2001/02/21 16:18:26     1.79
+++ mod_midgard.c       2001/02/22 08:39:33
@@ -191,9 +191,11 @@
 
 static void midgard_child_init(server_rec * s, pool * p)
 {
+   fprintf(stderr, "** MidgardDebug: child_init start\n");
        /* Initialize the default rootfile setting. */
        default_rootfile =
           ap_server_root_relative(p, LIBEXEC_DIR "/midgard-root.php3");
+   fprintf(stderr, "** MidgardDebug: child_init end\n");
 }
 
 static void midgard_disconnect_all()
@@ -244,6 +246,7 @@
 
 static void midgard_module_init(server_rec * s, pool * p)
 {
+   fprintf(stderr, "** MidgardDebug: module_init start\n");
 #if MODULE_MAGIC_NUMBER >= 19980527
        const char *component;
        component = ap_pstrcat(p, "Midgard/", MIDGARD_LIB_VERSION, NULL);
@@ -253,6 +256,8 @@
        mgd_init();
 
        default_parser = ap_pstrdup(p, "latin1");
+
+   fprintf(stderr, "** MidgardDebug: module_init end\n");
 }
 
 /* String pointers are equal if both NULL or the strings are equal */
@@ -1171,6 +1176,8 @@
        midgard_request_config *rcfg;
        const char *uri, *parser;
        struct _ftstatus ftstatus;
+
+   fprintf(stderr, "** MidgardDebug: translate_handler start\n");
 
        /* we don't do subrequests */
        if (r->main != NULL)

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

Reply via email to