[Bug 285870] Bug in atexit code in rare specific case + patch to correct it

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 17 Apr 2025 01:06:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285870

--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch stable/14 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=df4b8eff7b19311f6cc5c339aebb41ecafd2e52c

commit df4b8eff7b19311f6cc5c339aebb41ecafd2e52c
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2025-04-05 00:47:54 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
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(+)

-- 
You are receiving this mail because:
You are on the CC list for the bug.