segmentation fault при компиляции
Добавлено: 2010-11-25 17:32:06
Тема не нова, но заметил некоторые особенности появления segmentation fault у себя, например, при компиляции больших исходных текстов (в частности во время сборки мира всё падает на компиляции gcc). Интересно то, что на серваке стоит 2Гб оперативы планками 1024+512+256+256. Грешил на память, но мемтест ничего не показал. Самое интересное, что если оставить любую одну планку из этих четырех, то всё начинает собираться на ура без всяких segmentation fault. Отсюда вопрос, проблема всё таки в железе надо искать или можно заставить работать сервак с тем, что имеется.
Вот немного инфы:
dmesg
kenv
uname -a
Вот немного инфы:
dmesg
Код: Выделить всё
Copyright (c) 1992-2010 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.1-RELEASE-p1 #0: Mon Oct 25 20:22:30 UTC 2010
earl@excluzive.ws:/usr/obj/usr/src/sys/EXCLUZIVE i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 Processor 3000+ (1800.01-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x20ff2 Family = f Model = 2f Stepping = 2
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
Features2=0x1<SSE3>
AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow!+,3DNow!>
AMD Features2=0x1<LAHF>
real memory = 2147483648 (2048 MB)
avail memory = 2096115712 (1999 MB)
ACPI APIC Table: <Nvidia AWRDACPI>
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <Nvidia AWRDACPI> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 7fef0000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
nfsmb0: <nForce2/3/4 MCP SMBus Controller> port 0xd800-0xd81f,0x4c00-0x4c3f,0x4c40-0x4c7f irq 20 at device 1.1 on pci0
smbus0: <System Management Bus> on nfsmb0
smb0: <SMBus generic I/O> on smbus0
nfsmb1: <nForce2/3/4 MCP SMBus Controller> on nfsmb0
smbus1: <System Management Bus> on nfsmb1
smb1: <SMBus generic I/O> on smbus1
ohci0: <OHCI (generic) USB controller> mem 0xd8002000-0xd8002fff irq 21 at device 2.0 on pci0
ohci0: [ITHREAD]
usbus0: <OHCI (generic) USB controller> on ohci0
ehci0: <NVIDIA nForce4 USB 2.0 controller> mem 0xd8003000-0xd80030ff irq 22 at device 2.1 on pci0
ehci0: [ITHREAD]
usbus1: EHCI version 1.0
usbus1: <NVIDIA nForce4 USB 2.0 controller> on ehci0
atapci0: <nVidia nForce CK804 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
atapci1: <nVidia nForce CK804 SATA300 controller> port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd400-0xd40f mem 0xd8001000-0xd8001fff irq 23 at device 7.0 on pci0
atapci1: [ITHREAD]
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: [ITHREAD]
atapci2: <nVidia nForce CK804 SATA300 controller> port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xc000-0xc00f mem 0xd8000000-0xd8000fff irq 21 at device 8.0 on pci0
atapci2: [ITHREAD]
ata4: <ATA channel 0> on atapci2
ata4: [ITHREAD]
ata5: <ATA channel 1> on atapci2
ata5: [ITHREAD]
pcib1: <ACPI PCI-PCI bridge> at device 9.0 on pci0
pci5: <ACPI PCI bus> on pcib1
pci5: <serial bus, FireWire> at device 2.0 (no driver attached)
vgapci0: <VGA-compatible display> mem 0xd0000000-0xd3ffffff irq 16 at device 3.0 on pci5
rl0: <RealTek 8139 10/100BaseTX> port 0xa400-0xa4ff mem 0xd5001000-0xd50010ff irq 17 at device 4.0 on pci5
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> PHY 0 on miibus0
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:14:d1:52:45:df
rl0: [ITHREAD]
rl1: <RealTek 8139 10/100BaseTX> port 0xa800-0xa8ff mem 0xd5002000-0xd50020ff irq 18 at device 5.0 on pci5
miibus1: <MII bus> on rl1
rlphy1: <RealTek internal media interface> PHY 0 on miibus1
rlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl1: Ethernet address: 00:e0:4c:bf:3a:fe
rl1: [ITHREAD]
pcib2: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci4: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 12.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 13.0 on pci0
pci2: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> at device 14.0 on pci0
pci1: <ACPI PCI bus> on pcib5
acpi_tz0: <Thermal Zone> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x73 irq 8 on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Generic PS/2 mouse, device ID 0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcbfff pnpid ORM0000 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
ZFS filesystem version 3
ZFS storage pool version 14
Timecounter "TSC" frequency 1800010594 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to deny, logging disabled
load_dn_sched dn_sched FIFO loaded
load_dn_sched dn_sched PRIO loaded
load_dn_sched dn_sched QFQ loaded
load_dn_sched dn_sched RR loaded
load_dn_sched dn_sched WF2Q+ loaded
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <nVidia> at usbus0
uhub0: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <nVidia> at usbus1
uhub1: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
acd0: CDRW <NEC CD-RW NR-9100A/2.12> at ata0-master UDMA33
ad8: 715403MB <Seagate ST3750330AS SD15> at ata4-master UDMA100 SATA 1.5Gb/s
ad10: 953869MB <Seagate ST31000528AS CC38> at ata5-master UDMA100 SATA 1.5Gb/s
Root mount waiting for: usbus1 usbus0
uhub0: 8 ports with 8 removable, self powered
Root mount waiting for: usbus1
Root mount waiting for: usbus1
Root mount waiting for: usbus1
uhub1: 8 ports with 8 removable, self powered
Trying to mount root from zfs:exp
tap0: Ethernet address: 00:bd:b2:24:00:00
tap1: Ethernet address: 00:bd:b6:24:00:01
Bump sched buckets to 64 (was 0)
Bump sched buckets to 64 (was 0)
rl0: link state changed to UP
vlan2: link state changed to UP
vlan3: link state changed to UP
vlan5: link state changed to UP
vlan10: link state changed to UP
rl1: link state changed to UP
tap0: link state changed to UP
Limiting closed port RST response from 274 to 200 packets/sec
tap1: link state changed to UP
Код: Выделить всё
LINES="24"
acpi_load="YES"
bootfile="kernel"
comconsole_speed="9600"
console="vidconsole"
currdev="zfs0"
hint.acpi.0.oem="Nvidia"
hint.acpi.0.revision="1"
hint.acpi.0.rsdp="0xf7060"
hint.acpi.0.rsdt="0x7fff3040"
hint.apm.0.disabled="1"
hint.apm.0.flags="0x20"
hint.ata.0.at="isa"
hint.ata.0.irq="14"
hint.ata.0.port="0x1F0"
hint.ata.1.at="isa"
hint.ata.1.irq="15"
hint.ata.1.port="0x170"
hint.atkbd.0.at="atkbdc"
hint.atkbd.0.irq="1"
hint.atkbdc.0.at="isa"
hint.atkbdc.0.port="0x060"
hint.atrtc.0.at="isa"
hint.atrtc.0.irq="8"
hint.atrtc.0.port="0x70"
hint.fd.0.at="fdc0"
hint.fd.0.drive="0"
hint.fd.1.at="fdc0"
hint.fd.1.drive="1"
hint.fdc.0.at="isa"
hint.fdc.0.drq="2"
hint.fdc.0.irq="6"
hint.fdc.0.port="0x3F0"
hint.ppc.0.at="isa"
hint.ppc.0.irq="7"
hint.psm.0.at="atkbdc"
hint.psm.0.irq="12"
hint.sc.0.at="isa"
hint.sc.0.flags="0x100"
hint.uart.0.at="isa"
hint.uart.0.flags="0x10"
hint.uart.0.irq="4"
hint.uart.0.port="0x3F8"
hint.uart.1.at="isa"
hint.uart.1.irq="3"
hint.uart.1.port="0x2F8"
interpret="OK"
kernel="kernel"
kernel_options=""
kernelname="/boot/kernel/kernel"
loaddev="disk0a:"
loader_conf_files="/boot/device.hints /boot/loader.conf /boot/loader.conf.local"
mac_ifoff="NO"
module_path="/boot/kernel;/boot/modules"
smbios.bios.reldate="?"
smbios.bios.vendor="
smbios.bios.version="ASUS A8NE-FM ACPI BIOS Revision 1005 07/19/2005"
smbios.chassis.maker="Chassis Manufacture"
smbios.chassis.serial="EVAL "
smbios.chassis.tag="123456789000"
smbios.chassis.version="Chassis Version"
smbios.memory.enabled="2097152"
smbios.planar.maker="ASUSTek Computer INC."
smbios.planar.product="A8NE-FM"
smbios.planar.serial="123456789000"
smbios.planar.version="1.00"
smbios.socket.enabled="1"
smbios.socket.populated="2"
smbios.system.maker="System manufacturer"
smbios.system.product="System name"
smbios.system.serial="123456789000"
smbios.system.uuid="c0869b59-5f1d-d711-ab43-0013d4953711"
smbios.system.version="1.XX "
smbios.version="2.2"
vfs.root.mountfrom="zfs:exp"
vfs.zfs.arc_max="128M"
vfs.zfs.l2arc_write_boost="16M"
vfs.zfs.l2arc_write_max="16M"
vfs.zfs.prefetch_disable="1"
vfs.zfs.vdev.cache.size="5M"
vm.kmem_size="512M"
vm.kmem_size_max="650M"
Код: Выделить всё
FreeBSD local 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #0: Mon Oct 25 20:22:30 UTC 2010 earl@local:/usr/obj/usr/src/sys/LOCAL i386