Subject: asn1_compile SIG4 with hp300
To: None <current-users@netbsd.org>
From: Jarkko Teppo <jarkko.teppo@er-grp.com>
List: current-users
Date: 10/12/2001 11:54:22
During make build...

NetBSD/src/lib/libasn1/asn1_compile/../../../crypto/dist/heimdal/lib/roken
             -DHAVE_CONFIG_H   -o asn1_compile gen.lo gen_copy.lo
gen_decode.lo gen_encode.lo gen_free.lo gen_glue.lo gen_length.lo hash.lo
lex.lo main.lo parse.lo symbol.lo getarg.lo print_version.lo warnerr.lo
strupr.lo get_window_size.lo nb_progname.lo
/home/jarkko/NetBSD/src/lib/libasn1/asn1_compile/obj.hp300/asn1_compile
/home/jarkko/NetBSD/src/lib/libasn1/../../crypto/dist/heimdal/lib/asn1/k5.asn1
krb5_asn1
*** Signal 4

Stop.
make: stopped in /home/jarkko/NetBSD/src/lib/libasn1
*** Error code 1

Stop.
make: stopped in /home/jarkko/NetBSD/src/lib
*** Error code 1


bash-2.05# gdb
/home/jarkko/NetBSD/src/lib/libasn1/asn1_compile/obj.hp300/asn1_compile
asn1_compile.core
GNU gdb 4.17
Copyright 1998 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 "m68k--netbsd"...(no debugging symbols found)...
Core was generated by `asn1_compile'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
#0  0x2d0e in init_fallthru ()
(gdb) bt
#0  0x2d0e in init_fallthru ()
#1  0x2cc2 in _init ()
#2  0x316e in __start ()
(gdb) disas
Dump of assembler code for function init_fallthru:
0x2d02 <init_fallthru>: orib #117,%d0
0x2d06: Cannot access memory at address 0x2d06.
(gdb)

Argh! Now I can't compile asn1_compile either,  as
make-print-version is dying with SIG4.

Well,

bash-2.05# ldd obj.hp300/make-print-version
obj.hp300/make-print-version:
         -lc.12 => /usr/lib/libc.so.12
bash-2.05# ls -l /usr/lib/libc.so.12
lrwxr-xr-x  1 root  wheel  13 Oct 12 09:56 /usr/lib/libc.so.12 -> libc.so.12.79
bash-2.05# rm /usr/lib/libc.so.12; ln -s /usr/lib/libc.so.12.78
/usr/lib/libc.so.12
bash-2.05# make
cc -O -I.
-I/home/jarkko/NetBSD/src/lib/libasn1/asn1_compile/../../../include/heimdal

-I/home/jarkko/NetBSD/src/lib/libasn1/asn1_compile/../../../crypto/dist/heimdal/lib/asn1

-I/home/jarkko/NetBSD/src/lib/libasn1/asn1_compile/../../../crypto/dist/heimdal/lib/roken
              -DHAVE_CONFIG_H  -o make-print-version
/home/jarkko/NetBSD/src/lib/libasn1/asn1_compile/../../../crypto/dist/heimdal/lib/vers/make-print-version.c
./make-print-version print_version.h
*** Signal 4

Stop.
make: stopped in /home/jarkko/NetBSD/src/lib/libasn1/asn1_compile
bash-2.05# ldd obj.hp300/make-print-version
obj.hp300/make-print-version:
         -lc.12 => /usr/lib/libc.so.12
bash-2.05# ls -l /usr/lib/libc.so.12
lrwxr-xr-x  1 root  wheel  22 Oct 12 11:40 /usr/lib/libc.so.12 ->
/usr/lib/libc.so.12.78
bash-2.05#

Well, how about hello world ?

bash-2.05# cd /tmp
bash-2.05# cc -g -o hello hello.c
bash-2.05# ./hello
Segmentation fault (core dumped)
bash-2.05# gdb hello hello.core
GNU gdb 4.17
Copyright 1998 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 "m68k--netbsd"...
Core was generated by `hello'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...done.
Reading symbols from /usr/lib/libc.so.12...done.
#0  0x2572 in init_fallthru ()
(gdb) bt
#0  0x2572 in init_fallthru ()
#1  0x251e in _init ()
#2  0x2696 in __start ()
(gdb) disas
Dump of assembler code for function init_fallthru:
0x255e <init_fallthru>: orib #117,%d0
0x2562: Cannot access memory at address 0x2562.
(gdb)

Whoops. Any ideas ?

TIA,
-- 
jht