[webkit-help] Seg fault in webkit_print_operation_print with offscreen window.

Gabe Rives-Corbett gabe at untapt.com
Thu Jan 19 06:41:25 PST 2017

Hi All,

I’m getting a segfault with this code: http://pastebin.com/FJVxAEpp <http://pastebin.com/FJVxAEpp>

Here’s what’s being reported in from valgrind, I can’t figure out why the frameID read would be bad:

==4466== Thread 1:
==4466== Invalid read of size 8
==4466==    at 0x77D2194: WebKit::WebFrameProxy::frameID() const (WebFrameProxy.h:68)
==4466==    by 0x77FC48A: WebKit::WebPageProxy::drawPagesForPrinting(WebKit::WebFrameProxy*, WebKit::PrintInfo const&, WTF::PassRefPtr<WebKit::GenericCallback<API::Error*> >) (WebPageProxy.cpp:5873)
==4466==    by 0x7BD49B1: webkitPrintOperationPrintPagesForFrame(_WebKitPrintOperation*, WebKit::WebFrameProxy*, _GtkPrintSettings*, _GtkPageSetup*) (WebKitPrintOperation.cpp:280)
==4466==    by 0x7BD52D1: webkit_print_operation_print (WebKitPrintOperation.cpp:444)
==4466==    by 0x401D74: main (main.cpp:90)
==4466==  Address 0x68 is not stack'd, malloc'd or (recently) free’d

Any help would be appreciated, thanks!

Gabe Rives-Corbett
Engineering Lead, untapt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-help/attachments/20170119/d34974d9/attachment.html>

More information about the webkit-help mailing list