Numpy segfaults on amd64.
Also: gdb reporting errors with libs?
Let me know if more info is needed.
Stu
>>> import numpy
Illegal instruction (core dumped)
$ gdb python3 python3.13.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd7.8"...(no debugging symbols
found)
Core was generated by `python3.13'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /usr/lib/libpthread.so.28.1...done.
Loaded symbols for /usr/lib/libpthread.so.28.1
Loaded symbols for /usr/local/bin/python3
Reading symbols from /usr/local/lib/libpython3.13.so.0.0...done.
Loaded symbols for /usr/local/lib/libpython3.13.so.0.0
Reading symbols from /usr/local/lib/libintl.so.8.1...done.
Loaded symbols for /usr/local/lib/libintl.so.8.1
Symbols already loaded for /usr/lib/libpthread.so.28.1
Reading symbols from /usr/lib/libutil.so.21.0...done.
Loaded symbols for /usr/lib/libutil.so.21.0
Reading symbols from /usr/lib/libm.so.10.1...done.
Loaded symbols for /usr/lib/libm.so.10.1
Reading symbols from /usr/lib/libc.so.102.2...done.
Loaded symbols for /usr/lib/libc.so.102.2
Reading symbols from /usr/local/lib/libiconv.so.7.1...done.
Loaded symbols for /usr/local/lib/libiconv.so.7.1
Reading symbols from /usr/libexec/ld.so...Error while reading shared library
symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in
module /usr/libexec/ld.so]
Reading symbols from
/usr/local/lib/python3.13/lib-dynload/readline.cpython-313.so...done.
Loaded symbols for /usr/local/lib/python3.13/lib-dynload/readline.cpython-313.so
Reading symbols from /usr/lib/libreadline.so.6.0...done.
Loaded symbols for /usr/lib/libreadline.so.6.0
Reading symbols from /usr/lib/libcurses.so.16.0...done.
Loaded symbols for /usr/lib/libcurses.so.16.0
Reading symbols from
/usr/local/lib/python3.13/lib-dynload/_opcode.cpython-313.so...done.
Loaded symbols for /usr/local/lib/python3.13/lib-dynload/_opcode.cpython-313.so
Reading symbols from
/usr/local/lib/python3.13/lib-dynload/unicodedata.cpython-313.so...done.
Loaded symbols for
/usr/local/lib/python3.13/lib-dynload/unicodedata.cpython-313.so
Reading symbols from
/usr/local/lib/python3.13/lib-dynload/select.cpython-313.so...done.
Loaded symbols for /usr/local/lib/python3.13/lib-dynload/select.cpython-313.so
Reading symbols from
/usr/local/lib/python3.13/lib-dynload/_struct.cpython-313.so...done.
Loaded symbols for /usr/local/lib/python3.13/lib-dynload/_struct.cpython-313.so
Reading symbols from
/usr/local/lib/python3.13/lib-dynload/termios.cpython-313.so...done.
Loaded symbols for /usr/local/lib/python3.13/lib-dynload/termios.cpython-313.so
Reading symbols from
/usr/local/lib/python3.13/lib-dynload/fcntl.cpython-313.so...done.
Loaded symbols for /usr/local/lib/python3.13/lib-dynload/fcntl.cpython-313.so
Reading symbols from
/usr/local/lib/python3.13/lib-dynload/_curses.cpython-313.so...done.
Loaded symbols for /usr/local/lib/python3.13/lib-dynload/_curses.cpython-313.so
Reading symbols from
/usr/local/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313.so...done.
Loaded symbols for
/usr/local/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313.so
Reading symbols from /usr/local/lib/libcblas.so.2.1...done.
Loaded symbols for /usr/local/lib/libcblas.so.2.1
Reading symbols from /usr/lib/libc++.so.12.0...done.
Loaded symbols for /usr/lib/libc++.so.12.0
Reading symbols from /usr/lib/libc++abi.so.9.0...done.
Loaded symbols for /usr/lib/libc++abi.so.9.0
Reading symbols from /usr/local/lib/libblas.so.2.2...done.
Loaded symbols for /usr/local/lib/libblas.so.2.2
Reading symbols from /usr/local/lib/libgfortran.so.10.0...Error while reading
shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 5, should be 2) [in
module /usr/local/lib/libgfortran.so.10.0]
Reading symbols from /usr/local/lib/libquadmath.so.5.0...Error while reading
shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 5, should be 2) [in
module /usr/local/lib/libquadmath.so.5.0]
#0 0x000004959090e241 in
_ZNSt3__112__hash_tableINS_17__hash_value_typeIiNS_8functionIFP7_objectP16tagPyArrayObjecthEEEEENS_22__unordered_map_hasherIiS9_NS_4hashIiEENS_8equal_toIiEELb1EEENS_21__unordered_map_equalIiS9_SE_SC_Lb1EEENS_9allocatorIS9_EEE25__emplace_unique_key_argsIiJRKNS_4pairIKiS8_EEEEENSM_INS_15__hash_iteratorIPNS_11__hash_nodeIS9_PvEEEEbEERKT_DpOT0_
()
from
/usr/local/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313.so
(gdb) bt
#0 0x000004959090e241 in
_ZNSt3__112__hash_tableINS_17__hash_value_typeIiNS_8functionIFP7_objectP16tagPyArrayObjecthEEEEENS_22__unordered_map_hasherIiS9_NS_4hashIiEENS_8equal_toIiEELb1EEENS_21__unordered_map_equalIiS9_SE_SC_Lb1EEENS_9allocatorIS9_EEE25__emplace_unique_key_argsIiJRKNS_4pairIKiS8_EEEEENSM_INS_15__hash_iteratorIPNS_11__hash_nodeIS9_PvEEEEbEERKT_DpOT0_
()
from
/usr/local/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313.so
#1 0x000004959090cfc0 in _GLOBAL__sub_I_unique.cpp () from
/usr/local/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313.so
#2 0x000004957b2c8e43 in ?? () from /usr/libexec/ld.so
#3 0x0000000000000001 in ?? ()
#4 0x000000007fff2000 in ?? ()
#5 0x00000494d478cf00 in _thread_key_zero (key=Variable "key" is not available.
) at /usr/src/lib/librthread/rthread.c:194
#6 0x0000000000000000 in ?? ()
OpenBSD 7.8-current (GENERIC.MP) #208: Thu Jan 15 14:49:40 MST 2026
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4277600256 (4079MB)
avail mem = 4121165824 (3930MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xfc8c0 (36 entries)
bios0: vendor Dell Inc. version "A02" date 03/30/2009
bios0: Dell Inc. Inspiron 537
acpi0 at bios0: ACPI 1.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET GSCI SSDT
acpi0: wakeup devices P0P2(S4) P0P3(S4) P0P1(S4) MC97(S4) P0P4(S4) P0P5(S4)
P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3)
EUSB(S3) PWRB(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) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.62 MHz, 06-17-0a, patch
00000a0b
cpu0: cpuid 1
edx=bfebfbff<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>
ecx=408e3fd<SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE>
cpu0: cpuid 6 eax=1<SENSOR> ecx=3<EFFFREQ>
cpu0: cpuid a vers=2, gp=2, gpwidth=40, ff=3, ffwidth=40
cpu0: cpuid 80000001 edx=20100800<NXE,LONG> ecx=1<LAHF>
cpu0: MELTDOWN
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 6MB 64b/line
24-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 332MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.67 MHz, 06-17-0a, patch
00000a0b
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (P0P1)
acpiprt2 at acpi0: bus 2 (P0P4)
acpiprt3 at acpi0: bus 3 (P0P5)
acpiprt4 at acpi0: bus -1 (P0P6)
acpiprt5 at acpi0: bus -1 (P0P7)
acpiprt6 at acpi0: bus -1 (P0P8)
acpiprt7 at acpi0: bus -1 (P0P9)
acpipci0 at acpi0 PCI0
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB(wakeup)
acpicpu0 at acpi0: C1(@1 halt!), PSS
acpicpu1 at acpi0: C1(@1 halt!), PSS
acpitz0 at acpi0
acpitz0: critical temperature is 110 degC
cpu0: Enhanced SpeedStep 2992 MHz: speeds: 3003, 2670, 2336, 2003 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel G41 Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel G45 PCIE" rev 0x03: apic 2 int 16
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 4350" rev 0x00
drm0 at radeondrm0
radeondrm0: apic 2 int 16
azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 4000 HD Audio" rev 0x00: apic 2
int 17
azalia0: no supported codecs
azalia1 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: apic 2 int
16
azalia1: codecs: Realtek ALC662
audio0 at azalia1
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 2 int 16
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x01: apic 2 int 17
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8101E" rev 0x02: RTL8102E (0x3480), apic
2 int 17, address 00:25:64:03:5d:33
rlphy0 at re0 phy 7: RTL8201L, rev. 1
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 2 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 2 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 2 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 2 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00
addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1
pci4 at ppb3 bus 4
pcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01
pciide0 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA, channel 0
configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 2 int 19 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <WDC WD6400AAKS-75A7B2>
wd0: 16-sector PIO, LBA48, 610480MB, 1250263728 sectors
wd1 at pciide0 channel 0 drive 1: <WDC WD10EALX-229BA0>
wd1: 16-sector PIO, LBA48, 953869MB, 1953525168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 2 int 19
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6
spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00
addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00
addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00
addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00
addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
it0 at isa0 port 0x2e/2: IT8718F rev 7, EC port 0xa10
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Microsoft Microsoft
Optical Mouse with Tilt Wheel" rev 2.00/1.20 addr 2
uhidev0: iclass 3/1, 24 report ids
ums0 at uhidev0 reportid 17: 3 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev0 reportid 18: input=0, output=0, feature=1
ucc0 at uhidev0 reportid 19: 1 usage, 0 keys, enum
uhid1 at uhidev0 reportid 23: input=0, output=0, feature=1
uhid2 at uhidev0 reportid 24: input=0, output=0, feature=1
uhidev1 at uhub2 port 2 configuration 1 interface 0 "Microsoft Comfort Curve
Keyboard 2000" rev 2.00/1.73 addr 2
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev2 at uhub2 port 2 configuration 1 interface 1 "Microsoft Comfort Curve
Keyboard 2000" rev 2.00/1.73 addr 2
uhidev2: iclass 3/0, 1 report id
ucc1 at uhidev2 reportid 1: 1024 usages, 20 keys, array
wskbd2 at ucc1 mux 1
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (1349c680e9761c4e.a) swap on wd0b dump on wd0b
radeondrm0: RV710
radeon_audio_component_init: stub
radeondrm0: 1680x1050, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wskbd2: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)