AppImageLauncher icon indicating copy to clipboard operation
AppImageLauncher copied to clipboard

Segment fault on Deepin 15.11.

Open abcfy2 opened this issue 6 years ago • 8 comments

From https://github.com/TheAssassin/AppImageLauncher/issues/127#issuecomment-553837395

Deepin 15.11 is based on Debian 9, VM can be found here: https://www.osboxes.org/deepin/#deepin-15-11-vbox

I try to build deb from source code, still segment fault.

REPO_ROOT=.
cmake "$REPO_ROOT" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo $EXTRA_CMAKE_FLAGS -DTRAVIS_BUILD=ON -DBUILD_TESTING=OFF
make -j $(nproc)
cmake .
cpack -V -G DEB

Then install deb package:

sudo apt install -y ./appimagelauncher_2.0.3-local~4f7bc8e_amd64.deb

Still segment fault:

$ appimagelauncherd
Searching for existing AppImages
Searching directory: /home/fengyu/Applications
Found AppImage: /home/fengyu/Applications/qBittorrent-Enhanced-Edition.AppImage
AppImage is not integrated yet, integrating
Scheduling for (re-)integration: /home/fengyu/Applications/qBittorrent-Enhanced-Edition.AppImage
Found AppImage: /home/fengyu/Applications/cosbrowser.AppImage
AppImage is not integrated yet, integrating
Scheduling for (re-)integration: /home/fengyu/Applications/cosbrowser.AppImage
Executing deferred operations
Integrating: /home/fengyu/Applications/cosbrowser.AppImage
Integrating: /home/fengyu/Applications/qBittorrent-Enhanced-Edition.AppImage
Segmentation fault

GDB output:

$ gdb appimagelauncherd
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from appimagelauncherd...done.
(gdb) r
Starting program: /usr/bin/appimagelauncherd 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Searching for existing AppImages
Searching directory: /home/fengyu/Applications
Found AppImage: /home/fengyu/Applications/qBittorrent-Enhanced-Edition.AppImage
AppImage is not integrated yet, integrating
Scheduling for (re-)integration: /home/fengyu/Applications/qBittorrent-Enhanced-Edition.AppImage
Found AppImage: /home/fengyu/Applications/cosbrowser.AppImage
AppImage is not integrated yet, integrating
Scheduling for (re-)integration: /home/fengyu/Applications/cosbrowser.AppImage
Executing deferred operations
[New Thread 0x7fffe816d700 (LWP 17324)]
[New Thread 0x7fffe796c700 (LWP 17325)]
Integrating: /home/fengyu/Applications/qBittorrent-Enhanced-Edition.AppImage
Integrating: /home/fengyu/Applications/cosbrowser.AppImage

Thread 3 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe796c700 (LWP 17325)]
0x00007ffff6a85a26 in sqfs_block_dispose () from /usr/bin/../lib/x86_64-linux-gnu/appimagelauncher/libappimage.so.1.0
(gdb) 

abcfy2 avatar Nov 14 '19 11:11 abcfy2

Does this specific AppImage cause a segfault on other systems? Or is it just you assuming the issue is limited to Deepin 15?

TheAssassin avatar Nov 14 '19 11:11 TheAssassin

Ubuntu 16.04 is working, but Debian 9 is not.

abcfy2 avatar Nov 14 '19 11:11 abcfy2

I try to install deb on Debian 9.

# Use vagrant to boot up a Debian 9 VM
vagrant init debian/stretch64
vagrant up
# Download from release page
wget https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.0.3/appimagelauncher_2.0.3-travis888.4f7bc8e.xenial_amd64.deb

sudo apt install -y ./appimagelauncher_2.0.3-travis888.4f7bc8e.xenial_amd64.deb
cd ~/Applications

$ appimagelauncherd
Searching for existing AppImages
Searching directory: /home/vagrant/Applications
Found AppImage: /home/vagrant/Applications/qBittorrent-Enhanced-Edition.AppImage
AppImage is not integrated yet, integrating
Scheduling for (re-)integration: /home/vagrant/Applications/qBittorrent-Enhanced-Edition.AppImage
Executing deferred operations
Integrating: /home/vagrant/Applications/qBittorrent-Enhanced-Edition.AppImage
Segmentation fault

abcfy2 avatar Nov 14 '19 11:11 abcfy2

And also, I try to build deb package on Debian 9, still not working.

abcfy2 avatar Nov 14 '19 12:11 abcfy2

Can you please provide a link to your AppImage?

TheAssassin avatar Nov 26 '19 18:11 TheAssassin

Sure. https://github.com/abcfy2/qBittorrent-Enhanced-Edition/releases/download/v4.1.9.3/qBittorrent-Enhanced-Edition.AppImage

And the AppImage build script can be found in .travis.yml: https://github.com/abcfy2/qBittorrent-Enhanced-Edition/blob/v4_1_x/.travis.yml

abcfy2 avatar Nov 27 '19 08:11 abcfy2

fwiw, this AppImage on Deepin Linux is working fine with appimaged from https://github.com/probonopd/go-appimage/releases/tag/continuous.

probonopd avatar Nov 29 '19 20:11 probonopd

Yeah, appimaged is working, but appimagelauncher is not.

abcfy2 avatar Nov 30 '19 00:11 abcfy2