appimage-builder icon indicating copy to clipboard operation
appimage-builder copied to clipboard

Produced AppImage crashes on certain distribs

Open RedPaladin opened this issue 2 years ago • 0 comments

Hello,

I made an AppImage of really simple application in C++ that takes one string argument. This string is executed with the function system(). If I try my application using ./my_app ls to list the content of the current folder, the command failed with a segmentation fault on some distribution.

System used: Ubuntu 18

Steps to reproduce:

  1. Clone my repository: https://github.com/RedPaladin/appimage-builder-crash
  2. Download the latest continuous release: https://github.com/AppImageCrafters/appimage-builder/releases/download/Continuous/appimage-builder-1.1.1.dev32+g2709a3b-x86_64.AppImage and place it into the same folder
  3. Give the execution right to appimage-builder-1.1.1.dev32+g2709a3b-x86_64.AppImage and execute it.
  4. The test on docker image centos-7 failed

It seems the AppImage generated has some dependencies on the system where it has been built. I read that there is some exceptions where AppImage cannot be run on all distributions when we use very specific library dependant on the hardware. In my case, my app is really simple and I don't understand why it doesn't work.

RedPaladin avatar Mar 20 '23 13:03 RedPaladin