Sometimes, verifyGC errors are intermittent and it takes many runs of the jsc shell to reproduce. A --hangOnVerifyGCError=true option will allow the shell to hang after it dumps its verifyGC error message instead of crashing. With this, we can now run 1000s of iterations of invoking the jsc shell to reproduce the error, and it will hang if it finds the error, thereby allowing us to attach lldb later to do some data inspection.
Created attachment 421283 [details] proposed patch.
<rdar://problem/74908610>
Comment on attachment 421283 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=421283&action=review > Source/JavaScriptCore/ChangeLog:12 > + Sometimes, verifyGC errors are intermittent and it takes many runs of the jsc > + shell to reproduce. A --hangOnVerifyGCError=true option will allow us to run > + an unlimited iterations of invoking the jsc shell to reproduce the error, and it > + will hang when it catches the error. We can then attach lldb later to do some > + data inspection to debug the error. Why not just run lldb in a loop?
(In reply to Saam Barati from comment #3) > Why not just run lldb in a loop? I didn't think this was possible. My mistake.