[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: new version of powstatd has unaligned traps



Paul Slootman wrote:

> If you get a kernel message like so:
> 
>  powstatd(15285): unaligned trap at 0000000120024a9c: 000000011ffffa34 2d 10
> 
> you fire up gdb on powstatd (which must be linked with -g, and with
> libc6.1-dbg) and type:
> 
>     info line *0x0000000120024a9c
> 
> which will give you a lines such as:
> 
> Line 88 of "bla.c" starts at address 0x120024a40 <_blafunc+10400>
>    and ends at 0x120024aa4 <_blafunc+10500>.
> 
> So look at line 88 and see what's going on there.

Well, I must be doing something wrong...
I installed libc6.1-dbg and:

# make alpha
cc -DSECURE -Wall -g -DDEBUG -DALPHA -DSTATFILE=\"/etc/powerstatus\"  -DCONFIG="\"/etc/powstatd.conf\"" powstatd.c  xtea.alpha.c -o powstatd 
powstatd.c: In function `readSock':
powstatd.c:1121: warning: long unsigned int format, different type arg (arg 3)
powstatd.c:1121: warning: long unsigned int format, different type arg (arg 4)
powstatd.c: In function `tellSlaves':
powstatd.c:1210: warning: long unsigned int format, different type arg (arg 4)
powstatd.c:1210: warning: long unsigned int format, different type arg (arg 5)
xtea.alpha.c: In function `encipher':
xtea.alpha.c:53: warning: suggest parentheses around arithmetic in operand of ^
xtea.alpha.c:55: warning: suggest parentheses around arithmetic in operand of ^
xtea.alpha.c: In function `decipher':
xtea.alpha.c:71: warning: suggest parentheses around arithmetic in operand of ^
xtea.alpha.c:73: warning: suggest parentheses around arithmetic in operand of ^

# file ./powstatd
./powstatd: ELF 64-bit LSB executable, Alpha (unofficial), version 1, dynamically linked (uses shared libs), not stripped


I run powstatd for a while...

# grep unaligned /var/log/messages | grep powstatd
Nov 29 12:28:55 poseidon kernel: powstatd(300): unaligned trap at 00000200001a5b18: 000000011ffffa8c 27 10
Nov 29 12:29:26 poseidon kernel: powstatd(302): unaligned trap at 00000200001a5b18: 000000011ffffa8c 27 10
Nov 29 12:30:13 poseidon kernel: powstatd(306): unaligned trap at 00000200001a5b18: 000000011ffffa9c 27 10
Nov 29 12:39:53 poseidon kernel: powstatd(359): unaligned trap at 00000200001a5b18: 000000011ffffa8c 27 10
Nov 29 12:39:54 poseidon kernel: powstatd(359): unaligned trap at 00000200001a5b18: 000000011ffffa8c 27 10
Nov 30 11:52:07 poseidon kernel: powstatd(296): unaligned trap at 00000200001a5b18: 000000011ffffa6c 27 10


# gdb ./powstatd 
GNU gdb 19990928
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 "alphaev56-unknown-linux-gnu"...
(gdb) info line *0x00000200001a5b18
No line number information available for address 0x200001a5b18
(gdb) info line *0x000000011ffffa6c
No line number information available for address 0x11ffffa6c
(gdb) quit


Am I doing something obviously wrong?
Thanks,

Peter


Reply to: