Bug 55222

Summary: Test apps crash silently (without invoking post-mortem debugger) when launched from Cygwin 1.7
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, sfalken
Priority: P2 Keywords: PlatformOnly
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Bug Depends on:    
Bug Blocks: 44135    
Attachments:
Description Flags
Work around Cygwin's crash-suppression behavior
none
Work around Cygwin's crash-suppression behavior darin: review+

Description Adam Roben (:aroben) 2011-02-25 08:57:39 PST
To reproduce:

1. Add a CRASH() call to main() in DumpRenderTree.cpp
2. run-webkit-tests

DRT crashes, but the post-mortem debugger doesn't get a chance to attach. It just crashes silently.
Comment 1 Adam Roben (:aroben) 2011-02-25 08:57:53 PST
It looks like Cygwin calls ::SetErrorMode(SEM_FAILCRITICALERRORS), which causes this behavior. We can work around it by calling ::SetErrorMode(0) when DRT launches.
Comment 2 Adam Roben (:aroben) 2011-02-25 09:05:43 PST
Created attachment 83820 [details]
Work around Cygwin's crash-suppression behavior
Comment 3 Adam Roben (:aroben) 2011-02-25 09:13:37 PST
Created attachment 83821 [details]
Work around Cygwin's crash-suppression behavior
Comment 4 Adam Roben (:aroben) 2011-02-25 10:48:57 PST
Committed r79695: <http://trac.webkit.org/changeset/79695>
Comment 5 Build Bot 2011-02-25 10:55:06 PST
Attachment 83820 [details] did not build on win:
Build output: http://queues.webkit.org/results/8044349