Multithreaded programs crashing due to libgcc_s missing
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]
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_swhen 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_sin 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