All of lore.kernel.org
 help / color / mirror / Atom feed
* Multithreaded programs crashing due to libgcc_s missing
@ 2014-06-06 14:58 Hannes Reinecke
       [not found] ` <5391D727.5020907-l3A5Bk7waGM@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Hannes Reinecke @ 2014-06-06 14:58 UTC (permalink / raw)
  To: Harald Hoyer, initramfs

Hi Harald,

I've just uncovered a rather nasty issue with dracut, where for no 
apparent reason a (multithreaded) program was crashing.
Reason being here that libpthread _requires_ libgcc_s when any 
program is using 'pthread_cancel'. When the library isn't present
any of those calls will generate a SIGABRT.
Nasty.

Best would be to pull libgcc_s in always when libpthread is 
required. But that would be some library detection magic.
Can you fix this up?

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare-l3A5Bk7waGM@public.gmane.org			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Multithreaded programs crashing due to libgcc_s missing
       [not found] ` <5391D727.5020907-l3A5Bk7waGM@public.gmane.org>
@ 2014-07-22 12:31   ` Harald Hoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2014-07-22 12:31 UTC (permalink / raw)
  To: Hannes Reinecke, initramfs

On 06.06.2014 16:58, Hannes Reinecke wrote:
> Hi Harald,
> 
> I've just uncovered a rather nasty issue with dracut, where for no apparent
> reason a (multithreaded) program was crashing.
> Reason being here that libpthread _requires_ libgcc_s when any program is using
> 'pthread_cancel'. When the library isn't present
> any of those calls will generate a SIGABRT.
> Nasty.
> 
> Best would be to pull libgcc_s in always when libpthread is required. But that
> would be some library detection magic.
> Can you fix this up?
> 
> Cheers,
> 
> Hannes

Thanks! Should be in dracut >= 038

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-22 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-06 14:58 Multithreaded programs crashing due to libgcc_s missing Hannes Reinecke
     [not found] ` <5391D727.5020907-l3A5Bk7waGM@public.gmane.org>
2014-07-22 12:31   ` Harald Hoyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.