This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] Building plasma and qt5 with debug symbols

Tags: None
(comma "," separated)
User avatar
sparhawk
Registered Member
Posts
433
Karma
0
OS
I'm running Plasma 5 in Arch Linux, but it's crashing extremely frequently for me, perhaps once an hour, but up to once every ten minutes at times. It often seems fairly reproducible, e.g. when connecting another monitor, or resuming from suspend. I'd like to install the debug symbols so that I can troubleshoot further, but I'm having trouble doing it. I've asked at the Arch Linux forums, but unfortunately we couldn't get it working.

When plasma crashes, I'm told that I'm missing the debug symbols for the following:
Code: Select all
/usr/bin/plasmashell
/usr/lib/libQt5Widgets.so.5
/usr/lib/libQt5Core.so.5
/usr/lib/xorg/modules/dri/i965_dri.so
/usr/lib/libQt5Quick.so.5


These files are owned by the packages plasma-workspace, qt5-base, mesa and qt5-declarative. I've built plasma-workspace from source, and modified the PKGBUILD as per the Arch wiki, i.e.

Code: Select all
$ diff 5.3.2-2{,.orig}/PKGBUILD
29d28
< options=(debug !strip)
43c42
<     -DCMAKE_BUILD_TYPE=Debug \
---
>     -DCMAKE_BUILD_TYPE=Release \


However, when plasma crashes again, it still tells me that I'm missing the debug packages for `/usr/bin/plasmashell`.

Similarly, I built qt5 from source, which took several hours and the git version of `python2-ply`. I installed qt5-base and qt5-declarative, and restarted plasma with `kbuildsycoca5 ; kquitapp5 plasmashell ; plasmashell &`.

Code: Select all
$ diff 5.5.0-1{,.orig}/PKGBUILD
55d54
< options=(debug !strip)
91c90
<   PYTHON=/usr/bin/python2 ./configure -developer-build -no-warnings-are-errors -confirm-license -opensource \
---
>   PYTHON=/usr/bin/python2 ./configure -confirm-license -opensource \


With previous qt5 versions, the crash assistant still complained that I was missing the debug symbols, but it didn't complain when plasma crashed once just then. I'm still building mesa, and another crash suggests I need debug symbols for libkscreen too. However, I'm not sure how much to pursue these builds, until I can get plasma-workspace built okay. Am I missing something?

plasma-workspace 5.3.0-1 and 5.3.2-2
qt5 5.4.1-4 5.4.1-6 5.4.1-7 5.5.0-1

==UPDATE==
After also building mesa and libkscreen with debug symbols (i.e. `options=(debug !strip)`), the crash assistant no longer complains. I guess I needed *all* symbols and partial installation was confusing to the crash assistant.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]