<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>188654</bug_id>
          
          <creation_ts>2018-08-16 08:18:46 -0700</creation_ts>
          <short_desc>[WPE][GTK] No debug symbols when running &apos;webkit-flatpak --gtk --gdb&apos;</short_desc>
          <delta_ts>2020-03-18 03:16:38 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>191196</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
    
    <cc>tsaunier</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1450682</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-08-16 08:18:46 -0700</bug_when>
    <thetext>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&apos;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&apos;.
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&apos;s really great that we have the --gdb and -m functionality built-in, but there&apos;s no debuginfo so I don&apos;t understand how to use it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1450700</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-08-16 08:57:43 -0700</bug_when>
    <thetext>Just found this in org.webkit.WebKit.yaml:

build-options:
  cflags: -O2 -g
  cxxflags: -O2 -g
  strip: false
  no-debuginfo: true

I don&apos;t know why we&apos;re using no-debuginfo: true, but that seems pretty unfriendly for a runtime that&apos;s exclusively intended as a developer tool. Thibault, can we change that, or is there an important reason for it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1450702</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-08-16 08:58:23 -0700</bug_when>
    <thetext>I guess that controls what we build ourselves though, not the runtime. We need org.gnome.Sdk.Debug to be installed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1450715</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-08-16 09:56:14 -0700</bug_when>
    <thetext>I&apos;m running &apos;update-webkitgtk-flatpak&apos; right now and it is installing debuginfo. Perhaps I hadn&apos;t set debug configuration last time I ran it? Not sure. We&apos;ll see what happens....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1450722</commentid>
    <comment_count>4</comment_count>
    <who name="Thibault Saunier">tsaunier</who>
    <bug_when>2018-08-16 10:03:42 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #3)
&gt; I&apos;m running &apos;update-webkitgtk-flatpak&apos; right now and it is installing
&gt; debuginfo. Perhaps I hadn&apos;t set debug configuration last time I ran it? Not
&gt; sure. We&apos;ll see what happens....

Right, Sdk.Debug is installed only when `--debug` is passed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1631075</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-03-18 03:16:38 -0700</bug_when>
    <thetext>Seems like all is solved now? I&apos;ll assume so and close. Please reopen if needed!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>