[SailfishDevel] Debugging a segmentation fault

Martin Kampas martin.kampas at jolla.com
Mon Jan 23 10:22:23 UTC 2017

Hello Костадин,

gdb's "exec-wrapper" option should help you.


From: Devel [devel-bounces at lists.sailfishos.org] on behalf of Костадин Дамянов [maxmight at gmail.com]
Sent: Sunday, January 22, 2017 8:45 PM
To: devel at lists.sailfishos.org
Subject: [SailfishDevel] Debugging a segmentation fault


I am trying to build a project that is not developed in Sailfish IDE.
I managed to build in the SDK VM and deploy it on the emulator VM.

My problem is that the app segfaults on startup and I do not know how to debug the crash.
One way to launch it is by running

xdg-open /usr/shared/applications/harbour-<application>.desktop

It starts loading the application and it crashes at start so I have no time to attach gdb.
My question is: is there a way to start the app in such a way as to connect gdb.
Is it possible to connect gdb remotely?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20170123/013be134/attachment.html>

More information about the Devel mailing list