From nobody Thu Apr 17 01:06:44 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 4ZdKVF5CScz5tVps for ; Thu, 17 Apr 2025 01:06:45 +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 4ZdKVF3YD7z3ZBX for ; Thu, 17 Apr 2025 01:06:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744852005; 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=Vb77jSm9O03D1SDq2//zHhLfT64sY6+FKkhhw/4o3Jg=; b=GiKiWCXqsHJl+v6GthFS+SbpqZySnc2tKL57W20Y5DQAn1o5hsMY9EBcLuhvdrx6o9SOZm mquVYF9aFFJgJFf/94kRIggTRsFHD7ujxTYXavpOzlTCPx+WMknnai2Cj+g/56xRarJihG ofvQjx8W7A4D1Kr9Qz0WxvNVb/ugfcYGGf8aa90AaRx3IXAHmNDMpep0UTkEzojHh5nfEt 9WXx4wpJfaPJqD5Sxkn18dS61HN+9UNVD2IgrWHQdJRYYBKUwCccSdm4bjudla5Tyg+dS6 Ce561nE4L3Fc+BvXhWuEkxyc4zpNMDWxxWHe17QGDSGA7M/jCFvPyA5+P4i1Rg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744852005; a=rsa-sha256; cv=none; b=GAfDKxO4sB6Q3ug107WQyGuDbgAtwZeqGeeCGXqwthC1NjPDO30xJ1lrvgmaI+U/NKqcuA MbpelZfqSWz3VOuulehocK9GArcYA7RZFgDYjPjSKrvz5oq/iVdKg9W8xNvDEf4yMqlv9O WM7W1T82t6Su1nmegc2IpNZ1Axy3qu4y5UPj4pt9F24uNcEjEfeueaYSGi9/cz1h+cWMlN kF7gx5Xl0RXAZw54V7AyPGHOCsn3DRO5bLPmiz/cIbqhyAMHxFb0QrNWkdtWwXMkaKHX0i ea4eRfcomOH+tSf98bIdiAZW2ShB31YJK5mXxwwEYnv6uYhAklbF1KcPfBEwNA== 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=1744852005; 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=Vb77jSm9O03D1SDq2//zHhLfT64sY6+FKkhhw/4o3Jg=; b=jAyatElOqJUoOH2XFIVILlkMPC+WgTfCi7XYtdIsMXeNoAF4o3iciIFLdvUki5VgB3M8gJ QmVfVzvbtVu1xqS04T5KRvdukROJWQOrJdexGcmadwuRJrP3ANc8YOa/rMwfBUaIDROwLC 7WLPMm5sTgiAWAdkI1aZlIZLdfnjqO7IWrJyUEME6ZBFOU7zQPPjcXqA7YCGKoexAkuO2L l49qddYuuvwPq8jinNT4eZvy31bz3y3eOB33dt9u6n/+YgIn2w+X3VCV9llr9yhhli7CqV 1IQwvk+7dYc4zIBXD04mD0YfYc+9csXbOYw6J/DPV1LA7G6hGpghd5iMUozOQA== 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 4ZdKVF37PXz9s1 for ; Thu, 17 Apr 2025 01:06:45 +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 53H16jHj035027 for ; Thu, 17 Apr 2025 01:06:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 53H16jIX035026 for bugs@FreeBSD.org; Thu, 17 Apr 2025 01:06:45 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 01:06:44 +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 #7 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Ddf4b8eff7b19311f6cc5c339aebb41eca= fd2e52c commit df4b8eff7b19311f6cc5c339aebb41ecafd2e52c Author: Kyle Evans AuthorDate: 2025-04-05 00:47:54 +0000 Commit: Kyle Evans CommitDate: 2025-04-17 01:01:46 +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.=