linuxdeployqt icon indicating copy to clipboard operation
linuxdeployqt copied to clipboard

Breakpad and linuxdeployqt

Open ymiroshnyk opened this issue 5 years ago • 3 comments

Hi,

I try to use Breakpad to catch crashes in application bundled with linuxdeployqt. The idea is to build release binary with debugging symbols, save symbols, strip them from executable file and deploy to the user. If crash happens, Breakpad saves call stack and send a crash report to developer. Afterwards developer can use saved debugging symbols and crash report to find out human readable call stack to analyse the crash.

I found that after linuxdeployqt ran on executable, it apparently changed the file and debugging symbols become invalid and in most of cases I see wrong crash call stack. Can you confirm, that I can't rely on debugging symbols after linuxdeployqt? And if so, is it possible somehow to have correct debugging symbols after executable modified?

Thanks.

ymiroshnyk avatar Jun 20 '19 13:06 ymiroshnyk

I don't know enough about how debugging symbols work but I can confirm that linuxdeployqt uses patchelf to rewrite rpaths in executables and libraries.

probonopd avatar Jun 20 '19 14:06 probonopd

I opened a thread at patchelf forum regarding this.

ymiroshnyk avatar Jun 20 '19 15:06 ymiroshnyk

A workaround would be to set the RPATH when building the application to match ../lib, and don't use patchelf on your binary (is that possible in linuxdeployqt?).

I have experience with breakpad and older patchelf, used to work fine.

rodlie avatar Sep 28 '19 17:09 rodlie