Don't know if it's important, but if I try to use gdb on a process using libcrypto on arm64 (rpi4) I get this.
$ egdb ftp GNU gdb (GDB) 7.12.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-openbsd6.9". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ftp...(no debugging symbols found)...done. (gdb) run -o- https://www.openbsd.org/ Starting program: /usr/bin/ftp -o- https://www.openbsd.org/ Program received signal SIGILL, Illegal instruction. _armv8_pmull_probe () at /usr/src/lib/libcrypto/arm64cpuid.S:38 38 pmull v0.1q, v0.1d, v0.1d (gdb) bt #0 _armv8_pmull_probe () at /usr/src/lib/libcrypto/arm64cpuid.S:38 #1 0x0000001797a70b18 in OPENSSL_cpuid_setup () at /usr/src/lib/libcrypto/armcap.c:69 #2 0x00000017309f28c8 in _dl_call_init_recurse (object=0x17840b1c00, initfirst=0) at /usr/src/libexec/ld.so/loader.c:815 #3 0x00000017309f27b8 in _dl_call_init_recurse (object=0x173856b000, initfirst=0) at /usr/src/libexec/ld.so/loader.c:790 #4 0x00000017309f27b8 in _dl_call_init_recurse (object=0x173856b400, initfirst=0) at /usr/src/libexec/ld.so/loader.c:790 #5 0x00000017309fb774 in _dl_call_init (object=0x173856b400) at /usr/src/libexec/ld.so/loader.c:760 #6 _dl_boot (argv=<optimized out>, envp=<optimized out>, dyn_loff=99599908864, dl_data=0x7ffffd8804) at /usr/src/libexec/ld.so/loader.c:682 #7 0x00000017309fbcb4 in _dl_start () at /usr/src/libexec/ld.so/aarch64/ldasm.S:59 Backtrace stopped: previous frame identical to this frame (corrupt stack?) OpenBSD 6.9-beta (GENERIC.MP) #1048: Tue Mar 2 03:35:37 MST 2021 [email protected]:/usr/src/sys/arch/arm64/compile/GENERIC.MP real mem = 4081004544 (3891MB) avail mem = 3923197952 (3741MB) random: good seed from bootblocks mainbus0 at root: Raspberry Pi 4 Model B Rev 1.2 psci0 at mainbus0: PSCI 1.1, SMCCC 1.2 cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3 cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu0: 1024KB 64b/line 16-way L2 cache cpu0: CRC32 cpu1 at mainbus0 mpidr 1: ARM Cortex-A72 r0p3 cpu1: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu1: 1024KB 64b/line 16-way L2 cache cpu1: CRC32 cpu2 at mainbus0 mpidr 2: ARM Cortex-A72 r0p3 cpu2: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu2: 1024KB 64b/line 16-way L2 cache cpu2: CRC32 cpu3 at mainbus0 mpidr 3: ARM Cortex-A72 r0p3 cpu3: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu3: 1024KB 64b/line 16-way L2 cache cpu3: CRC32 efi0 at mainbus0: UEFI 2.7 efi0: https://github.com/pftf/RPi4 rev 0x10000 smbios0 at efi0: SMBIOS 3.3.0 smbios0: vendor https://github.com/pftf/RPi4 version "UEFI Firmware v1.13" date May 13 2020 10:40:33 smbios0: Sony UK Raspberry Pi 4 Model B apm0 at mainbus0 "system" at mainbus0 not configured "axi" at mainbus0 not configured simplebus0 at mainbus0: "soc" bcmclock0 at simplebus0 bcmmbox0 at simplebus0 bcmgpio0 at simplebus0 bcmaux0 at simplebus0 ampintc0 at simplebus0 nirq 256, ncpu 4 ipi: 0, 1: "interrupt-controller" bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7 bcmtmon0 at simplebus0 "timer" at simplebus0 not configured bcmirng0 at simplebus0 pluart0 at simplebus0: console com0 at simplebus0: ns16550, no working fifo "local_intc" at simplebus0 not configured bcmdog0 at simplebus0 "clock" at simplebus0 not configured simplebus1 at simplebus0: "firmware" "gpio" at simplebus1 not configured "power" at simplebus0 not configured sdhc0 at simplebus0 sdhc0: SDHC 3.0, 250 MHz base clock sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed "gpiomem" at simplebus0 not configured "fb" at simplebus0 not configured "vcsm" at simplebus0 not configured "clocks" at mainbus0 not configured "phy" at mainbus0 not configured "clk-108M" at mainbus0 not configured "firmware-clocks" at mainbus0 not configured "arm-pmu" at mainbus0 not configured agtimer0 at mainbus0: 54000 kHz simplebus2 at mainbus0: "scb" bcmpcie0 at simplebus2 pci0 at bcmpcie0 ppb0 at pci0 dev 0 function 0 "Broadcom BCM2711" rev 0x10 pci1 at ppb0 bus 1 xhci0 at pci1 dev 0 function 0 "VIA VL805 xHCI" rev 0x01: intx, xHCI 1.0 usb0 at xhci0: USB revision 3.0 uhub0 at usb0 configuration 1 interface 0 "VIA xHCI root hub" rev 3.00/1.00 addr 1 bse0 at simplebus2: address dc:a6:32:8b:e1:b7 brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2 "dma" at simplebus2 not configured "mailbox" at simplebus2 not configured "hevc-decoder" at simplebus2 not configured "rpivid-local-intc" at simplebus2 not configured "h264-decoder" at simplebus2 not configured "vp9-decoder" at simplebus2 not configured "leds" at mainbus0 not configured "sd_io_1v8_reg" at mainbus0 not configured "fixedregulator_3v3" at mainbus0 not configured "fixedregulator_5v0" at mainbus0 not configured simplebus3 at mainbus0: "v3dbus" simplebus4 at mainbus0: "emmc2bus" sdhc1 at simplebus4 sdhc1: SDHC 3.0, 100 MHz base clock sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, ddr52, dma "sd_vcc_reg" at mainbus0 not configured scsibus0 at sdmmc1: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <SD/MMC, NCard, 0010> removable sd0: 1875MB, 1024 bytes/sector, 1920000 sectors uhub1 at uhub0 port 1 configuration 1 interface 0 "VIA Labs USB2.0 Hub" rev 2.10/4.20 addr 2 bwfm0 at sdmmc0 function 1 manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 2 not configured manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 3 not configured uhub2 at uhub1 port 4 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" rev 2.00/77.64 addr 3 uplcom0 at uhub2 port 2 configuration 1 interface 0 "Prolific Technology Inc. USB-Serial Controller D" rev 1.10/4.00 addr 4 ucom0 at uplcom0 uhidev0 at uhub2 port 3 configuration 1 interface 0 "RDing TEMPerV1.4" rev 2.00/0.01 addr 5 uhidev0: iclass 3/1, 1 report id ukbd0 at uhidev0 reportid 1: 8 variable keys, 5 key codes wskbd0 at ukbd0 mux 1 uhidev1 at uhub2 port 3 configuration 1 interface 1 "RDing TEMPerV1.4" rev 2.00/0.01 addr 5 uhidev1: iclass 3/1 ugold0 at uhidev1 uhub3 at uhub2 port 4 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" rev 2.00/77.64 addr 6 uftdi0 at uhub3 port 1 configuration 1 interface 0 "FTDI FT232R USB UART" rev 2.00/6.00 addr 7 ucom1 at uftdi0 portno 1 uslcom0 at uhub3 port 2 configuration 1 interface 0 "Silicon Labs CP2102 USB to UART Bridge Controller" rev 1.10/1.00 addr 8 ucom2 at uslcom0 portno 0 umass0 at uhub0 port 3 configuration 1 interface 0 "SanDisk Ultra Fit" rev 3.20/1.00 addr 9 umass0: using SCSI over Bulk-Only scsibus1 at umass0: 2 targets, initiator 0 sd1 at scsibus1 targ 1 lun 0: <SanDisk, Ultra Fit, 1.00> removable serial.0781558381079d269c03 sd1: 29340MB, 512 bytes/sector, 60088320 sectors vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets ugold0: 1 sensor type ds75/12bit (temperature) root on sd1a (a3d7f93f60aec212.a) swap on sd1b dump on sd1b WARNING: clock lost 293 days WARNING: CHECK AND RESET THE DATE! gpio0 at bcmgpio0: 58 pins bwfm0: address dc:a6:32:8b:e1:b8
