Mysterious Segmentation fault that only happen in 3.14+ alpine
Hi, I have run into segmentation fault which doesn't appear to occur on ubuntu/mac, can only be repro-ed in alpine distro. The segmentation fault happened when rmagick (ruby library/gem) try to read in pdf uses ghostscript (c/library) under the hood and we're guessing it might collide with symbol from another rbtree (ruby library) which both of them should be isolated
Affecting Environment:
- Alpine: 3.14/3.15+
Setup:
- Ruby: 2.7/3.0/3.1
- ImageMagick: 7+
- ghostscript: 9.5+
Here is the minimal gist to reproduce the bug using docker
Reference:
- Original bug report at rmagick repo: https://github.com/rmagick/rmagick/issues/1334