From nobody Sat Dec 25 11:57:56 2021 X-Original-To: toolchain@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 EE11918F6B05 for ; Sat, 25 Dec 2021 11:57:58 +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 4JLj9d4c1Lz4mVX for ; Sat, 25 Dec 2021 11:57:57 +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 8029F16E94 for ; Sat, 25 Dec 2021 11:57:56 +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 1BPBvun2068042 for ; Sat, 25 Dec 2021 11:57:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BPBvu9e068040 for toolchain@FreeBSD.org; Sat, 25 Dec 2021 11:57:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 257829] lldb crashes with asio acceptor::accept Date: Sat, 25 Dec 2021 11:57:56 +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: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@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 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640433478; 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=vKUgoFq/3P5kHhiUqqYxnc4jklJXumQK8WTaMa477TE=; b=ayiCIN+ne/meq/Fk70IEQ2jEGq9L7DEDf474wChBkzktzrU0JGI0ttGDqwJKarNp+ljTLG lJPLC8wTz4S/dM+UABWac+RMsvAE9yIbyt+NlUm5ojKotmpB/8rtkfvTC1VxqBgeu25iIO L2hN+tdKFEAYuaoukRPyZl34LNbKxEvPQuKt4izi0IzH5kDVTkyxCs+XKVQtFD09SHuksu 0muPyPQmQoRxZGfVm6VROHBT+Jhf2uonHX+EuxT5QVFtXDygWeZQWsumM+TBtFCRgWLQcD SFGZnpOhMU5rN5lCPJmb8Pz1SgdDBFvbAqrL888f1ZSq8xPhDRfvXTXBOS+rFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640433478; a=rsa-sha256; cv=none; b=OI2pQzw/X5I4gD36WIjfg1pKNpG7c2Tb5r/Y2kCByYuFwLVJd4XX/zAyjzwjDgVeUuIn1u lbk7j464bizjOBYBIC72J7hGjze7wjDh8Zl7e9KFVqkZoF/MP3RY6WVZPoHwmofkLgWDoN r4r/FpcmlHUe9y9EC3Cbqe1f15I4JSx7Vkjq2aH/AhzJ5ZajwG8flVGK1+T3MAmikcYPia qfsJevIu2KsZUQwXl/vctQtayJyKipzLbtbwUVS0RsxKjsx1oqXWjXHh6QZyudV2i0sUUo 0H6TXidF7lhJYYKLX6oIU63Uu/z37ZPMTxxs5+PV+2ut4G/4bCGXmvm1/JT/AQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257829 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D456e2b149ecb1ea5f9e81b9b0733c7ec9= 526b8c2 commit 456e2b149ecb1ea5f9e81b9b0733c7ec9526b8c2 Author: Dimitry Andric AuthorDate: 2021-08-16 16:56:41 +0000 Commit: Dimitry Andric CommitDate: 2021-12-25 11:51:16 +0000 Apply upstream lldb fix for unhandled Error causing abort Merge commit 5033f0793fe6 from llvm git (by Dimitry Andric): [lldb] Avoid unhandled Error in TypeSystemMap::GetTypeSystemForLangua= ge When assertions are turned off, the `llvm::Error` value created at the start of this function is overwritten using the move-assignment operator, but the success value is never checked. Whenever a TypeSyst= em cannot be found or created, this can lead to lldb core dumping with: Program aborted due to an unhandled Error: Error value was Success. (Note: Success values must still be chec= ked prior to being destroyed). Fix this by not creating a `llvm::Error` value in advance, and direct= ly returning the result of `llvm::make_error` instead, whenever an error= is encountered. See also: and . Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D108088 Reported by: dmgk, ota@j.email.ne.jp PR: 253881, 257829 MFC after: 3 days (cherry picked from commit c1a540709a83f810aa47380b946552ab20020374) .../llvm-project/lldb/source/Symbol/TypeSystem.cpp | 90 +++++++++---------= ---- 1 file changed, 38 insertions(+), 52 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=