Subject: gcc3.3.1 -O2 compiled SMP -current kernel panics
To: None <port-i386@netbsd.org, tech-smp@netbsd.org>
From: Markus W Kilbinger <kilbi@rad.rwth-aachen.de>
List: port-i386
Date: 08/18/2003 19:46:06
Hi!

I don't know if it's already of interest: I've compiled a -current smp
kernel with gcc3.3.1 (USE_TOOLS_TOOLCHAIN=no) and optimization '-O2'
on/for my i386 machine and tried to boot it:

  NetBSD 1.6W (QIE.MP) #2: Sun Aug 17 22:19:09 MEST 2003
  	  kilbi@qie:/sys/arch/i386/compile/QIE.MP
  total memory = 1023 MB
  avail memory = 945 MB
  using 6144 buffers containing 52504 KB of memory
  BIOS32 rev. 0 found at 0xf1d30
  PCI BIOS rev. 2.1 found at 0xf1f30
  pcibios: config mechanism [1][x], special cycles [1][x], last bus 2
  PCI IRQ Routing Table rev. 1.0 found at 0xf24b0, size 176 bytes (9 entries)
  PCI Interrupt Router at 000:07:3 (Advanced Micro Devices AMD768 PCI to ISA/LPC Bridge)
  mainbus0 (root)
  cpu0 at mainbus0: apid 0 (boot processor)
  cpu0: AMD Athlon MP 2000+ (686-class), 1680.53 MHz, id 0x662
  cpu0: features
  [...]
  cpu1 at mainbus0: apid 1 (application processor)
  cpu1: starting
  cpu1: AMD Athlon MP 2000+ (686-class), 1680.40 MHz, id 0x662
  [...]
  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}>

normally it proceeds with:

  IPsec: Initialized Security Association Processing.
  uhidev0 at uhub0 port 2 configuration 1 interface 0
  uhidev0: Logitech USB-PS/2 Mouse, rev 1.00/1.20, addr 2, iclass 3/1
  [...]

A gcc3.3.1 compiled -current smp kernel with lower optimization ('-O')
seems to work fine (beside some heavy load fs related hang ups which I
see with gcc2.95.3 compiled smp kernels, too).

Should I send-pr?

Markus.