> Date: Wed, 10 Sep 2025 04:38:53 +0000
> From: Nicolas Farmer <[email protected]>

Hi Nicolas,

> On current (snapshot from yesterday) the multiprocessor kernel
> crashes during boot.
> The single-processor kernel from the same snapshot boots with no issues.
> The debugger froze when I attempted `machine ddbcpu 1` after the
> standard debugger commands.

Is this the first time you're installing OpenBSD on the machine?  Or
did older snapshots work fine?

> disks: sd0*
> >> OpenBSD/arm64 BOOTAA64 1.21
> boot>
> NOTE: random seed is being reused.
> booting sd0a:/bsd: 12290012+2883024+317464+859744 
> [1009107+91+1361184+858483]=0x1433e48
> [ using 3229648 bytes of bsd ELF symbol table ]
> Copyright (c) 1982, 1986, 1989, 1991, 1993
>       The Regents of the University of California.  All rights reserved.
> Copyright (c) 1995-2025 OpenBSD. All rights reserved.  https://www.OpenBSD.org
> 
> OpenBSD 7.7-current (GENERIC.MP) #20: Mon Sep  8 16:12:03 MDT 2025
>     [email protected]:/usr/src/sys/arch/arm64/compile/GENERIC.MP
> real mem  = 17169285120 (16373MB)
> avail mem = 16503111680 (15738MB)
> random: good seed from bootblocks
> mainbus0 at root: Raspberry Pi 5 Model B Rev 1.1
> psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND
> efi0 at mainbus0: UEFI 2.11
> efi0: Das U-Boot rev 0x20250700
> smbios0 at efi0: SMBIOS 3.7.0
> smbios0: vendor U-Boot version "2025.07" date 07/01/2025
> smbios0: raspberrypi Raspberry Pi 5 Model B Rev 1.1
> cpu0 at mainbus0 mpidr 0: ARM Cortex-A76 r4p1
> cpu0: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache
> cpu0: 512KB 64b/line 8-way L2 cache
> cpu0: 2048KB 64b/line 16-way L3 cache
> cpu0: 
> DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,CSV3,CSV2,RAS,AdvSIMD+HP,FP+HP,SSBS
> cpu1 at mainbus0 mpidr 100: ARM Cortex-A76 r4p1
> cpu1: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache
> cpu1: 512KB 64b/line 8-way L2 cache
> cpu1: 2048KB 64b/line 16-way L3 cache
> cpu2 at mainbus0 mpidr 200: ARM Cortex-A76 r4p1
> cpu2: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache
> cpu2: 512KB 64b/line 8-way L2 cache
> cpu2: 2048KB 64b/line 16-way L3 cache
> cpu3 at mainbus0 mpidr 300: ARM Cortex-A76 r4p1
> cpu3: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache
> cpu3: 512KB 64b/line 8-way L2 cache
> cpu3: 2048KB 64b/line 16-way L3 cache
> "atf" at mainbus0 not configured
> "linux,cma" at mainbus0 not configured
> "nvram" at mainbus0 not configured
> apm0 at mainbus0
> "system" at mainbus0 not configured
> simplebus0 at mainbus0: "clocks"
> "clk-osc" at simplebus0 not configured
> "clk-vpu" at simplebus0 not configured
> "clk-uart" at simplebus0 not configured
> "clk-emmc2" at simplebus0 not configured
> "clk-usb" at simplebus0 not configured
> "clk_xosc" at simplebus0 not configured
> "sdio_src" at simplebus0 not configured
> "sdhci_core" at simplebus0 not configured
> simplebus1 at mainbus0: "soc"
> bcmstbrescal0 at simplebus1
> bcmstbreset0 at simplebus1
> bcmmbox0 at simplebus1
> bcmstbgpio0 at simplebus1
> ampintc0 at simplebus1 nirq 320, ncpu 4 ipi 0: "interrupt-controller"
> bcmstbpinctrl0 at simplebus1
> bcmstbgpio1 at simplebus1
> bcmstbpinctrl1 at simplebus1
> bcmtmon0 at simplebus1
> sdhc0 at simplebus1
> sdhc0: SDHC 3.00, 200 MHz base clock
> sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, ddr52, dma
> "timer" at simplebus1 not configured
> "interrupt-controller" at simplebus1 not configured
> pluart0 at simplebus1: rev 3, 32 byte fifo
> pluart0: console
> "clock" at simplebus1 not configured
> "intc" at simplebus1 not configured
> "intc" at simplebus1 not configured
> "spi" at simplebus1 not configured
> "watchdog" at simplebus1 not configured
> bcmirng0 at simplebus1
> "intc" at simplebus1 not configured
> "serial" at simplebus1 not configured
> "firmware" at simplebus1 not configured
> "power" at simplebus1 not configured
> "fb" at simplebus1 not configured
> rpirtc0 at simplebus1
> simplebus2 at simplebus1: "nvmem"
> "nvmem_otp" at simplebus2 not configured
> "nvmem_cust" at simplebus2 not configured
> "nvmem_mac" at simplebus2 not configured
> "nvmem_priv" at simplebus2 not configured
> "fixedregulator_3v3" at simplebus1 not configured
> "fixedregulator_5v0" at simplebus1 not configured
> "gpiomem" at simplebus1 not configured
> "gpiomem" at simplebus1 not configured
> "gpiomem" at simplebus1 not configured
> "gpiomem" at simplebus1 not configured
> simplebus3 at mainbus0: "axi"
> bcmmip0 at simplebus3
> bcmmip1 at simplebus3
> syscon0 at simplebus3: "syscon"
> bcmpcie0 at simplebus3
> pci0 at bcmpcie0
> ppb0 at pci0 dev 0 function 0 "Broadcom BCM2712" rev 0x30
> pci1 at ppb0 bus 1
> rpone0 at pci1 dev 0 function 0 "Raspberry Pi RP1" rev 0x00
> simplebus4 at rpone0: "rp1"
> rpigpio0 at simplebus4
> "mailbox" at simplebus4 not configured
> "clocks" at simplebus4 not configured
> "pwm" at simplebus4 not configured
> "adc" at simplebus4 not configured
> cad0 at simplebus4: rev 0x70109, address 88:a2:9e:03:c7:44
> brgphy0 at cad0 phy 1: BCM54210E, rev. 2
> "pio" at simplebus4 not configured
> "dma" at simplebus4 not configured
> xhci0 at simplebus4, xHCI 1.10
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 
> 3.00/1.00 addr 1
> xhci1 at simplebus4, xHCI 1.10
> usb1 at xhci1: USB revision 3.0
> uhub1 at usb1 configuration 1 interface 0 "Generic xHCI root hub" rev 
> 3.00/1.00 addr 1
> "sram" at simplebus4 not configured
> "gpiomem" at simplebus4 not configured
> "iommu" at simplebus3 not configured
> "iommu" at simplebus3 not configured
> "iommu" at simplebus3 not configured
> "iommuc" at simplebus3 not configured
> "dma" at simplebus3 not configured
> "dma" at simplebus3 not configured
> "codec" at simplebus3 not configured
> "pisp_be" at simplebus3 not configured
> sdhc1 at simplebus3
> sdhc1: SDHC 3.00, 200 MHz base clock
> sdmmc1 at sdhc1: 4-bit, sd high-speed, mmc high-speed, ddr52, dma
> agtimer0 at mainbus0: 54000 kHz
> "clk-27M" at mainbus0 not configured
> "clk-108M" at mainbus0 not configured
> "arm-pmu" at mainbus0 not configured
> "phy" at mainbus0 not configured
> gpioleds0 at mainbus0: "PWR", "ACT"
> "sd-io-1v8-reg" at mainbus0 not configured
> "sd-vcc-reg" at mainbus0 not configured
> "wl-on-reg" at mainbus0 not configured
> "cam0_reg" at mainbus0 not configured
> "cam1_reg" at mainbus0 not configured
> "cam_dummy_reg" at mainbus0 not configured
> "dummy" at mainbus0 not configured
> "i2c0if" at mainbus0 not configured
> "i2c0mux" at mainbus0 not configured
> "rp1_firmware" at mainbus0 not configured
> "rp1_vdd_3v3" at mainbus0 not configured
> pwmfan0 at mainbus0
> gpiokeys0 at mainbus0: "pwr_button"
> Data modified on freelist: word 81866 of object 0xffffff8024405400 size 0x80 
> previous type devbuf (invalid addr 0x956cb051a65b5e37)
> panic: uvm_fault failed: ffffff8000564f48 esr 96000004 far 956cb051a65b5e3f
> Stopped at      db_enter+0x18:  brk     #0xf000
>     TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
> *     0      0      0     0x10000      0x200    0K swapper
> db_enter() at panic+0x138
> panic() at kdata_abort+0x198
> do_el0_sync() at handle_el1h_sync+0x68
> handle_el1h_sync() at malloc+0x410
> --- trap ---
> malloc() at counters_alloc+0x64
> counters_alloc() at if_counters_alloc+0x2c
> if_counters_alloc() at loop_clone_create+0xc8
> https://www.openbsd.org/ddb.html describes the minimum info required in bug
> reports.  Insufficient info makes it difficult to find and fix bugs.
> ddb{0}> show panic
> *cpu0: uvm_fault failed: ffffff8000564f48 esr 96000004 far 956cb051a65b5e3f
> ddb{0}> trace
> db_enter() at panic+0x138
> panic() at kdata_abort+0x198
> do_el0_sync() at handle_el1h_sync+0x68
> handle_el1h_sync() at malloc+0x410
> --- trap ---
> malloc() at counters_alloc+0x64
> counters_alloc() at if_counters_alloc+0x2c
> if_counters_alloc() at loop_clone_create+0xc8
> loop_clone_create() at loopattach+0x20
> loopattach() at main+0x374
> main() at virtdone+0x70
> ddb{0}> ps
>    PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
> *    0       0     -1      0  7     0x10200                swapper
> ddb{0}> show registers
> x0                              0x4c    $d+0x39
> x1                              0x14    $d+0x1
> x2                               0x4
> x3                              0x30    $d+0x1d
> x4                0xffffff80012c0810    initstack+0x5970
> x5                0xffffff8000e75771    $d+0x47c
> x6                0xffffff8000e5bcf2    $d+0x68
> x7                0x956cb051a65b5e37
> x8                               0x1
> x9                 0xe8b68167bceab52
> x10                              0x1
> x11               0xffffff80009b86a8    generic_space_write_4
> x12                              0x7
> x13               0xffffff80012c07df    initstack+0x593f
> x14               0xffffff8000eaf155    pppdumpm.digits
> x15               0xf9586add8b187a8a
> x16               0xffffff800099fd4c    ampintc_splx
> x17                              0x4
> x18               0xffffff80012c0840    initstack+0x59a0
> x19               0xffffff8000ec9ccf    $d+0x11d
> x20                              0x1
> x21               0xffffff80012e49b8    cpu_info_primary
> x22               0xffffff8001264d80    proc0
> x23                              0x1
> x24               0xffffff80012aa248    kernel_map_store
> x25               0xffffff80012baea0    initstack
> x26                             0x80    $d+0x6d
> x27                              0x7
> x28               0xffffff8001270c20    bucket+0x1f8
> x29               0xffffff80012c0840    initstack+0x59a0
> x30                                0
> sp                0xffffff80012c0840    initstack+0x59a0
> spsr                      0x60400305
> elr               0xffffff800093abac    db_enter+0x18
> lr                0xffffff8000b063cc    panic+0x13c
> db_enter+0x18:  brk     #0xf000
> ddb{0}> show malloc
>            Type InUse  MemUse  HighUse   Limit  Requests Type Lim
>          devbuf   238    261K     261K 304644K       486        0
>          rtable    16      0K       0K 304644K        17        0
>              pf    12     21K      21K 304644K        12        0
>          ifaddr    12      0K       0K 304644K        12        0
>         ifgroup     9      0K       0K 304644K         9        0
>          sysctl     1      1K       1K 304644K         1        0
>        counters    17      3K       2K 304644K        17        0
>          vnodes     1      0K       0K 304644K         1        0
>       UFS quota     1     32K      32K 304644K         1        0
>       UFS mount     1     32K      32K 304644K         1        0
>             shm     2      1K       1K 304644K         2        0
>          VM map     3      1K       1K 304644K         3        0
>             sem     2      0K       0K 304644K         2        0
>            proc     5     17K      17K 304644K         5        0
>     NFS srvsock     1      0K       0K 304644K         1        0
>      NFS daemon     1     16K      16K 304644K         1        0
>     ISOFS mount     1     32K      32K 304644K         1        0
>   MSDOSFS mount     1     16K      16K 304644K         1        0
>    fusefs mount     1     32K      32K 304644K         1        0
>        UVM aobj     1      2K       2K 304644K         1        0
>             USB    20     19K      19K 304644K        24        0
>      USB device     8      0K       0K 304644K         8        0
>          USB HC     1      0K       0K 304644K         1        0
>     crypto data     1      1K       1K 304644K         1        0
>             NDP     2      0K       0K 304644K         2        0
>            temp    27      1K       2K 304644K       254        0
> ddb{0}> machine cpuinfo
> *   0: ddb
>     1: stopping
>     2: stopping
>     3: stopping
> ddb{0}> machine ddbcpu 1
> 
> 

Reply via email to