Subject: Re: gcc3.3.1 -O2 compiled SMP -current kernel panics
To: None <port-i386@NetBSD.org>
From: Geoff Wing <mason@primenet.com.au>
List: port-i386
Date: 08/20/2003 15:40:06
Frank van der Linden <fvdl@netbsd.org> typed:
: On Mon, Aug 18, 2003 at 07:46:06PM +0200, Markus W Kilbinger wrote:
:>   npx0 at isa0 port 0xf0-0xff: using exception 16
:>   fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
:>   fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
:>   ioapic0: enabling
:>   kernel: protection fault trap, code=0
:>   Stopped in pid 0.1 (swapper) at netbsd: Xdoreti+0xf: movl %fs:0x158(,eax,4),%eax
:>   db{0}>
: I think someone else reported this too. Could you provide the output
: of the 't' command and 'show registers'?
: 
: Also, can you try using "-O2 -fno-strict-aliasing"?

It didn't help me for my SMP system (with ahc)

DB was something like (probably with lots of handwritten/handtyped errors):

db{1}> t
Xdoreti() at netbsd:Xdoreti+0xf
--- interrupt ---
0x35:
db{1}> show registers
ds     : 0x10
es     : 0x10
fs     : 0x30
gs     : 0x10
edi    : 0xb
esi    : 0xc0100c71   Xdoreti+0xd
ebp    : 0xc09a5980   AcpiGbl_MADT+0x61955c
ebx    : 0xc0386340   kernel_lock
edx    : 0xc035cee0   cpu_info_primary
ecx    : 0xb
eax    : 0xc0386340   kernel_lock
eip    : 0xc0100c73   Xdoreti+0xf
cs     : 0x8
eflags : 0x10202
esp    : 0xc03e1e64   AcpiGbl_MADT+0x55a40
ss     : 0x10
netbsd: Xdoreti+0xf  movl %fs: 0x158(, %eax, 4), %eax
db{1}>

Regards,
-- 
Geoff Wing