aferrero2707 / PhotoFlow

A fully non-destructive photo retouching program providing a complete layer-based workflow including RAW image development.
http://aferrero2707.github.io/PhotoFlow
GNU General Public License v3.0
309 stars 36 forks source link

AppImage: Segmentation fault (core dumped) on openSUSE Leap 42.2 #148

Closed probonopd closed 7 years ago

probonopd commented 7 years ago
linux@linux:~> /home/linux/Downloads/PhotoFlow-20170623_2216-git-linear_gamma-1ef45898a283c9efebd6588a0959364eafdf3dd3.glibc2.14-dbg.glibc2.14-x86_64.AppImage 
Segmentation fault (core dumped)

linux@linux:~> cat /etc/os-release
NAME="openSUSE Leap"
VERSION="42.2"
ID=opensuse
ID_LIKE="suse"
VERSION_ID="42.2"
PRETTY_NAME="openSUSE Leap 42.2"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:42.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

Removing the following libraries solves the segfault:

removed './usr/lib/x86_64-linux-gnu/libc.so.6'
removed './usr/lib/x86_64-linux-gnu/libdl.so.2'
removed './usr/lib/x86_64-linux-gnu/libm.so.6'
removed './usr/lib/x86_64-linux-gnu/libpthread.so.0'
removed './usr/lib/x86_64-linux-gnu/libresolv.so.2'
removed './usr/lib/x86_64-linux-gnu/librt.so.1'
removed './usr/lib/x86_64-linux-gnu/libstdc++.so.6'
removed './usr/lib/x86_64-linux-gnu/libxcb.so.1'
removed './usr/lib/x86_64-linux-gnu/libX11.so.6'
aferrero2707 commented 7 years ago

How to debug this? It seems to be crashing directly in the AppRun code, as nothing gets printed on the terminal.

Any idea?

probonopd commented 7 years ago

Bundling the mentioned libc.so.6 related libraries is known to segfault. Please do not bundle them. Then it works, I have tested it.

aferrero2707 commented 7 years ago

You are absolutely right, there was a mistake in the script that creates the AppImage bundle, and the list of blacklisted libraries was not read correctly.

I have corrected the appimage.sh scripts for both the stable and linear_gamma branches, hopefully the appimages now work properly.

Thanks!

aferrero2707 commented 7 years ago

I'm closing this since it should be fixed in the current AppImage packages. Please re-open the issue in case the problem is still there.

Thanks!