[Bug 271945] panic: deadlres_td_sleep_q: possible deadlock detected for 0xfffffe0133324ac0 (stat), blocked for 1801328 ticks

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 11 Jun 2023 09:49:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271945

            Bug ID: 271945
           Summary: panic: deadlres_td_sleep_q: possible deadlock detected
                    for 0xfffffe0133324ac0 (stat), blocked for 1801328
                    ticks
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: grahamperrin@freebsd.org

Created attachment 242729
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242729&action=edit
core.txt

Dump header from device: /dev/ada0p2
  Architecture: amd64
  Architecture Version: 2
  Dump Length: 7457673216
  Blocksize: 512
  Compression: none
  Dumptime: 2023-06-11 00:03:27 +0100
  Hostname: mowa219-gjp4-8570p-freebsd
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 14.0-CURRENT #5 main-n263447-267411d164d4-dirty: Thu
Jun  8 14:26:44 BST 2023
   
grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
  Panic String: deadlres_td_sleep_q: possible deadlock detected for
0xfffffe0133324ac0 (stat), blocked for 1801328 ticks

  Dump Parity: 1748434536
  Bounds: 7
  Dump Status: good


----

-dirty, in that it was built with the (now obsolete) patch from bug 271772
comment 7. 


From the attached core.txt.7: 

…

Unread portion of the kernel message buffer:
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
<7>sonewconn: pcb 0xfffff80026bc6800 (local:/var/run/devd.seqpacket.pipe):
Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences),
euid 0, rgid 0, jail 0
panic: deadlres_td_sleep_q: possible deadlock detected for 0xfffffe0133324ac0
(stat), blocked for 1801328 ticks

cpuid = 0
time = 1686438207
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00c7277e00
vpanic() at vpanic+0x150/frame 0xfffffe00c7277e50
panic() at panic+0x43/frame 0xfffffe00c7277eb0
deadlkres() at deadlkres+0x350/frame 0xfffffe00c7277ef0
fork_exit() at fork_exit+0x80/frame 0xfffffe00c7277f30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00c7277f30
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
KDB: enter: panic
Uptime: 1d1h50m14s
Dumping 7112 out of 16260 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:59
warning: Source file is more recent than executable.
59              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct
pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:59
#1  doadump (textdump=textdump@entry=1)
    at /usr/src/sys/kern/kern_shutdown.c:407
#2  0xffffffff80b51ffc in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:528
#3  0xffffffff80b5251d in vpanic (fmt=<optimized out>, 
    ap=ap@entry=0xfffffe00c7277e90) at /usr/src/sys/kern/kern_shutdown.c:972
#4  0xffffffff80b522a3 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:896
#5  0xffffffff80adbe50 in deadlres_td_sleep_q (p=0xfffffe013f354000, 
    td=0xfffffe0133324ac0, slpticks=1800000)
    at /usr/src/sys/kern/kern_clock.c:235
#6  deadlkres () at /usr/src/sys/kern/kern_clock.c:280
#7  0xffffffff80b08730 in fork_exit (callout=0xffffffff80adbb00 <deadlkres>, 
    arg=0x0, frame=0xfffffe00c7277f40) at /usr/src/sys/kern/kern_fork.c:1102
#8  <signal handler called>
(kgdb) 

------------------------------------------------------------------------
ps -axlww

…


I was asleep at the time of the panic. As far as I can tell, after the event,
the computer was busy mostly with these two things: 

a) buildworld with multiple jobs

b) poudriere configuring cmake-core-3.26.1_1

-- 
You are receiving this mail because:
You are the assignee for the bug.