<div dir="ltr"><div class="im"><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">Hi. Webkitten.</span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)"><br>
</span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">I've been working on LayoutTests, and I found out that WebKitTestRunner sometimes crashes.</span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)"><br></span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">For example, at master branch, "Tools/Scripts/new-run-webkit-tests -2 --gtk dom" almost always pass all the test cases. However, sometimes it crashes like below.</span></font></div>
<div><span style="font-size:14px;color:rgb(0,0,0);font-family:arial,sans-serif">====================================================================</span><br></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">[79/2658] dom/html/level2/html/AppletsCollection.html failed unexpectedly (WebKitTestRunner crashed [pid=31224])</span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)"> </span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">2657 tests ran as expected, 1 didn't:</span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">====================================================================</span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)"><br></span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">However, "Tools/Scripts/new-run-webkit-tests -2 --gtk dom/html/level2/html/AppletsCollection.html" has never been failed. The test case is not flaky.</span></font></div>
<div style><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">Even if I remove above test case, I always see another test case crashing when running </span></font><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px">"Tools/Scripts/new-run-webkit-tests -2 --gtk dom".</span></div>
<div style><font color="#000000" face="arial, sans-serif"><span style="font-size:14px">This situation is not restricted to dom test cases. When running new-run-webkit-tests in a collection (more than 1000 test cases), you can reproduce this situation.</span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)"><br></span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">To debug, I set my environment like below.</span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">====================================================================</span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">Crash log for WebKitTestRunner (pid 3347):</span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)"><br></span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">Coredump core-pid_3347-_-process_WebKitTestRunner not found. To enable crash logs:</span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)"><br></span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">- run this command as super-user: echo "/home/jourmoon/Coredumps/core-pid_%p-_-process_%e" > /proc/sys/kernel/core_pattern</span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">- enable core dumps: ulimit -c unlimited</span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">- set the WEBKIT_CORE_DUMPS_DIRECTORY environment variable: export WEBKIT_CORE_DUMPS_DIRECTORY=/home/jourmoon/Coredumps</span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)"><br></span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)"><br>
</span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">STDERR: <empty></span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">====================================================================</span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)"><br></span></font></div><div style><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">With this environment, i</span></font><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14px">f WebKitWebProcess is crashed, coredump of WebKitWebProcess is created. However, c</span><span style="font-size:14px;color:rgb(0,0,0);font-family:arial,sans-serif">oredump of WebKitTestRunner is not created when it crashes.</span></div>
<div style><br></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">So, my questions are :</span></font></div><div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">1. Why does the test framework sometimes crashes?</span></font></div>
<div><font face="arial, sans-serif" color="#000000"><span style="font-size:14px;background-color:rgb(255,255,255)">2. How can I get coredump of WebKitTestRunner?</span></font></div></div></div>