On Wed, Jan 27, 2016 at 06:08:49PM +0100, Marcus MERIGHI wrote: > Regression: from 5.8 onwards install fails on three of these shuttle > ds47d machines (5.7 works, 5.8 and -current doesn't). > > They are supposed to be identical, two bought at once, one a little > earlier. > > How it fails: 'Get/Verify SHA256.sig' succeeds, but 'Get/Verify bsd' > stopps instantly and gives only 'Illegal instruction'.
There seem to be a few instances of this happening recently, given various threads on misc/tech/bugs@. IIRC someone traced the instruction to a syscall (maybe it was sysret, can't recall) by dumping one of the binaries that was having problems, but nobody could explain why that was occurring since if that were really an invalid instruction, it would have failed on the first use, not some thousand or so calls later. Both of those instructions can indeed generate #UD, but apparently only if you either aren't in 64 bit mode (not the case) or if EFER gets trashed (likely not the case either). So, I'm stumped. I don't have any other advice at the moment, but am replying here to keep the thread up to date with what I recall being the most up to date info. -ml > > I've done installs of 5.7, 5.8 and -current multiple times on all three > of these machines. I've swapped RAM with my notebook. I took everything > out that can be removed (mSATA SSD, wlan). I do not think this is a > hardware or user failure (anymore). > > What I've found out: > I can run -current, when booting from externally installed usb stick: > sshd(8) stops when the first client disconnects. > cron(8) stops when it sends an email. > top(1) returns normally on 'q', prints 'Illegal instruction' on strg+c. > ping(8) returns 'Illegal instruction' after printing the first line. > > Testing the commands that are run by install.sub on the running -current > system shows, that if I ftp to file and run the file through sha256 > there is no problem. The pipe is causing the 'Illegal instruction'. > > I tried my gdb voodoo but it is weak... > gdb(1) 'bt' on the cores has one thing in common: <stdin> - no such > file. > > Below my posts to misc@ (sorry!), followed by -current (24/1) dmesg. > > Attached is the usual info on bugs@, for 5.7 and -current (24/1). > > One of the machines is ready for debugging. Please advise! > > Bye + Thanks for reading, Marcus > > [email protected] (Marcus MERIGHI), 2016.01.22 (Fri) 16:14 (CET): > > please disregard! > > > > sorry, right after hitting send I realized that this was not a -current > > install as usual but a 5.8 one. > > > > Therefore I'm quite sure the problem is hardware/PEBKAC. > > > [email protected] (Marcus MERIGHI), 2016.01.22 (Fri) 16:11 (CET): > > > I just downloaded amd64 bsd.rd, put it on an usb stick, booted a new > > > machine from usb. > > > > > > When the file sets were selected, 'Get/Verify SHA256.sig' succeeded, but > > > 'Get/Verify bsd' stopped instantly and gave only 'Illegal instruction'. > > > > > > Before this the only thing that didn't work was fetching the mirror > > > list. I entered one manually and the installer proceeded. > > > > > > The machine once had OpenBSD loaded and worked, it's a Shuttle DS47, > > > dmesg is in the archives. > > > > > > The USB drive I used is the one I always use for these tasks. > > OpenBSD 5.9-beta (RAMDISK_CD) #1695: Sun Jan 24 21:40:49 MST 2016 > [email protected]:/usr/src/sys/arch/amd64/compile/RAMDISK_CD > real mem = 4161052672 (3968MB) > avail mem = 4033228800 (3846MB) > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb530 (73 entries) > bios0: vendor American Megatrends Inc. version "1.03" date 08/09/2013 > bios0: Shuttle Inc. DS47D > acpi0 at bios0: rev 2 > acpi0: tables DSDT FACP APIC FPDT MCFG SLIC HPET SSDT SSDT SSDT > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Celeron(R) CPU 847 @ 1.10GHz, 1097.70 MHz > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT > cpu0: 256KB 64b/line 8-way L2 cache > cpu0: apic clock running at 99MHz > cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE > cpu at mainbus0: not configured > ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus -1 (P0P1) > acpiprt2 at acpi0: bus 1 (RP01) > acpiprt3 at acpi0: bus 2 (RP02) > acpiprt4 at acpi0: bus 3 (RP03) > acpiprt5 at acpi0: bus 4 (RP04) > acpiprt6 at acpi0: bus -1 (RP05) > acpiprt7 at acpi0: bus -1 (RP06) > acpiprt8 at acpi0: bus -1 (RP07) > acpiprt9 at acpi0: bus -1 (RP08) > acpiprt10 at acpi0: bus -1 (PEG0) > acpiprt11 at acpi0: bus -1 (PEG1) > acpiprt12 at acpi0: bus -1 (PEG2) > acpiprt13 at acpi0: bus -1 (PEG3) > acpiec0 at acpi0: not present > acpicpu at acpi0 not configured > acpipwrres at acpi0 not configured > acpipwrres at acpi0 not configured > acpipwrres at acpi0 not configured > acpipwrres at acpi0 not configured > acpipwrres at acpi0 not configured > acpitz at acpi0 not configured > acpitz at acpi0 not configured > acpibat at acpi0 not configured > acpibat at acpi0 not configured > acpibat at acpi0 not configured > acpibtn at acpi0 not configured > acpibtn at acpi0 not configured > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09 > vga1 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09 > wsdisplay1 at vga1 mux 1: console (80x25, vt100 emulation) > "Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured > ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 16 > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > "Intel 7 Series HD Audio" rev 0x04 at pci0 dev 27 function 0 not configured > ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi > pci1 at ppb0 bus 1 > iwn0 at pci1 dev 0 function 0 "Intel Wireless WiFi Link 4965" rev 0x61: msi, > MIMO 2T3R, MoW2, address 00:21:5c:04:ca:5f > ppb1 at pci0 dev 28 function 1 "Intel 7 Series PCIE" rev 0xc4: msi > pci2 at ppb1 bus 2 > re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G > (0x4c00), msi, address 80:ee:73:77:d5:a9 > rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0 > ppb2 at pci0 dev 28 function 2 "Intel 7 Series PCIE" rev 0xc4: msi > pci3 at ppb2 bus 3 > xhci0 at pci3 dev 0 function 0 "ASMedia ASM1042A xHCI" rev 0x00: msi > usb1 at xhci0: USB revision 3.0 > uhub1 at usb1 "ASMedia xHCI root hub" rev 3.00/1.00 addr 1 > ppb3 at pci0 dev 28 function 3 "Intel 7 Series PCIE" rev 0xc4: msi > pci4 at ppb3 bus 4 > re1 at pci4 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G > (0x4c00), msi, address 80:ee:73:77:d5:a8 > rgephy1 at re1 phy 7: RTL8251 PHY, rev. 0 > ehci1 at pci0 dev 29 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 23 > usb2 at ehci1: USB revision 2.0 > uhub2 at usb2 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > "Intel NM70 LPC" rev 0x04 at pci0 dev 31 function 0 not configured > ahci0 at pci0 dev 31 function 2 "Intel 7 Series AHCI" rev 0x04: msi, AHCI 1.3 > ahci0: port 2: 3.0Gb/s > scsibus0 at ahci0: 32 targets > sd0 at scsibus0 targ 2 lun 0: <ATA, TS8GMSM610, 2013> SCSI3 0/direct fixed > t10.ATA_TS8GMSM610_A93797112253B1000021 > sd0: 7641MB, 512 bytes/sector, 15649200 sectors > "Intel 7 Series SMBus" rev 0x04 at pci0 dev 31 function 3 not configured > isa0 at mainbus0 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo > pckbc0 at isa0 port 0x60/5 irq 1 irq 12 > uhub3 at uhub0 port 1 "vendor 0x8087 product 0x0024" rev 2.00/0.00 addr 2 > uhidev0 at uhub3 port 1 configuration 1 interface 0 "vendor 0x05af Rx504B > Ver:3.03" rev 2.00/3.10 addr 3 > uhidev0: iclass 3/1 > ukbd0 at uhidev0 > wskbd0 at ukbd0: console keyboard, using wsdisplay1 > uhidev1 at uhub3 port 1 configuration 1 interface 1 "vendor 0x05af Rx504B > Ver:3.03" rev 2.00/3.10 addr 3 > uhidev1: iclass 3/1, 5 report ids > uhid at uhidev1 reportid 1 not configured > uhid at uhidev1 reportid 2 not configured > uhid at uhidev1 reportid 3 not configured > uhid at uhidev1 reportid 4 not configured > uhid at uhidev1 reportid 5 not configured > umass0 at uhub1 port 4 configuration 1 interface 0 "Generic Mass Storage" rev > 2.00/1.0e addr 2 > umass0: using SCSI over Bulk-Only > scsibus1 at umass0: 2 targets, initiator 0 > sd1 at scsibus1 targ 1 lun 0: <Generic, Flash Disk, 8.07> SCSI2 0/direct > removable > sd1: 7680MB, 512 bytes/sector, 15728640 sectors > uhub4 at uhub2 port 1 "vendor 0x8087 product 0x0024" rev 2.00/0.00 addr 2 > umass1 at uhub4 port 2 configuration 1 interface 0 "Generic USB Storage" rev > 2.00/94.54 addr 3 > umass1: using SCSI over Bulk-Only > scsibus2 at umass1: 2 targets, initiator 0 > sd2 at scsibus2 targ 1 lun 0: <Generic, STORAGE DEVICE, 9454> SCSI0 0/direct > removable > softraid0 at root > scsibus3 at softraid0: 256 targets > root on rd0a swap on rd0b dump on rd0b > syncing disks... > OpenBSD 5.9-beta (GENERIC.MP) #1863: Sun Jan 24 21:35:42 MST 2016 > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 4161052672 (3968MB) > avail mem = 4030754816 (3844MB) > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb530 (73 entries) > bios0: vendor American Megatrends Inc. version "1.03" date 08/09/2013 > bios0: Shuttle Inc. DS47D > acpi0 at bios0: rev 2 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP APIC FPDT MCFG SLIC HPET SSDT SSDT SSDT > acpi0: wakeup devices P0P1(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) > USB6(S3) USB7(S3) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) > PXSX(S4) RP04(S4) [...] > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Celeron(R) CPU 847 @ 1.10GHz, 1097.70 MHz > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT > cpu0: 256KB 64b/line 8-way L2 cache > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges > cpu0: apic clock running at 99MHz > cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE > cpu1 at mainbus0: apid 2 (application processor) > cpu1: Intel(R) Celeron(R) CPU 847 @ 1.10GHz, 1097.51 MHz > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT > cpu1: 256KB 64b/line 8-way L2 cache > cpu1: smt 0, core 1, package 0 > ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins > acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63 > acpihpet0 at acpi0: 14318179 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus -1 (P0P1) > acpiprt2 at acpi0: bus 1 (RP01) > acpiprt3 at acpi0: bus 2 (RP02) > acpiprt4 at acpi0: bus 3 (RP03) > acpiprt5 at acpi0: bus 4 (RP04) > acpiprt6 at acpi0: bus -1 (RP05) > acpiprt7 at acpi0: bus -1 (RP06) > acpiprt8 at acpi0: bus -1 (RP07) > acpiprt9 at acpi0: bus -1 (RP08) > acpiprt10 at acpi0: bus -1 (PEG0) > acpiprt11 at acpi0: bus -1 (PEG1) > acpiprt12 at acpi0: bus -1 (PEG2) > acpiprt13 at acpi0: bus -1 (PEG3) > acpiec0 at acpi0: not present > acpicpu0 at acpi0: C2(350@104 mwait.1@0x20), C1(1000@1 mwait.1), PSS > acpicpu1 at acpi0: C2(350@104 mwait.1@0x20), C1(1000@1 mwait.1), PSS > acpipwrres0 at acpi0: FN00, resource for FAN0 > acpipwrres1 at acpi0: FN01, resource for FAN1 > acpipwrres2 at acpi0: FN02, resource for FAN2 > acpipwrres3 at acpi0: FN03, resource for FAN3 > acpipwrres4 at acpi0: FN04, resource for FAN4 > acpitz0 at acpi0: critical temperature is 101 degC > acpitz1 at acpi0: critical temperature is 101 degC > acpibat0 at acpi0: BAT0 not present > acpibat1 at acpi0: BAT1 not present > acpibat2 at acpi0: BAT2 not present > acpibtn0 at acpi0: PWRB > acpibtn1 at acpi0: LID0 > acpivideo0 at acpi0: GFX0 > cpu0: Enhanced SpeedStep 1097 MHz: speeds: 1100, 1000, 900, 800 MHz > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09 > inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09 > drm0 at inteldrm0 > inteldrm0: msi > inteldrm0: 1280x1024 > wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation) > wsdisplay0: screen 1-5 added (std, vt100 emulation) > "Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured > ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 16 > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > azalia0 at pci0 dev 27 function 0 "Intel 7 Series HD Audio" rev 0x04: msi > azalia0: codecs: Realtek ALC662, Intel/0x2806, using Realtek ALC662 > audio0 at azalia0 > ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi > pci1 at ppb0 bus 1 > iwn0 at pci1 dev 0 function 0 "Intel Wireless WiFi Link 4965" rev 0x61: msi, > MIMO 2T3R, MoW2, address 00:21:5c:04:ca:5f > ppb1 at pci0 dev 28 function 1 "Intel 7 Series PCIE" rev 0xc4: msi > pci2 at ppb1 bus 2 > re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G > (0x4c00), msi, address 80:ee:73:77:d5:a9 > rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0 > ppb2 at pci0 dev 28 function 2 "Intel 7 Series PCIE" rev 0xc4: msi > pci3 at ppb2 bus 3 > xhci0 at pci3 dev 0 function 0 "ASMedia ASM1042A xHCI" rev 0x00: msi > usb1 at xhci0: USB revision 3.0 > uhub1 at usb1 "ASMedia xHCI root hub" rev 3.00/1.00 addr 1 > ppb3 at pci0 dev 28 function 3 "Intel 7 Series PCIE" rev 0xc4: msi > pci4 at ppb3 bus 4 > re1 at pci4 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G > (0x4c00), msi, address 80:ee:73:77:d5:a8 > rgephy1 at re1 phy 7: RTL8251 PHY, rev. 0 > ehci1 at pci0 dev 29 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 23 > usb2 at ehci1: USB revision 2.0 > uhub2 at usb2 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > pcib0 at pci0 dev 31 function 0 "Intel NM70 LPC" rev 0x04 > ahci0 at pci0 dev 31 function 2 "Intel 7 Series AHCI" rev 0x04: msi, AHCI 1.3 > ahci0: port 2: 3.0Gb/s > scsibus1 at ahci0: 32 targets > sd0 at scsibus1 targ 2 lun 0: <ATA, TS8GMSM610, 2013> SCSI3 0/direct fixed > t10.ATA_TS8GMSM610_A93797112253B1000021 > sd0: 7641MB, 512 bytes/sector, 15649200 sectors > ichiic0 at pci0 dev 31 function 3 "Intel 7 Series SMBus" rev 0x04: apic 2 int > 18 > iic0 at ichiic0 > spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM > isa0 at pcib0 > isadma0 at isa0 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo > pckbc0 at isa0 port 0x60/5 irq 1 irq 12 > pcppi0 at isa0 port 0x61 > spkr0 at pcppi0 > it0 at isa0 port 0x2e/2: IT8728F rev 1, EC port 0xa30 > uhub3 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2 > uhidev0 at uhub3 port 1 configuration 1 interface 0 "Jing Mold Rx504B > Ver:3.03" rev 2.00/3.10 addr 3 > uhidev0: iclass 3/1 > ukbd0 at uhidev0: 8 variable keys, 6 key codes > wskbd0 at ukbd0: console keyboard, using wsdisplay0 > uhidev1 at uhub3 port 1 configuration 1 interface 1 "Jing Mold Rx504B > Ver:3.03" rev 2.00/3.10 addr 3 > uhidev1: iclass 3/1, 5 report ids > ums0 at uhidev1 reportid 1: 3 buttons, Z dir > wsmouse0 at ums0 mux 0 > uhid0 at uhidev1 reportid 2: input=2, output=0, feature=0 > uhid1 at uhidev1 reportid 3: input=2, output=0, feature=0 > uhid2 at uhidev1 reportid 4: input=2, output=0, feature=0 > uhid3 at uhidev1 reportid 5: input=7, output=7, feature=0 > uhub4 at uhub2 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2 > umass0 at uhub4 port 2 configuration 1 interface 0 "Generic USB Storage" rev > 2.00/94.54 addr 3 > umass0: using SCSI over Bulk-Only > scsibus2 at umass0: 2 targets, initiator 0 > sd1 at scsibus2 targ 1 lun 0: <Generic, STORAGE DEVICE, 9454> SCSI0 0/direct > removable > vscsi0 at root > scsibus3 at vscsi0: 256 targets > softraid0 at root > scsibus4 at softraid0: 256 targets > root on sd0a (e333dfd9e2d5f9a9.a) swap on sd0b dump on sd0b > umass1 at uhub4 port 4 configuration 1 interface 0 "Generic Mass Storage" rev > 2.00/1.0e addr 4 > umass1: using SCSI over Bulk-Only > scsibus5 at umass1: 2 targets, initiator 0 > sd2 at scsibus5 targ 1 lun 0: <Generic, Flash Disk, 8.07> SCSI2 0/direct > removable > sd2: 7680MB, 512 bytes/sector, 15728640 sectors
