GCC tickling obscure hardware bug or...?

From: Scott Reese <sreese_at_codysbooks.com>
Date: Fri, 12 Sep 2003 12:51:22 -0700
Hello all, I'm rephrasing my previous question to reflect new findings
in my situation in the hopes that someone may have an idea of what's
going on here (see thread "Internal compiler error in
reload_cse_simplify_operands" from earlier this week).

In a nutshell, I have upgraded my machine to a PIV 2.4 GHz processor on
a VIA P4B 400 motherboard with 512 MB Samsung 2700 DDRAM.  I have a 300
Watt power supply with a ball-bearing fan and a Seagate 40 GB HD.  The
problem I'm having that I did not see with my PIII is that I'm getting
intermittent internal compiler errors when attempting to compile
anything (again, see previous thread for an example).  I even did a
fresh install of the system yesterday in order to rule out something
random getting hosed causing problems with my compiler.  Through
experimentation, I've found that toggling the CFLAGS from -O to -O2 or
vice-versa works around the problem (actually, I've had greater success
leaving my CFLAGS set to -O2 -pipe and occasionally bringing them back
to -O -pipe when I run into an ICE and then setting them back again). 
My hunch is that some hardware bug is being tickled by gcc somehow.  I
don't think it's the standard "broken hardware" thing because I've not
received any signal 11/7/4 errors at all and the system runs
wonderfully.  So far it's been up for over 24 hours, compiling ports and
running without a hitch.  The only strangeness is the compiler's
behavior.  Also, I should mention that I added

options DISABLE_PSE
options DISABLE_PG_G

to my kernel config but the ICE's still persist, though they seem to be
less frequent now.

Attached is my dmesg, please let me know if anyone would like any more
information about this or if you have any idea what might be going on
here.

Thank you,
Scott



Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.1-CURRENT-20030908-JPSNAP #0: Thu Sep 11 12:10:34 PDT 2003
    scott_at_borges.codysbooks.com:/usr/obj/usr/src/sys/BORGES
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0540000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc05401f4.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2405.47-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
real memory  = 536805376 (511 MB)
avail memory = 515645440 (491 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <VIAP4X AWRDACPI> on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 8 entries at 0xc00fdea0
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_cpu0: <CPU> port 0x530-0x537 on acpi0
acpi_cpu1: <CPU> port 0x530-0x537 on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0x500-0x50f,0x400-0x47f,0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 11 INTA is routed to irq 9
pcib0: slot 13 INTA is routed to irq 11
pcib0: slot 14 INTA is routed to irq 5
pcib0: slot 16 INTA is routed to irq 11
pcib0: slot 16 INTB is routed to irq 11
pcib0: slot 16 INTC is routed to irq 5
pcib0: slot 16 INTD is routed to irq 9
pcib0: slot 17 INTC is routed to irq 5
agp0: <VIA Generic host to PCI bridge> mem 0xd0000000-0xd7ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib0: slot 1 INTA is routed to irq 11
pcib1: slot 0 INTA is routed to irq 11
pci1: <display, VGA> at device 0.0 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX, rev. B> port 0xc000-0xc0ff mem 0xde000000-0xde0000ff irq 9 at device 11.0 on pci0
rl0: Ethernet address: 00:50:fc:09:6b:a1
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fwohci0: <VIA VT6306> port 0xc400-0xc47f mem 0xde001000-0xde0017ff irq 11 at device 13.0 on pci0
fwohci0: [MPSAFE]
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channel is 8.
fwohci0: EUI64 00:40:63:00:00:01:db:95
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
if_fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:40:63:01:db:95
sbp0: <SBP2/SCSI over firewire> on firewire0
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
vr0: <VIA VT6105M Rhine III 10/100BaseTX> port 0xc800-0xc8ff mem 0xde002000-0xde0020ff irq 5 at device 14.0 on pci0
vr0: Ethernet address: 00:40:63:c3:80:97
miibus1: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus1
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
uhci0: <VIA 83C572 USB controller> port 0xcc00-0xcc1f irq 11 at device 16.0 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 11 at device 16.1 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 5 at device 16.2 on pci0
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0: <serial bus, USB> at device 16.3 (no driver attached)
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8235 UDMA133 controller> port 0xd800-0xd80f at device 17.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pcm0: <VIA VT8235> port 0xdc00-0xdcff irq 5 at device 17.5 on pci0
pcm0: <ICEnsemble VT1616 AC97 Codec>
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
orm0: <Option ROM> at iomem 0xc0000-0xc8fff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2405472184 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%
GEOM: create disk ad0 dp=0xc3fbc670
ad0: 19546MB <FUJITSU MPF3204AT> [39714/16/63] at ata0-master UDMA66
GEOM: create disk ad1 dp=0xc3fbc570
ad1: 38166MB <ST340014A> [77545/16/63] at ata0-slave UDMA100
acd0: CDRW <CD-R/RW RW7083A> at ata1-slave PIO4
Mounting root from ufs:/dev/ad1s1a
drm0: <Matrox G550 (AGP)> mem 0xdb000000-0xdb7fffff,0xda000000-0xda003fff,0xd8000000-0xd9ffffff irq 11 at device 0.0 on pci1
info: [drm] AGP at 0xd0000000 128MB
info: [drm] Initialized mga 3.1.0 20021029 on minor 0
drm0: [MPSAFE]
pid 10348 (msgfmt), uid 0: exited on signal 6 (core dumped)
pid 11863 (msgfmt), uid 0: exited on signal 6 (core dumped)
drm0: [MPSAFE]
drm0: [MPSAFE]
Received on Fri Sep 12 2003 - 10:51:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:22 UTC