[Bug 267671] [libc] Remove unnecessary printf to stderr in stdlib/cxa_thread_atexit_impl.c

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 29 Oct 2023 01:03:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267671

Willem Jan Withagen <wjw@digiware.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wjw@digiware.nl

--- Comment #4 from Willem Jan Withagen <wjw@digiware.nl> ---
(In reply to David Chisnall from comment #2)

Well, yes and no....

I agree the patch is wrong, but there is probably not all that much with the
used code as well

I had the same trouble in my Ceph-porting ....
Libraries get multiple time loaded, but in FreeBSD they get unloaded on the
first call to unload the library....

So there should be some sort of ref counting how much times it was loaded and
then only really unload on the transition from 1 to 0, as last unload.

Getting most ports that also work on Linux, or even are developed on it, the
are likely to have this problem.

I never got around to do something like implementing such a mechanism

-- 
You are receiving this mail because:
You are the assignee for the bug.