From nobody Thu Apr 17 02:23:54 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 4ZdMCJ0Md0z5tbCK for ; Thu, 17 Apr 2025 02:23:56 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZdMCH6t3vz3hKm for ; Thu, 17 Apr 2025 02:23:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744856636; 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=DS6iPal+G6BmORQnEs0sdLGKxynodXCEhZKmmE8kmoI=; b=NOYz3mhWMKDrsynY4WqQ82tsMDipk12OhRErhP8NoT0OkiYZ60Rj2IseTBc5VqwPSkLbpR Ba7yqRNaxYLlGzei8XOLnHTTa3+6hUCPzugAQjr7plhpCgCQtLlu+t0u8ghXhNbpDiaXCy IT2gigT/hBGAzjHUxSALq89dYrggqOiiRKueisFjBbShxeRC7c2KwZjJBItAoK97yoFlZ+ mgiXPU3s6UL+hAKOsU7TQtwiE4uIqugDMOmSce3yIVLgOsMz5P73iANjwC3bm9BVYacFDo mhxvpKnzNVRp0CKAqtSAXbCxT8zBPC3fWnoXFXRuX5six7s5C4gdkjuxVwgtXQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744856636; a=rsa-sha256; cv=none; b=GtzjR7Ueh7aIYtwJ+Hqbqb8XF9a3kM1pdOftGuWv8vrCh21XAyRSSqV37vT0Tu5fImufsS G0pNLFvaTk7rxwf67pDzb1AFVXiVKXrGpi1Nlz/E8OLGbLSO3eKBT9f7/hijXsITs0c33q WW649fmAEWVUo+Og2r8nwF7vq2G2pFaWFmJH+L1wd3lBlguc14CrsxLDEFCsBMbucFZCBx 3zbkyyC26PWi98LP3WL0C2JYQbh6QKFb4uFgL5nz+3sXiexEdyKRUuJR5ks1/idstuhD5/ 2wZGGqSvk+TWr0Yo2lL+FcM+TfmV2hrRGtMFKmAI51dN/4ZqNs/I1tzsRj2r7Q== 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=1744856636; 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=DS6iPal+G6BmORQnEs0sdLGKxynodXCEhZKmmE8kmoI=; b=hOhRSaNmPLcs8KW2zIQJZonBd2VXiUkL5xLR4KOqBn/dPtmd36WDThBfRl64nsElEy66OD wJuWzptBljyen3LPp2WJ5iwwz6zNJ43kN/ShUG5Fxj0DHop+lfKT3+dbqLDjh+qzfJC45W oaoCPs7QHOEXB4+6QR18TS7CiVFxmPmv5ae+KskvQSb/fehcrk9V4JifT7dwtSUL67b6nt 82fT7dLkT1xIJHeuNT44ZUikB1f3d+VXrM6mKLp+Z+x1BJ8W//gAcjRw+RTEb6/X4W1H61 QXYhuGOhZT+xxQ+1q+4c/x/5vAWMsxixR6zZgi/QmldgINdaLSEbP1X7Yvy9wg== 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 4ZdMCH6RjGzDTD for ; Thu, 17 Apr 2025 02:23:55 +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 53H2NtS7070428 for ; Thu, 17 Apr 2025 02:23:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 53H2NtVm070427 for bugs@FreeBSD.org; Thu, 17 Apr 2025 02:23:55 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: bugs@FreeBSD.org Subject: [Bug 285870] Bug in atexit code in rare specific case + patch to correct it Date: Thu, 17 Apr 2025 02:23:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: mfc-stable14? mfc-stable13? 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=3D285870 --- Comment #9 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dcc7bff26328d81268a8fba620670428ea= 0867d81 commit cc7bff26328d81268a8fba620670428ea0867d81 Author: Kyle Evans AuthorDate: 2025-04-05 00:47:54 +0000 Commit: Kyle Evans CommitDate: 2025-04-17 01:02:43 +0000 libc: tests: add some tests for __cxa_atexit handling This adds a basic test that __cxa_atexit works, and also adds some tests for __cxa_atexit handlers registered in the middle of __cxa_finalize. PR: 285870 (cherry picked from commit ee9ce1078c596f5719f312feedd616ab0fb41dc9) lib/libc/tests/stdlib/Makefile | 2 + lib/libc/tests/stdlib/cxa_atexit_test.c (new) | 132 +++++++++++++++++= ++++ lib/libc/tests/stdlib/libatexit/Makefile (new) | 11 ++ lib/libc/tests/stdlib/libatexit/libatexit.cc (new) | 67 +++++++++++ 4 files changed, 212 insertions(+) --=20 You are receiving this mail because: You are on the CC list for the bug.=