https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100851
--- Comment #4 from michaldrozd at protonmail dot ch ---
PR 91737 seems similar enough to be related
I've narrowed it down to the -Wl,-init functionality, if you comment out this
lines it exits cleanly.
https://github.com/eclipse/paho.mqtt.c/blob
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100851
Bug ID: 100851
Summary: Using std::thread on Alpine Linux/musl causes SIGABRT
after main when unloading a shared library.
Product: gcc
Version: 10.2.1
Status: UNCONFIRME