Subject: apache6 breakage
To: None <port-dreamcast@netbsd.org>
From: Harold Gutch <logix@foobar.franken.de>
List: port-dreamcast
Date: 02/29/2004 01:07:06
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:

dreamcast# pwd
/usr/pkgsrc/www/apache6
dreamcast# file work.sh3el/apache_1.3.29/src/httpd 
work.sh3el/apache_1.3.29/src/httpd: ELF 32-bit LSB executable, Hitachi SH, version 1 (SYSV), for NetBSD 1.6ZK, dynamically linked (uses shared libs), not stripped
dreamcast# work.sh3el/apache_1.3.29/src/httpd 
Segmentation fault (core dumped)
dreamcast# gdb work.sh3el/apache_1.3.29/src/httpd httpd.core 
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "shle--netbsdelf"...
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
Reading symbols from /usr/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/libgcc_s.so.1
Reading symbols from /usr/lib/libcrypt.so.0...done.
Loaded symbols for /usr/lib/libcrypt.so.0
Reading symbols from /usr/pkg/lib/libexpat.so.4...done.
Loaded symbols for /usr/pkg/lib/libexpat.so.4
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
#0  0x0048a3b6 in ap_sys_siglist ()
(gdb) where
#0  0x0048a3b6 in ap_sys_siglist ()

  This is strange - ap_sys_siglist isn't a function, but an
  array of 32 char-pointers, defined in http_main.c:

  #define NumSIG 32
  const char *ap_sys_siglist[NumSIG];
 
#1  0x204b484a in __umoddi3 () from /usr/lib/libgcc_s.so.1
#2  0x205a6b9a in vfprintf_unlocked () from /usr/lib/libc.so.12
(gdb) list
5420
5421    #ifdef TPF
5422        EBW_AREA input_parms;
5423        ecbptr()->ebrout = PRIMECRAS;
5424        input_parms = * (EBW_AREA *)(&(ecbptr()->ebw000));
5425    #endif
5426
5427        MONCONTROL(0);
5428
5429        common_init();

  (which is just at the beginning of main() )

(gdb) info registers
r0             0xa0f0   41200
r1             0xfffffffc       -4
r2             0x4897d0 4757456
r3             0xfff956d6       -436522
r4             0x3      3
r5             0xa000   40960
r6             0x0      0
r7             0x8      8
r8             0x3      3
r9             0xa000   40960
r10            0xa0000000       -1610612736
r11            0x1c     28
r12            0x204c7b0c       541883148
r13            0x46df68 4644712
r14            0x7fffd3cc       2147472332
r15            0x7fffd3cb       2147472331
pc             0x48a3b6 4760502
pr             0x204b484a       541804618
gbr            0x0      0
vbr            0x0      0
mach           0x281    641
macl           0xc      12
sr             0x100    256
ssr            0x0      0
spc            0x0      0
r0b0           0x0      0
r1b0           0x0      0
r2b0           0x0      0
r3b0           0x0      0
r4b0           0x0      0
r5b0           0x0      0
r6b0           0x0      0
r7b0           0x0      0
r0b1           0x0      0
r1b1           0x0      0
r2b1           0x0      0
r3b1           0x0      0
r4b1           0x0      0
r5b1           0x0      0
r6b1           0x0      0
r7b1           0x0      0


Since I don't know any SH3-assembler, I can't tell from the
information above if my stack is OK or if it's wedged.  Can
anybody provide any further insight?


bye,
  Harold