AppImageCrafters / appimage-builder

GNU/Linux packaging solution using the AppImage format
MIT License
316 stars 58 forks source link

Produced AppImage crashes on certain distribs #303

Open RedPaladin opened 1 year ago

RedPaladin commented 1 year ago

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.