<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - A odd crash"
href="https://bugs.webkit.org/show_bug.cgi?id=143859#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - A odd crash"
href="https://bugs.webkit.org/show_bug.cgi?id=143859">bug 143859</a>
from <span class="vcard"><a class="email" href="mailto:xinchao.peng@samsung.com" title="Peng Xinchao <xinchao.peng@samsung.com>"> <span class="fn">Peng Xinchao</span></a>
</span></b>
<pre>
After running these JS Source code for 20 minute , Webprocess will coredump :
<script>
setInterval(function() {
var d = new Date();
var time = d.getHours().addNulls() + ":" + d.getMinutes().addNulls();
var $osd = $('#osd');
$osd.show();
$osd.find(".channel_time").text(time);
setTimeout(function() {
$osd.hide();
}, 5000);
}, 10000);
Number.prototype.addNulls = function () {
if (this < 10) {
return "0" + this;
}
return this.toString();
}
</script>
I find two issue :
1: If disable DFG_JIT , the crash don't happen .
2. If "var time = d.getHours().addNulls() + ":" + d.getMinutes().addNulls();" is changed to "var time = d.getHours() + ":" + d.getMinutes();"
The crash don't happen
It looks like process happen crash when addNulls is called</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>