Bug 188654
Summary: | [WPE][GTK] No debug symbols when running 'webkit-flatpak --gtk --gdb' | ||
---|---|---|---|
Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | bugs-noreply, mcatanzaro, pnormand, tsaunier |
Priority: | P2 | ||
Version: | Other | ||
Hardware: | PC | ||
OS: | Linux | ||
Bug Depends on: | |||
Bug Blocks: | 191196 |
Michael Catanzaro
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Michael Catanzaro
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
I guess that controls what we build ourselves though, not the runtime. We need org.gnome.Sdk.Debug to be installed.
Michael Catanzaro
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
(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
Seems like all is solved now? I'll assume so and close. Please reopen if needed!