<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] [2.14.0] _cairo_surface_has_snapshots (surface)' failed"
   href="https://bugs.webkit.org/show_bug.cgi?id=162497#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] [2.14.0] _cairo_surface_has_snapshots (surface)' failed"
   href="https://bugs.webkit.org/show_bug.cgi?id=162497">bug 162497</a>
              from <span class="vcard"><a class="email" href="mailto:john.frankish&#64;outlook.com" title="john.frankish&#64;outlook.com">john.frankish&#64;outlook.com</a>
</span></b>
        <pre>I double-checked and found that with &quot;bt full&quot; I got this:

(gdb) bt full
#0  0x00007fffeae1fbb4 in raise () from /lib/libc.so.6
No symbol table info available.

I usually compile with &quot;-g&quot; removed and -flto, but if I leave &quot;-g&quot; in place and compile webkitgtk with &quot;-DCMAKE_BUILD_TYPE=RelWithDebInfo&quot;, it fails with this the error below (see also CMakeError.log attached)

If I remove &quot;-g&quot; then webkitgtk compiles with &quot;-DCMAKE_BUILD_TYPE=RelWithDebInfo&quot; without problems, but I guess I need &quot;-g&quot; to get the symbol table info.

----------

cmake -DCMAKE_C_FLAGS=&quot;-mtune=generic -Os -pipe&quot; -DCMAKE_CXX_FLAGS=&quot;-mtune=generic -Os -pipe&quot; -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_LIBDIR=/usr/local/lib -DCMAKE_INSTALL_LIBEXECDIR=/usr/local/lib -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_SKIP_RPATH=ON -DENABLE_ACCELERATED_2D_CANVAS=OFF -DUSE_LD_GOLD=OFF -DENABLE_MINIBROWSER=ON -DUSE_LIBHYPHEN=OFF -DPORT=GTK -DUSE_SYSTEM_MALLOC=ON -DENABLE_GLES2=ON -Wno-dev ../

find . -name CMakeCache.txt -type f -exec sed -i 's/-O2//g' {} \;
find . -name CMakeCache.txt -type f -exec sed -i 's/-O3//g' {} \;

time make CC=&quot;gcc -flto -fuse-linker-plugin&quot; CXX=&quot;g++ -flto -fuse-linker-plugin&quot; -j5
...
collect2: error: ld returned 1 exit status
make[2]: *** [Source/WebKit2/CMakeFiles/WebKit2.dir/build.make:19447: lib/libwebkit2gtk-4.0.so.37.14.9] Error 1
make[2]: Leaving directory '/usr/src/webkitgtk-2.14.2/build'
make[1]: *** [CMakeFiles/Makefile2:1460: Source/WebKit2/CMakeFiles/WebKit2.dir/all] Error 2
make[1]: Leaving directory '/usr/src/webkitgtk-2.14.2/build'
make: *** [Makefile:150: all] Error 2
Command exited with non-zero status 2</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>