From nobody Wed Apr 24 15:52:37 2024 X-Original-To: threads@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 4VPk5d6prSz5HrYR for ; Wed, 24 Apr 2024 15:52:37 +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 4VPk5d4gwHz4j59 for ; Wed, 24 Apr 2024 15:52:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713973957; a=rsa-sha256; cv=none; b=GOYLB/E8iZcA2mDKkbZyzwttsrMn/Lsd5aqtUuisZuiWJ0LlomWNjM9d5fpO7s0FJ1pjzk XbA+SX3hOirsYLvilt5XUJeWT9lR++DMis2bc6FhCk4QNsiCAdCCTCNVIzgnhFBy+k7wSh eAtMbovqcyb9kdoZV9YWVokmjfzs3ZWFePq4iNvI1xwOHDA1eaKOLs4N1OM3fCCkKdeAMj t5CW/OYQwLF+g0LIZk0IPAHYnchVSJSnKcMkXUWCevZFOm1H3FUWpuLJ1efDEuqfoU++gB yh6Np49pd13DWgw2vDLHI4T0P6025dO5yj5uAnJkFU07rKAj2JTbOcN/HGLFBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713973957; 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=0y0EXv0YrbvR9hUZYGndrm7iNAS6qVFZK2QZBthG4jU=; b=LxtwRdwj7/0nsnSHqoFybwVIBEGLtpI1RNRQRWQzkrBvDCclPmVBTZCZ4rv87VqrLsc5rO cbaBYlecKlU4eE9ajB9YCJ+V6wH0oQUFGEyqpRw3XZR6bGhB3JkncbMpJBAFF3xG8JjpNh xDbzjDZQPqr8vLdd6kPP2oZuvFLDsMQ3CLlX+s/MJm3mb1EiL13Bm0Da1YR/YB5hyXe3xN EG4yw3jTH8kp/xgK4sm1ZH+xPVazBnJd/tfLUHYR5Pf6u73fRc2Ga1ORHpzBWPrXyq15x8 txor3gNkfgRS3WFwdO3x2crdJZX+WntxswQSf6rHc7KS/nbK8WtG6kHaOWufNA== 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 4VPk5d4HhpzMDS for ; Wed, 24 Apr 2024 15:52:37 +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 43OFqb2l022368 for ; Wed, 24 Apr 2024 15:52:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43OFqbeh022365 for threads@FreeBSD.org; Wed, 24 Apr 2024 15:52:37 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: threads@FreeBSD.org Subject: [Bug 278551] pthread_join() kills the process with a return code of 134 Date: Wed, 24 Apr 2024 15:52:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-threads@freebsd.org Sender: owner-freebsd-threads@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278551 Konstantin Belousov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #4 from Konstantin Belousov --- So this issue only happens for the static binary built with gcc. The thing that fails is the gcc unwinder: #0 0x00000000004d4dca in thr_kill () #1 0x00000000004c226f in raise () #2 0x00000000004df6f9 in abort () #3 0x0000000000402bef in uw_init_context_1 ( context=3Dcontext@entry=3D0x7fffdfffdd50,=20 outer_cfa=3Douter_cfa@entry=3D0x7fffdfffdf80,=20 outer_ra=3D0x4b2326 ) at ../../../gcc-13.2.0/libgcc/unwind-dw2.c:1336 #4 0x00000000004ad986 in _Unwind_ForcedUnwind (exc=3D0x800818940,=20 stop=3D0x4b24d0 , stop_argument=3D0x0) at ../../../gcc-13.2.0/libgcc/unwind.inc:212 #5 0x00000000004b2326 in thread_unwind () #6 0x00000000004b228c in _pthread_exit_mask () #7 0x00000000004b21fb in pthread_exit () #8 0x00000000004b1e6d in thread_start () #9 0x0000000000000000 in ?? () It fails because gcc' _Unwind_IteratePhdrCallback() insists on finding PT_GNU_EH_FRAME which is missed for gcc-compiled binary: Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000 0x00000000001523d8 0x00000000001523d8 R E 0x1000 LOAD 0x0000000000153000 0x0000000000553000 0x0000000000553000 0x0000000000050274 0x0000000000273c30 RW 0x1000 NOTE 0x0000000000000158 0x0000000000400158 0x0000000000400158 0x0000000000000048 0x0000000000000048 R 0x4 TLS 0x00000000001973f0 0x00000000005973f0 0x00000000005973f0 0x0000000000001850 0x0000000000002080 R 0x10 GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 RW 0x10 The EH_FRAME segment is present for clang++. I have no idea why. --=20 You are receiving this mail because: You are the assignee for the bug.=