NEW241927
Watchdog doesn't work as expected for some tail calls
https://bugs.webkit.org/show_bug.cgi?id=241927
Summary Watchdog doesn't work as expected for some tail calls
Yijia Huang
Reported 2022-06-23 12:50:10 PDT
Options "--watchdog=1000 --watchdog-exception-ok" suppose to let jsc terminate a hanging Javascript program with a time out 1000ms. However, the options fail on this example with a ToT build. ``` function foo(a) { 'use strict'; return foo(a, 0); } foo(1); ```
Attachments
Mark Lam
Comment 1 2022-06-23 14:50:06 PDT
Looks like global common subexpression elimination eliminated an InvalidationPoint. That's the reason the watchdog wasn't able to terminate the script.
Yijia Huang
Comment 2 2022-06-28 16:42:49 PDT
We added a --usePollingTraps=true option to stress test call-link-info-osrexit-repatch.js as a workaround. We should remove that once we fix this problem.
Radar WebKit Bug Importer
Comment 3 2022-06-30 12:51:12 PDT
Note You need to log in before you can comment on or make changes to this bug.