Subject: Re: gcc3.3.1 -O2 compiled SMP -current kernel panics
To: Geoff Wing <mason@primenet.com.au>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: port-i386
Date: 08/20/2003 23:26:02
On Wed, Aug 20, 2003 at 03:40:06PM +0000, Geoff Wing wrote:
> 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)

Try "-O2 -fno-optimize-sibling-calls".  That will fix it.