Bug 146620

Summary: Crash when closing the web inspector
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: Web InspectorAssignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, commit-queue, graouts, joepeck, jonowells, mattbaker, mcatanzaro, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=1239250
Attachments:
Description Flags
Patch none

Description Michael Catanzaro 2015-07-05 06:59:22 PDT
We have some rare crash when closing the web inspector:

Core was generated by `/usr/libexec/webkit2gtk-4.0/WebKitWebProcess 42'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  IPC::Connection::invalidate (this=0x0) at /usr/src/debug/webkitgtk-2.8.3/Source/WebKit2/Platform/IPC/Connection.cpp:345
345	    if (!isValid()) {

There's a full backtrace in the downstream bug; here is thread 1:

Thread 1 (Thread 0x7fc3b14e7a00 (LWP 13116)):
#0  IPC::Connection::invalidate (this=0x0) at /usr/src/debug/webkitgtk-2.8.3/Source/WebKit2/Platform/IPC/Connection.cpp:345
No locals.
#1  0x00007fc3af7cd901 in WebKit::WebInspectorUI::closeWindow (this=0x7fc38bff84d0) at /usr/src/debug/webkitgtk-2.8.3/Source/WebKit2/WebProcess/WebPage/WebInspectorUI.cpp:121
No locals.
#2  0x00007fc3afd66716 in WebCore::InspectorFrontendHost::closeWindow (this=0x7fc38be96480) at /usr/src/debug/webkitgtk-2.8.3/Source/WebCore/inspector/InspectorFrontendHost.cpp:166
No locals.
#3  0x00007fc3b073116a in WebCore::jsInspectorFrontendHostPrototypeFunctionCloseWindow (exec=<optimized out>) at /usr/src/debug/webkitgtk-2.8.3/x86_64-redhat-linux-gnu/DerivedSources/WebCore/JSInspectorFrontendHost.cpp:185
No locals.
#4  0x00007fc349fff0a8 in ?? ()
No symbol table info available.
#5  0x00007fffc3588860 in ?? ()
No symbol table info available.
#6  0x00007fc3aedf97fe in llint_entry () from /lib64/libjavascriptcoregtk-4.0.so.18
No symbol table info available.
Backtrace stopped: frame did not save the PC
Comment 1 Radar WebKit Bug Importer 2015-07-05 06:59:35 PDT
<rdar://problem/21676613>
Comment 2 Timothy Hatcher 2015-07-05 10:55:19 PDT
Created attachment 256181 [details]
Patch
Comment 3 WebKit Commit Bot 2015-07-05 13:37:12 PDT
Comment on attachment 256181 [details]
Patch

Clearing flags on attachment: 256181

Committed r186296: <http://trac.webkit.org/changeset/186296>
Comment 4 WebKit Commit Bot 2015-07-05 13:37:15 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Michael Catanzaro 2015-07-05 16:58:17 PDT
Thanks!