Latest appimages require _INKSCAPE_GC=disable to run
this is a lower priority follow-up of #1458 (closed)
Steps to reproduce:
- Download an Inkscape appimage of master or 1.0.x, run
/path/to/appimage --extract-appimage
cd /path/to/squashfs-root
- Edit AppRun, removing the workaround that disables libgc
# Temporary workaround for broken libgc
if [ -z "$_INKSCAPE_GC" ] ; then
echo "Setting _INKSCAPE_GC=disable as a workaround for broken libgc" >&2
export _INKSCAPE_GC=disable
fi
- run the extracted appimage:
/path/to/squashfs-root/AppRun
What happened?
Run experimental bundle that bundles everything
Wrong __data_start/_end pair
Aborted
strace: inkscape-apprun-libgc
Note that building an Inkscape appimage in a Ubuntu 20.04 VM, I found that building the apt source libgc
package with debuild (https://wiki.debian.org/BuildingTutorial) resulted in a crash. However, if I built it using the instructions from https://github.com/ivmai/bdwgc (or cloned that repo, switch to tag: v7.6.4 and built it using the instructions), no crash.
Appimages built off the Ubuntu 18.04 docker image don't have this problem.
Update: I found that when build with debuild, LDFLAGS is set to -Wl,-Bsymbolic-functions -Wl,-z,relro
. Exporting that flag before ./configure --prefix=/usr
is sufficient to cause the appimage build to crash.
Update(2): Beginning to make more sense, narrowed down to LDFLAGS="-Wl,-Bsymbolic-functions"
What should have happened?
No crash
Inkscape Version and Operating System:
Inkscape 1.1-dev (17423934, 2020-06-14) Linux Mint 19.1