tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] Re: sharing mutex between libc stub and libpthread

On Fri, Feb 22, 2013 at 03:08:15AM +0100, Emmanuel Dreyfus wrote:
> That fixes DSO that are linked with -lpthread through a third pary
> library while they do not need it nor want it.

It "fixes" a static link time/configuration error by hiding it. The "do
not need it nor want it" is a clear indicator that they should not get
it at all.

And silently dying if something in the whole mess (obviously out of
controll already) manages to call pthread_create() makes it even worse.
A library should never call _exit()/abort() besides in rare
circumstances like a corrupted jmp_buf or stack protection detecting
stack corruption.


Home | Main Index | Thread Index | Old Index