Subject: Re: apache6 breakage
To: None <port-dreamcast@NetBSD.org>
From: Harold Gutch <logix@foobar.franken.de>
List: port-dreamcast
Date: 03/01/2004 00:46:44
On Sun, Feb 29, 2004 at 01:07:06AM +0100, Harold Gutch wrote:
> Hi,
> 
> after upgrading to a 2 days old -current, I updated my pkgsrc and
> rebuild pkgsrc/www/apache6.  However apache segfaults upon
> startup.  Compiling apache with -g doesn't seem to provide
> that much useful information either:

Hm, I started "step"-ping and "next"-ing through apache6, and I
found the following:

  # gdb httpd
  [snip]
  (gdb) break http_config.c:1641
  Breakpoint 1 at 0x43b14c: file http_config.c, line 1641.
  (gdb) run
  Starting program:
  /usr/pkgsrc/www/apache6/work.sh3el/apache_1.3.29/src/httpd 

  Breakpoint 1, ap_read_config (p=0x48f00c, ptemp=0x49500c, 
      confname=0x485284 "etc/httpd/httpd.conf") at http_config.c:1641
  1641        ap_fini_vhost_config(p, s);
  (gdb) where
  #0  ap_read_config (p=0x48f00c, ptemp=0x49500c, 
      confname=0x485284 "etc/httpd/httpd.conf") at http_config.c:1641
  #1  0x00447150 in main (argc=1, argv=0x7fffe6c8) at http_main.c:5541
  #2  0x00000001 in ?? ()
  (gdb) step
  ap_fini_vhost_config (p=0x48f00c, main_s=0x48f034) at http_vhost.c:632
  632         *name_vhost_list_tail = NULL;
  (gdb) where
  #0  ap_fini_vhost_config (p=0x48f00c, main_s=0x48f034) at http_vhost.c:632
  (gdb) 

So my stack seems to get lost during that ap_fini_vhost_config()
call.  Does anybody have an idea what might be wrong here?  Or
can anybody point me into directions to SH3 assembler (including
things like how procedure prolog/exit work)?  Thanks.


bye,
  Harold