From owner-freebsd-bugs@freebsd.org Mon Feb 8 20:09:51 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2441F53FEAA for ; Mon, 8 Feb 2021 20:09:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4DZHDv0MGvz4n42 for ; Mon, 8 Feb 2021 20:09:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0A01353FDAE; Mon, 8 Feb 2021 20:09:51 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 09CC553FE23 for ; Mon, 8 Feb 2021 20:09:51 +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 4DZHDt6qrYz4mym for ; Mon, 8 Feb 2021 20:09:50 +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 D9B701D932 for ; Mon, 8 Feb 2021 20:09:50 +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 118K9oFt068353 for ; Mon, 8 Feb 2021 20:09:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 118K9o19068352 for bugs@FreeBSD.org; Mon, 8 Feb 2021 20:09:50 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 253318] lldb: aborted when debugging named Date: Mon, 08 Feb 2021 20:09:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: dim@FreeBSD.org X-Bugzilla-Status: Open 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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 20:09:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253318 --- Comment #5 from Dimitry Andric --- Looking at the stack trace, it seems the line editor was processing a tab keypress (while being in libedit via el_wgets), and then the autocompletion stuff got some error, which it tried to print via PrintAsync. That uses a non-recursive mutex 'm_output_mutex' in the EditLine class, whi= ch is also locked just before calling into el_wgets(). So I think it's getting= a EDEADLK, as described in lib/libthr/thread/thr_mutex.c: 885 static int 886 mutex_self_lock(struct pthread_mutex *m, const struct timespec *abstime) 887 { 888 struct timespec ts1, ts2; 889 int ret; 890 891 switch (PMUTEX_TYPE(m->m_flags)) { 892 case PTHREAD_MUTEX_ERRORCHECK: 893 case PTHREAD_MUTEX_ADAPTIVE_NP:. 894 if (abstime) { ... 904 } else { 905 /* 906 * POSIX specifies that mutexes should retu= rn 907 * EDEADLK if a recursive lock is detected. 908 */ 909 ret =3D EDEADLK; 910 } I think this is an upstream bug. But it would be handy to have an easier reproduction scenario. --=20 You are receiving this mail because: You are the assignee for the bug.=