Since a recent Arch update, there seems to be an issue whenever imagick.so
from the php82-imagick
package is loaded. Both cli and fpm will segfault. Using gdb, I've figured out that this segfault occurs due to libgomp.so
. This library is actually dynamically linked with the module, but not with PHP itself.
The same occurs with php81 and php80 as well.
Here's the gdb output for php81, as I've had it in my clipboard just now:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff0fbb15e in initialize_env () at /usr/src/debug/gcc/gcc/libgomp/env.c:2062
Weirdly enough, this does not happen with extra/php combined with community/php-imagick, despite the linking situation being exactly as with this one: Module is linked to libgomp, PHP isn't. I suspect that something in the official extra/php package is different to this one that allows php-imagick to function correctly.
Pinned Comments