This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Problem with atexit and _dl_fini
On 22/05/2019 12:29, Nat! wrote:
> Did you take a look at the screenshot in the tweet (https://twitter.com/mulle_nat/status/1129131042001043456/photo/1) I linked ? That's the best evidence I can provide, that its really happening. I tried to reproduce it pretty much the same as you did, but wasn't successful. It's not easy...
And I can't really tell without actually debugging it. On __cxa_finalizer, could
you dump the __exit_funcs values? The only thing I can think of is _dl_fini is
having to sort out the maps because of an implicit dependency between the shared
libraries.
>
> On a hunch I would say the problem will turn out to have something to do with liba having shared library dependencies and libb having shared library dependecies and some are shared by both and some not and dl-fini sorts things in the wrong order.
>
> If I get my release stuff down and find some spare time, I'll attempt to reproduce it again.
Do you have a easy way to provide the environment you are testing?