Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 25784 invoked by uid 500); 19 May 2000 12:11:11 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 25772 invoked from network); 19 May 2000 12:11:09 -0000 X-Authentication-Warning: mojo.covalent.net: dougm owned process doing -bs Date: Fri, 19 May 2000 05:29:47 -0700 (PDT) From: Doug MacEachern To: new-httpd@apache.org Subject: LoadModule troubles Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N *curr_parent == NULL == segv, the patch below makes everything happy for me, but not sure it's the right fix. 0x8063ade in ap_build_config_sub (p=0x8099c34, temp_pool=0x80b9d34, l=0xbfffd558 "LoadModule perl_module libexec/libmodperl.so", parms=0xbffff5b8, current=0xbfffd550, curr_parent=0xbfffd554) at http_config.c:877 877 (*curr_parent)->first_child = (*current); (gdb) where #0 0x8063ade in ap_build_config_sub (p=0x8099c34, temp_pool=0x80b9d34, l=0xbfffd558 "LoadModule perl_module libexec/libmodperl.so", parms=0xbffff5b8, current=0xbfffd550, curr_parent=0xbfffd554) at http_config.c:877 #1 0x8063e58 in ap_build_config (parms=0xbffff5b8, p=0x8099c34, temp_pool=0x80b9d34, conftree=0xbffff580) at http_config.c:1034 #2 0x806434b in ap_process_resource_config (s=0x809a5c4, fname=0x808bf2f "conf/httpd.conf", p=0x8099c34, ptemp=0x80b9d34) at http_config.c:1285 #3 0x8064850 in ap_read_config (process=0x8097c54, ptemp=0x80b9d34, confname=0x808bf2f "conf/httpd.conf") at http_config.c:1530 #4 0x80685da in main (argc=1, argv=0xbffff6a4) at http_main.c:379 (gdb) p *curr_parent $1 = (ap_directive_t *) 0x0 Index: main/http_config.c =================================================================== RCS file: /home/cvs/apache-2.0/src/main/http_config.c,v retrieving revision 1.47 diff -u -u -r1.47 http_config.c --- main/http_config.c 2000/05/16 22:16:51 1.47 +++ main/http_config.c 2000/05/19 05:55:12 @@ -874,8 +874,10 @@ } else { (*current) = sub_tree; - (*curr_parent)->first_child = (*current); - (*current)->parent = (*curr_parent); + if (*curr_parent) { + (*curr_parent)->first_child = (*current); + (*current)->parent = (*curr_parent); + } } if (*current) { while ((*current)->next != NULL) {