[Bug libgomp/109634] Linking Imagick for PHP compiles fine but gives segfault caused by libgomp on runtime
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109634 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org --- Comment #5 from Alexander Monakov --- I remember Glibc used to issue a readable diagnostic in that case ("cannot allocate memory in static TLS block"). Worth reporting to Glibc if that part regressed and the diagnostic is no longer available (at least I don't see it in the linked Github issue). What is actually happening here? Valgrind catches a null pointer dereference, but where is that null coming from? Is the dynamic linker invoking constructors with TLS pointer set to null, instead of aborting?
[Bug libgomp/109634] Linking Imagick for PHP compiles fine but gives segfault caused by libgomp on runtime
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109634 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #4 from Jakub Jelinek --- As mentioned by Andrew, this is a user error. libgomp can be only dlopened in threaded apps if there is still space in the static TLS surplus, which unfortunately some versions of glibc use even for normal TLS rather than just static TLS. So, LD_PRELOAD=libgomp.so.1, or link the program with libgomp.so.1 rather than just its libraries, or dlopen it before spawning threads. This is how glibc behaves, and unless we want to slow down libgomp extremely, there is nothing that can be done about it on the GCC side.
[Bug libgomp/109634] Linking Imagick for PHP compiles fine but gives segfault caused by libgomp on runtime
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109634 --- Comment #3 from Andrew Pinski --- https://gcc.gnu.org/pipermail/gcc/2015-February/216464.html
[Bug libgomp/109634] Linking Imagick for PHP compiles fine but gives segfault caused by libgomp on runtime
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109634 --- Comment #2 from Andrew Pinski --- Could be a glibc issue too.
[Bug libgomp/109634] Linking Imagick for PHP compiles fine but gives segfault caused by libgomp on runtime
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109634 Andrew Pinski changed: What|Removed |Added See Also||https://github.com/Imagick/ ||imagick/issues/609 --- Comment #1 from Andrew Pinski --- IIRC