It's quite useful to be aware when overflows are occurring, but it's not always a programming error. With this change, we'll write to stderr on debug builds when an overflow occurs, but not crash.
Created attachment 139845 [details] Patch
Comment on attachment 139845 [details] Patch Hmm... I suspect many callers will be surprised by overflow. I wonder if we need to have these taken an Enum instead, which is AllowOverflow and ASSERT when we overflow and that enum is false (default). Then we could white-list the test cases we care about? I feel like these stderr logs will mostly just get lost.
I thought you planned to do the stdout version?
(In reply to comment #3) > I thought you planned to do the stdout version? Sorry, I did and landed it in our branch but forgot to upload it!
Created attachment 139903 [details] Patch
Comment on attachment 139903 [details] Patch OK. This seems like the best we've come up with so far. The big question remaining is what to do with the tests which now only fail in Debug mode. If any of those are ever *supposed* to trigger overflow, they'll now never be able to pass in both Debug/Release which is bad. If there exist such tests, then it seems we'll need to move this back to stderr.
(In reply to comment #6) > (From update of attachment 139903 [details]) > OK. This seems like the best we've come up with so far. The big question remaining is what to do with the tests which now only fail in Debug mode. If any of those are ever *supposed* to trigger overflow, they'll now never be able to pass in both Debug/Release which is bad. If there exist such tests, then it seems we'll need to move this back to stderr. Agreed. The majority of tests that trigger this is the result of bug 68744, which is incorrect behavior.
Comment on attachment 139903 [details] Patch Attachment 139903 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/12613082
Going back to stderr after talking with eseidel on irc.
Created attachment 139919 [details] Patch
Comment on attachment 139919 [details] Patch Thanks.
Comment on attachment 139919 [details] Patch Clearing flags on attachment: 139919 Committed r115928: <http://trac.webkit.org/changeset/115928>
All reviewed patches have been landed. Closing bug.