Skip to contentSkip to conversation

Multithreaded programs crashing due to libgcc_s missing

DISCUSSION Hannes Reinecke 2 participants 2 messages Jun 6, 2014 – Jul 22, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +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)

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 9 lines · Hannes Reinecke

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.

Quoted 7 lines

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