Bug 129758

Summary: REGRESSION: js/dom/create-lots-of-workers.html frequently crashes (sometimes in js/dom/cross-frame-bad-time.html)
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ddkilzer, fpizlo, ggaren, mhahnenberg, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar, Regression
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Alexey Proskuryakov 2014-03-05 14:44:38 PST
js/dom/create-lots-of-workers.html frequently crashes, spawning an extreme number of threads. This is sometimes reported for this tests, and sometimes for the next one, js/dom/cross-frame-bad-time.html.

There are only 100 workers, but >2000 threads: <http://build.webkit.org/results/Apple%20MountainLion%20Debug%20WK1%20(Tests)/r165119%20(13072)/js/dom/cross-frame-bad-time-crash-log.txt>.
Comment 1 Mark Hahnenberg 2014-03-05 15:30:39 PST
(In reply to comment #0)
> js/dom/create-lots-of-workers.html frequently crashes, spawning an extreme number of threads. This is sometimes reported for this tests, and sometimes for the next one, js/dom/cross-frame-bad-time.html.
> 
> There are only 100 workers, but >2000 threads: <http://build.webkit.org/results/Apple%20MountainLion%20Debug%20WK1%20(Tests)/r165119%20(13072)/js/dom/cross-frame-bad-time-crash-log.txt>.

I count at least 261 workers in the crash log, but you're right, this is a little crazy. We spawn ~6 GC threads and 1 block freeing thread per VM (along with the main worker thread).
Comment 2 Alexey Proskuryakov 2014-03-09 22:12:42 PDT
Skipped the test in <http://trac.webkit.org/r165360>, as it was making bots very red.

A fix would be appreciated, we don't have a lot of workers tests to skip.
Comment 3 Alexey Proskuryakov 2014-03-10 11:11:05 PDT
*** Bug 129962 has been marked as a duplicate of this bug. ***
Comment 4 David Kilzer (:ddkilzer) 2015-02-08 18:31:45 PST
<rdar://problem/19760988>
Comment 5 David Kilzer (:ddkilzer) 2015-02-08 19:39:08 PST
Skipped on ios-simulator:  <http://trac.webkit.org/changeset/179818>