-
-
Notifications
You must be signed in to change notification settings - Fork 109
Running apps with GDB segfaults #1365
Comments
Just found out, if |
It is not a segfault (SIGSEGV), but illegal instruction (SIGILL), which libssl handles internally and is expected. You need to tell gdb to ignore SIGILL, or just continue with the debug packages installed. There's nothing special to be done here. |
Well I missed some info when gathering the logs. But without |
@dobey I just updated the description. Could you please reopen? |
What is actually crashing? Is it the app running under gdb, or is it gdb itself? Because this really doesn't make sense, and if it is an issue, it seems like a problem in ld and should be reported against Ubuntu. Can the same issue be reproduced on x86 for example when not installing Also, if the problem is fixed by installing On the subject of But I guess either way, I think this is an issue that should be pushed upstream, as I don't think UBports should get sucked into maintaining forks of |
GDB also segfaults with other commands like I cannot reproduce the issue on my Ubuntu 19.10 machine. Should I set up a VM with 16.04 to test whether gdb crashes for any command? I doubt it. I could live with having |
No, I would not recommend having As for where the bug should be reported, it seems like https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1325503 might already cover the issue here. The issue isn't exactly the same, but it is probably very directly related. |
Thanks for the clarification. If I understand that bug report correctly, it is expected behavior for gdb to fail without debug symbols being installed. I just tried and tested to ship all shared object files from libc6-dbg with the click package of the app (only those with matching arch triplet of course). It does not change anything about the segfault when starting this app via gdb though. Do you know what those |
I don't think that's true. It will run the app, and any stack traces will just be mostly useless.
You shouldn't actually distribute these in a click package. I don't know what those specific files are for, no. However, in order for gdb to find the symbols installed into a different path, you'll need to do |
Thanks for your help. I finally made the Clickable feature that does not need to use apt on the device, nor distribute anything with the click package. |
Steps to reproduce
adb shell
)Expected behavior
The app starts.
Actual behavior
There is a segfault before the app starts with
Backtrace:
after installing
libc6-dbg
(andlibssl1.0.0-dbg
to get more informative output), there is just a (recoverable)SIGILL
:Logfiles and additional information
/opt/click.ubuntu.com/webber.timsueberkrueb/0.5.1/lib/arm-linux-gnueabihf/bin/webber --desktop_file_hint=/home/phablet/.cache/ubuntu-app-launch/desktop/webber.timsueberkrueb_webber_0.5.1.desktop
The text was updated successfully, but these errors were encountered: