On octeon/mips64 7.8-snapshot sysutils/ruby-openvox gets killed sporadically:
 
        Core was generated by `ruby34'.
        Program terminated with signal SIGABRT, Aborted.
        #0  0x000000075c76a83c in _sem_post (sem=<optimized out>) at 
/usr/src/lib/librthread/rthread_sem.c:94
        94              return 0;
        [Current thread is 1 (process 477429)]
        (gdb) bt
        #0  0x000000075c76a83c in _sem_post (sem=<optimized out>) at 
/usr/src/lib/librthread/rthread_sem.c:94
        Backtrace stopped: Cannot access memory at address 0x18

It runs every ten minutes on my router, but crashes seemingly randomly:

        Dec 23 09:42:11 er-6p /bsd: ruby34[56358]: retguard trap
        Dec 23 15:22:10 er-6p /bsd: ruby34[20735]: retguard trap
        Dec 24 15:02:10 er-6p /bsd: ruby34[95985]: retguard trap
        Dec 24 18:22:11 er-6p /bsd: ruby34[45486]: retguard trap
        Dec 28 09:42:14 er-6p /bsd: ruby34[30646]: retguard trap
        Dec 28 09:52:09 er-6p /bsd: ruby34[32683]: retguard trap
        Dec 28 23:52:03 er-6p /bsd: ruby34[61533]: retguard trap
        Dec 29 16:42:14 er-6p /bsd: ruby34[702]: retguard trap
        Dec 30 00:52:13 er-6p /bsd: ruby34[19007]: retguard trap
        Dec 31 00:20:13 er-6p /bsd: ruby34[61330]: retguard trap
        Jan  1 14:02:10 er-6p /bsd: ruby34[73287]: retguard trap
        Jan  1 16:02:11 er-6p /bsd: ruby34[23474]: retguard trap
        Jan  1 19:00:14 er-6p /bsd: ruby34[61469]: retguard trap
        Jan  2 14:10:13 er-6p /bsd: ruby34[73525]: retguard trap
        Jan  3 11:32:13 er-6p /bsd: ruby34[7174]: retguard trap

ruby34.core is the only dump on this machine.  From cron mails I see
the crash does not always occur at the same point of OpenVox/Ruby
code, i.e. sometimes right away and sometimes at the end.

Pretty sure it did this months ago already, but I looked into it
just one.

Packages are up-to-date, base is a little behind now as I'm still trying
to reproduce other problems on this machine.

amd64 and arm64 machines running OpenVox the same way are fine,
but the relevant code is in arch/mips64/mips64/trap.c only, anyway:

                } else if ((instr & 0xfc00003f) == 0x00000036 /* tne */ &&
                    (instr & 0x0000ffc0) == (0x52 << 6)) {
                        KERNEL_LOCK();
                        log(LOG_ERR, "%s[%d]: retguard trap\n",
                            p->p_p->ps_comm, p->p_p->ps_pid);
                        /* Send uncatchable SIGABRT for coredump */
                        sigexit(p, SIGABRT);

Not sure how to approach this:  It seems completely Ruby specific,
but then again, I practically don't have any other workload on that
machine besides networking stuff with base.


OpenBSD 7.8-current (GENERIC.MP) #112: Fri Dec 12 22:29:50 MST 2025
    [email protected]:/usr/src/sys/arch/octeon/compile/GENERIC.MP
real mem = 1073741824 (1024MB)
avail mem = 1035124736 (987MB)
random: good seed from bootblocks
mainbus0 at root: board 20300 rev 1.23, model cavium,ubnt_e300
cpu0 at mainbus0: CN70xx/CN71xx CPU rev 0.2 1000 MHz, CN70xx/CN71xx FPU rev 0.0
cpu0: cache L1-I 78KB 39 way D 32KB 32 way, L2 1024KB 8 way
cpu1 at mainbus0: CN70xx/CN71xx CPU rev 0.2 1000 MHz, CN70xx/CN71xx FPU rev 0.0
cpu1: cache L1-I 78KB 39 way D 32KB 32 way, L2 1024KB 8 way
cpu2 at mainbus0: CN70xx/CN71xx CPU rev 0.2 1000 MHz, CN70xx/CN71xx FPU rev 0.0
cpu2: cache L1-I 78KB 39 way D 32KB 32 way, L2 1024KB 8 way
cpu3 at mainbus0: CN70xx/CN71xx CPU rev 0.2 1000 MHz, CN70xx/CN71xx FPU rev 0.0
cpu3: cache L1-I 78KB 39 way D 32KB 32 way, L2 1024KB 8 way
clock0 at mainbus0: int 5
octcrypto0 at mainbus0
iobus0 at mainbus0
simplebus0 at iobus0: "soc"
"bootbus" at simplebus0 not configured
octciu0 at simplebus0
octcib0 at simplebus0: max-bits 23
octcib1 at simplebus0: max-bits 12
octcib2 at simplebus0: max-bits 6
octcib3 at simplebus0: max-bits 15
octcib4 at simplebus0: max-bits 4
octcib5 at simplebus0: max-bits 11
octcib6 at simplebus0: max-bits 11
octgpio0 at simplebus0: 20 pins, xbit 16
octsmi0 at simplebus0
octsmi1 at simplebus0
octpip0 at simplebus0
octgmx0 at octpip0 interface 0
cnmac0 at octgmx0: port 0 SGMII, address 74:83:c2:11:8c:97
ukphy0 at cnmac0 phy 4: Generic IEEE 802.3u media interface, rev. 2: OUI 
0x0001c1, model 0x000c
cnmac1 at octgmx0: port 1 SGMII, address 74:83:c2:11:8c:98
ukphy1 at cnmac1 phy 5: Generic IEEE 802.3u media interface, rev. 2: OUI 
0x0001c1, model 0x000c
cnmac2 at octgmx0: port 2 SGMII, address 74:83:c2:11:8c:99
ukphy2 at cnmac2 phy 6: Generic IEEE 802.3u media interface, rev. 2: OUI 
0x0001c1, model 0x000c
cnmac3 at octgmx0: port 3 SGMII, address 74:83:c2:11:8c:9a
ukphy3 at cnmac3 phy 7: Generic IEEE 802.3u media interface, rev. 2: OUI 
0x0001c1, model 0x000c
octgmx1 at octpip0 interface 1
cnmac4 at octgmx1: port 16 SGMII, address 74:83:c2:11:8c:9b
ukphy4 at cnmac4 phy 8: Generic IEEE 802.3u media interface, rev. 0: OUI 
0x0001c1, model 0x0027
cnmac5 at octgmx1: port 17 SGMII, address 74:83:c2:11:8c:9c
ukphy5 at cnmac5 phy 9: Generic IEEE 802.3u media interface, rev. 0: OUI 
0x0001c1, model 0x0027
octsctl0 at simplebus0: disabled
octxctl0 at simplebus0: DWC3 rev 0x250a
xhci0 at octxctl0, xHCI 1.0
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
octxctl1 at simplebus0: DWC3 rev 0x250a
xhci1 at octxctl1, xHCI 1.0
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
"i2c" at simplebus0 not configured
"i2c" at simplebus0 not configured
com0 at simplebus0: ns16550a, 64 byte fifo
com0: console
com1 at simplebus0: ns16550a, 64 byte fifo
com1: probed fifo depth: 0 bytes
octmmc0 at simplebus0
sdmmc0 at octmmc0: 8-bit, mmc high-speed
"spi" at simplebus0 not configured
"ocla0" at simplebus0 not configured
"dma-engine" at simplebus0 not configured
"dma-engine" at simplebus0 not configured
octrng0 at iobus0 base 0x1400000000000 irq 0
octpcie0 at iobus0: 3 ports
octpcie0 port 0: link timeout
octpcie0 port 1: reset timeout
octpcie0 port 2: reset timeout
uplcom0 at uhub0 port 1 configuration 1 interface 0 "Prolific Technology Inc. 
USB-Serial Controller" rev 1.10/3.00 addr 2
ucom0 at uplcom0: usb0.0.00001.0
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Kingston, MMC4GB, 0000> removable
sd0: 3728MB, 512 bytes/sector, 7634944 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (3f2504aabc6eee02.a) swap on sd0b dump on sd0b

Reply via email to