Bug 55222 - Test apps crash silently (without invoking post-mortem debugger) when launched from Cygwin 1.7
Summary: Test apps crash silently (without invoking post-mortem debugger) when launche...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords: PlatformOnly
Depends on:
Blocks: 44135
  Show dependency treegraph
 
Reported: 2011-02-25 08:57 PST by Adam Roben (:aroben)
Modified: 2011-02-25 10:55 PST (History)
2 users (show)

See Also:


Attachments
Work around Cygwin's crash-suppression behavior (7.35 KB, patch)
2011-02-25 09:05 PST, Adam Roben (:aroben)
no flags Details | Formatted Diff | Diff
Work around Cygwin's crash-suppression behavior (8.82 KB, patch)
2011-02-25 09:13 PST, Adam Roben (:aroben)
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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