<?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>159919</bug_id>
          
          <creation_ts>2016-07-19 06:09:18 -0700</creation_ts>
          <short_desc>Not possible to GDB WebKitGtk+ 2.13.3: demangler-warning: unable to demangle</short_desc>
          <delta_ts>2016-09-17 08:11:00 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugzilla.redhat.com/show_bug.cgi?id=1377020</see_also>
    
    <see_also>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68159</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andres Gomez Garcia">agomez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>clopez</cc>
    
    <cc>fujii</cc>
    
    <cc>jfernandez</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1212337</commentid>
    <comment_count>0</comment_count>
    <who name="Andres Gomez Garcia">agomez</who>
    <bug_when>2016-07-19 06:09:18 -0700</bug_when>
    <thetext>I&apos;m using WebKitGtk+ with my own JHBuild setting:
https://github.com/tanty/jhbuild-epiphany/tree/master

Epiphany 3.20.3 and WebKit 2.13.3

I&apos;m running Epiphany with the dconf key:

&quot;process-model&quot; = &quot;shared-secondary-process&quot;

The compilation was done with CMake args:

&apos;-DPORT=GTK -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE=&quot;-O0 -g1 -DNDEBUG -DG_DISABLE_CAST_CHECKS&quot; -DCMAKE_CXX_FLAGS_RELEASE=&quot;-O0 -g1 -DNDEBUG -DG_DISABLE_CAST_CHECKS&quot;&apos;

When trying to attach with gdb to any of the running processes (epiphany, WebKitNetworkProcess or WebKitWebProcess), I get:

/build/gdb-7.10/gdb/cp-support.c:1595: demangler-warning: unable to demangle &apos;_ZSt7forwardIRZN6WebKit29NetworkConnectionToWebProcess26writeBlobsToTemporaryFilesERKN3WTF6VectorINS2_6StringELm0ENS2_15CrashOnOverflowELm16EEEmEUlRT_E_EOS9_RNSt16remove_referenceIS9_E4typeE&apos; (demangler failed with signal 11)

And the only option is to exit the debugging session.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1212338</commentid>
    <comment_count>1</comment_count>
    <who name="Andres Gomez Garcia">agomez</who>
    <bug_when>2016-07-19 06:11:10 -0700</bug_when>
    <thetext>Compilation and gdb done in current Debian Testing:

$ gdb --version
GNU gdb (Debian 7.10-1.1) 7.10

$ gcc --version
gcc (Debian 5.4.0-4) 5.4.0 20160609</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1212346</commentid>
    <comment_count>2</comment_count>
    <who name="Andres Gomez Garcia">agomez</who>
    <bug_when>2016-07-19 06:20:05 -0700</bug_when>
    <thetext>As a workaround in the meanwhile, it is possible to add:

set demangle-style none

Into ~/.gdbinit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1212348</commentid>
    <comment_count>3</comment_count>
    <who name="Andres Gomez Garcia">agomez</who>
    <bug_when>2016-07-19 06:25:13 -0700</bug_when>
    <thetext>Reproducible also with:

$ gdb --version
GNU gdb (Debian 7.11.1-2) 7.11.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1212865</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-07-20 13:43:38 -0700</bug_when>
    <thetext>This is really annoying, but it&apos;s clearly a toolchain bug, not a WebKit issue. It&apos;s been reported with several different versions of gcc, so we can safely say it&apos;s a gdb issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1213068</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2016-07-21 00:11:15 -0700</bug_when>
    <thetext>Possibly related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68383</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1215101</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-07-27 17:16:07 -0700</bug_when>
    <thetext>I think the issue is this one:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61321

I&apos;m able to reproduce the issue with this test case that comes from &lt;https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68159#c4&gt;:

$ echo &apos;void _ZSt7forwardIRKZN5Write14DataMapGrammarISt20back_insert_iteratorISsEEC4EvEUlRT_E_EOS5_RNSt16remove_referenceIS5_E4typeE() {} int main() {}&apos; | gcc -xc - -o /tmp/a.out &amp;&amp; gdb /tmp/a.out

[...]
Reading symbols from /tmp/a.out.../build/gdb-GtCqbH/gdb-7.11.1/gdb/cp-support.c:1595: demangler-warning: unable to demangle &apos;_ZSt7forwardIRKZN5Write14DataMapGrammarISt20back_insert_iteratorISsEEC4EvEUlRT_E_EOS5_RNSt16remove_referenceIS5_E4typeE&apos; (demangler failed with signal 11)
Unable to dump core, use `ulimit -c unlimited&apos; before executing GDB next time.
/build/gdb-GtCqbH/gdb-7.11.1/gdb/cp-support.c:1608: demangler-warning: unable to demangle &apos;_ZSt7forwardIRKZN5Write14DataMapGrammarISt20back_insert_iteratorISsEEC4EvEUlRT_E_EOS5_RNSt16remove_referenceIS5_E4typeE&apos; (demangler failed with signal 11)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1215659</commentid>
    <comment_count>7</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-07-29 12:34:13 -0700</bug_when>
    <thetext>The bug is definitive this one: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68159 and is still present in last GDB git master.

I tried using lldb (LLVM debugger) and its also crashing (segfaults)...


So... at least on my environment I&apos;m complete unable to use a debugger on current trunk of WebKit with Debug builds.


Is anybody here able to work with gdb/llvdb and debug builds?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1216222</commentid>
    <comment_count>8</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-08-01 12:40:17 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; The bug is definitive this one:
&gt; https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68159 and is still present in
&gt; last GDB git master.
&gt; 
&gt; I tried using lldb (LLVM debugger) and its also crashing (segfaults)...
&gt; 
&gt; 
&gt; So... at least on my environment I&apos;m complete unable to use a debugger on
&gt; current trunk of WebKit with Debug builds.
&gt; 
&gt; 
&gt; Is anybody here able to work with gdb/llvdb and debug builds?

BTW, adrian perez pointed me to this very helpful trick:

 * Put in your ~/.gdbinit file:
set demangle-style none
 * Then pipe the output of GDB through c++filt (a stand-alone demangler).

It works for me.

I see that the WebKit tooling for generating GDB crash logs is already piping the output through c++filt. So I&apos;m going to just set this line on the GTK+ bots ~/.gdbinit files.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>