Subject: unaligned access in csh: built-in kill command
To: None <port-alpha@netbsd.org>
From: None <Havard.Eidnes@runit.sintef.no>
List: port-alpha
Date: 02/28/1999 00:28:07
doffen# kill -HUP 131
pid 7060 (csh): unaligned access: va=0x120184f1a pc=0x120056a94 ra=0x12000085c op=ldl
doffen# uname -a
NetBSD doffen.uninett.no 1.3I NetBSD 1.3I (DOFFEN) #1: Tue Feb 16 15:58:43 MET 1999     he@doffen.uninett.no:/usr/src/sys/arch/alpha/compile/DOFFEN alpha
doffen# cd /usr/src/bin/csh
doffen# gdb obj/csh
GDB is free software and you are welcome to 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.
GDB 4.16 (alpha--netbsd), Copyright 1996 Free Software Foundation, Inc...
(gdb) x/i 0x120056a90
0x120056a90 <free+16>:  ldl     t1,-8(a0)
(gdb) x/i
0x120056a94 <free+20>:  and     t1,0xff,t0
(gdb) 
0x120056a98 <free+24>:  cmpeq   t0,0xef,t0
(gdb)

...

(gdb) i b
Num Type           Disp Enb Address    What
2   breakpoint     keep y   0x120056a88  <free+8>
        breakpoint already hit 17 times
(gdb) where
#0  0x120056a88 in free ()
#1  0x12000085c in Free ()
#2  0x12001aa0c in freesyn ()
#3  0x12001aa7c in freesyn ()
#4  0x120003094 in process ()
#5  0x120001ce0 in main ()
(gdb) c
Continuing.
pid 7191 (csh): unaligned access: va=0x120184a9a pc=0x120056a94 ra=0x12000085c op=ldl

Known fenomenon?

- Havard