I can reproduce the issue with https://patchwork.freedesktop.org/patch/229503/. Not sure why it doesn't crash for me... I will fix it. Anyway, I highly recommend you to not use BUILD_SHARED_LIBS.