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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 05 Apr 2025 00:49:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285870

--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

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

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

 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.