-
Notifications
You must be signed in to change notification settings - Fork 103
Description
The debugger immediately crashes on start without any error message or feedback in VS Code.
Expected Behavior
The debugger should start and run normally.
Current Behavior
The debugger crashes immediately.
Note if you run "bin/lua-debug" from the terminal you get the following error message:
./lua-debug: error while loading shared libraries: libbfd-2.38-system.so: cannot open shared object file: No such file or directory
Possible Solution
Creating a symlink to the version of libbfd shipped with Ubuntu 24.04 is a good workaround for now:
sudo ln -s /lib/x86_64-linux-gnu/libbfd-2.42-system.so /lib/x86_64-linux-gnu/libbfd-2.38-system.so
Steps to Reproduce
- Run -> Start Debugging
Context (Environment)
platform: Ubuntu 24.04
lua-debug: v2.1.3
vs-code: Version: 1.106.3 - Linux x64 6.14.0-36-generic snap
Detailed Description
The debugger fails to start properly because it is linked against an older version libbfd which is not present on Ubuntu 24.04.
Note this linkage problem appears to be the root cause of ISSUE #298.
Possible Implementation
Updating ".github/build.yml" to run on "ubuntu-24.04" instead of "ubuntu-22.04" should fix the issue for anyone using Ubuntu 24.04.
However users running other Linux distributions (i.e. Fedora, Arch) still won't be able to run lua-debug without crashing due to the missing "libbfd-2.38-system.so" library (see ISSUE #298 ).
So I recommend updating the luamake build process to use static linkage for libbfd and libunwind as I have done in this test branch. My initial testing (on Linux Fedora 42) has been successful but I want to do more testing before submitting a PR.