RESOLVED FIXED 188654
[WPE][GTK] No debug symbols when running 'webkit-flatpak --gtk --gdb'
https://bugs.webkit.org/show_bug.cgi?id=188654
Summary [WPE][GTK] No debug symbols when running 'webkit-flatpak --gtk --gdb'
Michael Catanzaro
Reported 2018-08-16 08:18:46 PDT
I noticed that the web process crashes immediately when visiting youtube.com. I want to report a bug. Since I built webkit using update-webkitgtk-flatpak and then build-webkit, I can't use the normal system coredumpctl to get a backtrace: I have to go through webkit-flatpak. I try this: $ webkit-flatpak --gtk -m 19974 --gdb where 19974 is the pid of the crashing web process. It (unexpectedly?) fetches a bunch of git repos, then opens up gdb: Core was generated by `/home/mcatanzaro/Projects/WebKit/WebKitBuild/Debug/bin/WebKitWebProcess 5 37'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f4b2cf00629 in ?? () [Current thread is 1 (LWP 19974)] (gdb) bt #0 0x00007f4b2cf00629 in ?? () #1 0x00007ffc1d9d2290 in ?? () #2 0x00007f4b3a094b5e in ?? () #3 0x00007f4aa81a0788 in ?? () #4 0x00007f4aa81a0788 in ?? () #5 0x00007ffc1d9d22f0 in ?? () #6 0x00007f4b3a08266c in ?? () #7 0x0000000000000000 in ?? () It's really great that we have the --gdb and -m functionality built-in, but there's no debuginfo so I don't understand how to use it.
Attachments
Michael Catanzaro
Comment 1 2018-08-16 08:57:43 PDT
Just found this in org.webkit.WebKit.yaml: build-options: cflags: -O2 -g cxxflags: -O2 -g strip: false no-debuginfo: true I don't know why we're using no-debuginfo: true, but that seems pretty unfriendly for a runtime that's exclusively intended as a developer tool. Thibault, can we change that, or is there an important reason for it?
Michael Catanzaro
Comment 2 2018-08-16 08:58:23 PDT
I guess that controls what we build ourselves though, not the runtime. We need org.gnome.Sdk.Debug to be installed.
Michael Catanzaro
Comment 3 2018-08-16 09:56:14 PDT
I'm running 'update-webkitgtk-flatpak' right now and it is installing debuginfo. Perhaps I hadn't set debug configuration last time I ran it? Not sure. We'll see what happens....
Thibault Saunier
Comment 4 2018-08-16 10:03:42 PDT
(In reply to Michael Catanzaro from comment #3) > I'm running 'update-webkitgtk-flatpak' right now and it is installing > debuginfo. Perhaps I hadn't set debug configuration last time I ran it? Not > sure. We'll see what happens.... Right, Sdk.Debug is installed only when `--debug` is passed.
Philippe Normand
Comment 5 2020-03-18 03:16:38 PDT
Seems like all is solved now? I'll assume so and close. Please reopen if needed!
Note You need to log in before you can comment on or make changes to this bug.