You are not logged in.
Pages: 1
I filed an kde bug,cause wayland doesn't work,so they said that I should get the backtrace.
I read the archwiki page,but I don't understand it.
I asked somewhere else and they said that I should find the package owner with pacman and get it through abs.
With "package owner",do they mean the executable?
And what is abs and how can I use it?
Can someone please give me an easy tutorial on how I can get the backtraces from a program?
Offline
Offline
Proper debuggable traces will require rebuilding of the libraries in question with debug symbols, in this case Qt and whatever KDE lib you are having issues with. Start by reading https://wiki.archlinux.org/title/Debugg … ing_traces in particular the Qt and KDE sections.
Last edited by V1del (2021-06-08 18:34:45)
Online
Proper debuggable traces will require rebuilding of the libraries in question with debug symbols, in this case Qt and whatever KDE lib you are having issues with. Start by reading https://wiki.archlinux.org/title/Debugg … ing_traces in particular the Qt and KDE sections.
When I do gdb /bin/plasmashell,then I just get:
Reading symbols from /bin/plasmashell...
(No debugging symbols found in /bin/plasmashell)
(gdb)
But when I know which symbols need rebuilding,should I then just install the pkgbuild from the repos?
And then how can I change "-DCMAKE_BUILD_TYPE" to "debugfull"?
Offline
You pick up the PKGBUILDs of relevance and then change their respective cmake lines to build in debug mode. We might be able to help you more specifically if you disclosed which issue you actually are talking about and what exactly you intend to debug.
Online
This is the bug I am talking about: https://bugs.kde.org/show_bug.cgi?id=437129
I want to debug plasmashell
Offline
git diff
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 7db6961..b0726b4 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -16,6 +16,7 @@ depends=(knotifyconfig ksystemstats ktexteditor libqalculate kde-cli-tools appst
plasma-integration kpeople kactivities-stats libkscreen kquickcharts kuserfeedback kio-extras kio-fuse)
makedepends=(extra-cmake-modules kdoctools gpsd baloo networkmanager-qt plasma-wayland-protocols kunitconversion kinit)
groups=(plasma)
+options=('debug' '!strip')
source=(https://download.kde.org/stable/plasma/$pkgver/$pkgbase-$pkgver.tar.xz{,.sig} kde.pam
https://invent.kde.org/plasma/plasma-workspace/commit/f90d4d55.patch)
sha256sums=('1ed41a30208d87f7586734fa0ee84eb308f5da57ea614ef537171eac8bbbb77c'
Was enough to produce plasma-workspace plasma-wayland-session packages with debug symbols. If you wanted separate debug packages you would replace '!strip' with 'strip'.
There may still be symbols without debug info supplied by other packages. You would need to check an updated backtrace after installing the rebuilt plasma-workspace and plasma-wayland-session.
Offline
git diff diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 7db6961..b0726b4 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -16,6 +16,7 @@ depends=(knotifyconfig ksystemstats ktexteditor libqalculate kde-cli-tools appst plasma-integration kpeople kactivities-stats libkscreen kquickcharts kuserfeedback kio-extras kio-fuse) makedepends=(extra-cmake-modules kdoctools gpsd baloo networkmanager-qt plasma-wayland-protocols kunitconversion kinit) groups=(plasma) +options=('debug' '!strip') source=(https://download.kde.org/stable/plasma/$pkgver/$pkgbase-$pkgver.tar.xz{,.sig} kde.pam https://invent.kde.org/plasma/plasma-workspace/commit/f90d4d55.patch) sha256sums=('1ed41a30208d87f7586734fa0ee84eb308f5da57ea614ef537171eac8bbbb77c'
Was enough to produce plasma-workspace plasma-wayland-session packages with debug symbols. If you wanted separate debug packages you would replace '!strip' with 'strip'.
There may still be symbols without debug info supplied by other packages. You would need to check an updated backtrace after installing the rebuilt plasma-workspace and plasma-wayland-session.
Thanks,but I need the backtrace of plasmashell.
I don't know how to do that myself,I never build programs myself,I only use pacman and aur helpers..
Offline
pacman -F /usr/bin/plasmashell
usr/bin/plasmashell is owned by extra/plasma-workspace 5.22.0-2
As plasmashell is supplied by the package plasma-workspace, that is the package you need to rebuild.
Offline
When I do "cmake -DCMAKE_BUILD_TYPE=debugfull /usr/bin/plasmashell",then I get "CMake Error: The source directory "/usr/bin/plasmashell" is a file, not a directory."
Offline
You do not call cmake directly. Getting_traces#Building_and_installing_the_package
This would be after you had made the required changes to the PKGBUILD, covered in the previous sections of the same wiki page.
Offline
When I do "makepkg /usr/bin/plasmashell",then I get "==> ERROR: PKGBUILD does not exist.",I don't get anything.
Offline
As plasmashell is supplied by the package plasma-workspace, that is the package you need to rebuild.
Offline
I don't need to get the backtrace anymore,the bug was fixed,but thanks.
Offline
Pages: 1