From nobody Sun Jul 18 05:41:42 2021 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 DDD578D435A for ; Sun, 18 Jul 2021 05:41:42 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GSDPL5gzlz3nJX for ; Sun, 18 Jul 2021 05:41:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 AADEB1E548 for ; Sun, 18 Jul 2021 05:41:42 +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 16I5fg4R021095 for ; Sun, 18 Jul 2021 05:41:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16I5fg6I021094 for bugs@FreeBSD.org; Sun, 18 Jul 2021 05:41:42 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 257240] glabel(8): glabel status can be difficult to kill when presented with a failing drive Date: Sun, 18 Jul 2021 05:41:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: grahamperrin@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257240 Bug ID: 257240 Summary: glabel(8): glabel status can be difficult to kill when presented with a failing drive Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: grahamperrin@gmail.com Created attachment 226523 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D226523&action= =3Dedit Screenshot: lsblk (not responding to Control-C) running glabel status, `tai= l -f -n 0 /var/log/messages` in the background I used sysutils/lsblk, sysutils/gdisk and newfs(8) to prepare a USB flash d= rive to demonstrate use of sysutils/stressdisk Following a failed test with StressDisk, run as root (comparable to ) I rebooted the computer then= ran lsblk (as root) to determine the /dev/da=E2=8B=AF number of the affected de= vice.=20 lsblk ran endlessly and did not respond to Control-C, so I used sysutils/ht= op to terminate two lsblk processes (two of three in a tree).=20 ---- root@mowa219-gjp4-8570p:~ # lsblk=20 ^C=20=20=20=20 load: 0.28 cmd: glabel 3767 [g_waitfor_event] 173.22r 0.00u 0.00s 0% 2548k mi_switch+0xc1 sleepq_timedwait+0x2f _sleep+0x1ab g_waitfor_event+0xc1 sysctl_kern_geom_confany+0xc1 sysctl_root_handler_locked+0x91 sysctl_root+0= x24c userland_sysctl+0x173 sys___sysctl+0x5c amd64_syscall+0x10c fast_syscall_common+0xf8=20 load: 0.67 cmd: glabel 3767 [g_waitfor_event] 423.27r 0.00u 0.00s 0% 2548k mi_switch+0xc1 sleepq_timedwait+0x2f _sleep+0x1ab g_waitfor_event+0xc1 sysctl_kern_geom_confany+0xc1 sysctl_root_handler_locked+0x91 sysctl_root+0= x24c userland_sysctl+0x173 sys___sysctl+0x5c amd64_syscall+0x10c fast_syscall_common+0xf8=20 Terminated root@mowa219-gjp4-8570p:~ #=20 ---- The third process from the tree:=20 glabel status =E2=80=93 continues, and does not stop in response to SIGTERM (15) and SIGK= ILL (9) issued by htop =E2=80=A6 --=20 You are receiving this mail because: You are the assignee for the bug.=