Bug 43058 - Would like a way to make the web process crash at random times for testing purposes
Summary: Would like a way to make the web process crash at random times for testing pu...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-07-27 10:40 PDT by Adam Roben (:aroben)
Modified: 2010-09-08 14:28 PDT (History)
3 users (show)

See Also:


Attachments
Add a way to cause the web process to crash at a random time (2.84 KB, patch)
2010-09-08 13:59 PDT, 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) 2010-07-27 10:40:07 PDT
It would be useful to be able to put the web process into a mode where it would crash at a random time. This could help us find cases where the UI process doesn't handle a web process crash correctly, such as bug 43049.
Comment 1 Adam Roben (:aroben) 2010-07-27 10:40:36 PDT
<rdar://problem/8240150>
Comment 2 Adam Barth 2010-07-27 11:45:00 PDT
In Chrome, we use the about:crash URL to trigger these conditions.  That has the nice property that it's not accessible from web content.
Comment 3 Adam Roben (:aroben) 2010-09-08 13:59:20 PDT
Created attachment 66937 [details]
Add a way to cause the web process to crash at a random time
Comment 4 Darin Adler 2010-09-08 14:03:26 PDT
Comment on attachment 66937 [details]
Add a way to cause the web process to crash at a random time

It seems to me that a reproducible pseudo-random sequence is better than a higher quality random number for this purpose.
Comment 5 Adam Roben (:aroben) 2010-09-08 14:25:29 PDT
(In reply to comment #4)
> (From update of attachment 66937 [details])
> It seems to me that a reproducible pseudo-random sequence is better than a higher quality random number for this purpose.

I filed bug 45414 about this.
Comment 6 Adam Roben (:aroben) 2010-09-08 14:28:00 PDT
Committed r67016: <http://trac.webkit.org/changeset/67016>