From nobody Mon Jun 16 12:36:27 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLTyP384Sz5pvYG for ; Mon, 16 Jun 2025 12:36:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLTyP23ztz3nWG for ; Mon, 16 Jun 2025 12:36:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750077389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hk8/n2aatHg1VTVCvb0Ohy7/3DTaY9TuuerCOuHJheU=; b=kRyYcnWtmpr06jSTj1XlIua/G+FNSG61TwvwCFaJHBXNEp2/eVNSBHl7r0g6Jpzqx8wpCA z1ht4N6f1+xZq7NuRLYmwO9c83z0Foi6j9WaBvRdiFJPF147tPGKIBytp8N/yViyoZG+FY 86vhyEOwlvAgpGvY4f6bcuFqDZ8JHoPxbcz4cqUPtzT3nH+jcw44lnXcEjyKTs5oY7A0pw NFBQuOO1twtDr+oskYINX7PSErt5zKiBUliaWW9+dyDR92c3qsdkrgcSkxGc4d5UPCj6TC VOyBs7aKwjyUryPll9qgX8Oz1DPf+362SvEuCwNKmCviPdp7mz8Z0eibBERCBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750077389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hk8/n2aatHg1VTVCvb0Ohy7/3DTaY9TuuerCOuHJheU=; b=bk18TufpJmrsLZQaUl4yrOLDVNODhT8euZr31hhyTv7tHT03hJkdfOQcsC3r1oHVuK+hGY SymDUPB6DrIKWJi7DdrnILXd3+27yS5BDt9167i9Q0a8MKQPNS1hBxhfGehUtqF0+Tdz0d FM1pF7LlrdoMBXjL4uuLTc26jrlDpkvLjARTG/sbJINw7EMhQT4BhPBtT9WIKu4PIrBa0X zM56RhDbXkooZzR2bMWSq/PnmoaYl1LPbHo3VYKiLmifQmYxE+JmzCVrk6/PnvVtHoo+cR eNMoVUFQQxLShdC163Rxs+I8MVHgaDdkvzZiWxPZ65GDCjBwFvy7zpEfxjP/gw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750077389; a=rsa-sha256; cv=none; b=Lh55OmRj7sRkT/qLrq/WMIaq/H7E0NldKqO2w6P9/HoFBclIkVKXi1NSj32zTpndRZecCF 3pHuN2OwFxwj+3RhBWvlAclPPOvEoim1ymO3NypaGzb2fWr3U6X+u5OVgA5C1JKNa67yIF MvctKQ/DYX8aQ9/S3h/VL0TNIKTi5mQWU7p8w4v3XiBajVbw76XcLlYbvUJq/0ZESt55Ss lj+RC+JrdziGgXKUUPolyk1ObduJ+1VT9ap68QiEfefoEaj+hoxP8SObN0Sap1HGdgRujr 2L3cy5qu0EgHQxo5NChnJnt25MIpGgeGGm1yzX9dZFoZftb0nvN1waG14AZrAg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bLTyP1R15zyLb for ; Mon, 16 Jun 2025 12:36:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 55GCaTIW089131 for ; Mon, 16 Jun 2025 12:36:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 55GCaS8p089120 for bugs@FreeBSD.org; Mon, 16 Jun 2025 12:36:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 287566] sleeping thread holds process lock (drm-kmod most likely) Date: Mon, 16 Jun 2025 12:36:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: polyduekes@proton.me X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D287566 --- Comment #3 from polyduekes --- (In reply to Konstantin Belousov from comment #1) upon doing p *((struct thread *)0xfffff801f4573740) i get a long list and i= can see that td_proc =3D 0xfffffe00b4139040 but upon doing p *((struct thread *)0xfffff801f4573740)->td_proc) kgdb gives "Junk after end of expression." sorry, i am not really familiar with kernel debugging, but when you ask to switch to that thread, do you mean the thread with tid 102658? if yes then = the bt would be (kgdb) thread find 102658=20 Thread 1087 has target id 'Thread 102658' (kgdb) thread 1087 [Switching to thread 1087 (Thread 102658)] #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57 57 __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru= ct pcpu, (kgdb) bt #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57 #1 doadump (textdump=3D) at /usr/src/sys/kern/kern_shutdown= .c:405 #2 0xffffffff80b5a56b in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:523 #3 0xffffffff80b5aa69 in vpanic (fmt=3D0xffffffff81148989 "sleeping thread= holds %s", ap=3Dap@entry=3D0xfffffe00b507dc70) at /usr/src/sys/kern/kern_shutdown.c:967 #4 0xffffffff80b5a8a3 in panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:891 #5 0xffffffff80bc1a3f in propagate_priority (td=3D0xfffff801f4573740) at /usr/src/sys/kern/subr_turnstile.c:249 #6 0xffffffff80bc2527 in turnstile_wait (ts=3Dts@entry=3D0xfffff8017e66e54= 0, owner=3Downer@entry=3D0xfffff801f4573740,=20 queue=3Dqueue@entry=3D0) at /usr/src/sys/kern/subr_turnstile.c:807 #7 0xffffffff80b35ec5 in __mtx_lock_sleep (c=3Dc@entry=3D0xfffffe00b413918= 0, v=3D) at /usr/src/sys/kern/kern_mutex.c:668 #8 0xffffffff80b702cc in kern_thr_exit (td=3Dtd@entry=3D0xfffff8018e44e000= ) at /usr/src/sys/kern/kern_thr.c:345 #9 0xffffffff80b70247 in sys_thr_exit (td=3D0xfffff8018e44e000, td@entry= =3D,=20 uap=3D0xfffff8018e44e400, uap@entry=3D) at /usr/src/sys/kern/kern_thr.c:321 #10 0xffffffff8104e789 in syscallenter (td=3D0xfffff8018e44e000) at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:165 #11 amd64_syscall (td=3D0xfffff8018e44e000, traced=3D0) at /usr/src/sys/amd64/amd64/trap.c:1241 #12 #13 0x0000000853df5fda in ?? () Backtrace stopped: Cannot access memory at address 0x9727b9a88 --=20 You are receiving this mail because: You are the assignee for the bug.=