<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Segmentation fault in ppc64le platform"
href="https://bugs.webkit.org/show_bug.cgi?id=160298">160298</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Segmentation fault in ppc64le platform
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Local Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>JavaScriptCore
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ayappanec@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>I am locally building and running phantomjs 2.1.1 in ppc64le platform. While executing a particular script, it crashes with segmentation fault error.
Below is the gdb output and backtrace
(gdb) run /opt/kibana/report/report.js <a href="http://127.0.0.1:8080/app/kibana#/report/print/Apache_logs">http://127.0.0.1:8080/app/kibana#/report/print/Apache_logs</a> /tmp/Apache_logs.pdf testadmin admin admin 60
Starting program: /home/u0017819/phantomjs /opt/kibana/report/report.js <a href="http://127.0.0.1:8080/app/kibana#/report/print/Apache_logs">http://127.0.0.1:8080/app/kibana#/report/print/Apache_logs</a> /tmp/Apache_logs.pdf testadmin admin admin 60
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/powerpc64le-linux-gnu/libthread_db.so.1".
[New Thread 0x3fffb765f170 (LWP 5525)]
[New Thread 0x3fffb6e5f170 (LWP 5526)]
ASSERTION FAILED: isPageAligned(size)
../WTF/wtf/PageReservation.h(81) : void WTF::PageReservation::commit(void*, size_t)
1 0x12c267dc /home/u0017819/phantomjs() [0x12c267dc]
2 0x12942268 /home/u0017819/phantomjs() [0x12942268]
3 0x1293c078 /home/u0017819/phantomjs() [0x1293c078]
4 0x12939fb8 /home/u0017819/phantomjs() [0x12939fb8]
5 0x12a47fd4 /home/u0017819/phantomjs() [0x12a47fd4]
6 0x1068918c /home/u0017819/phantomjs() [0x1068918c]
7 0x106899b0 /home/u0017819/phantomjs() [0x106899b0]
8 0x10671c3c /home/u0017819/phantomjs() [0x10671c3c]
9 0x1063ccf4 /home/u0017819/phantomjs() [0x1063ccf4]
10 0x100bb264 /home/u0017819/phantomjs() [0x100bb264]
11 0x10052a88 /home/u0017819/phantomjs() [0x10052a88]
12 0x10052d9c /home/u0017819/phantomjs() [0x10052d9c]
13 0x100ad0e0 /home/u0017819/phantomjs() [0x100ad0e0]
14 0x137eb290 /home/u0017819/phantomjs() [0x137eb290]
15 0x137ea858 /home/u0017819/phantomjs() [0x137ea858]
16 0x100b921c /home/u0017819/phantomjs() [0x100b921c]
17 0x10612904 /home/u0017819/phantomjs() [0x10612904]
18 0x10937860 /home/u0017819/phantomjs() [0x10937860]
19 0x106889f0 /home/u0017819/phantomjs() [0x106889f0]
20 0x10688efc /home/u0017819/phantomjs() [0x10688efc]
21 0x10688fb0 /home/u0017819/phantomjs() [0x10688fb0]
22 0x106899b0 /home/u0017819/phantomjs() [0x106899b0]
23 0x10671c3c /home/u0017819/phantomjs() [0x10671c3c]
24 0x1063ccf4 /home/u0017819/phantomjs() [0x1063ccf4]
25 0x100bb264 /home/u0017819/phantomjs() [0x100bb264]
26 0x100656a4 /home/u0017819/phantomjs() [0x100656a4]
27 0x1003b7ec /home/u0017819/phantomjs() [0x1003b7ec]
28 0x10063e3c /home/u0017819/phantomjs() [0x10063e3c]
29 0x10063ff8 /home/u0017819/phantomjs() [0x10063ff8]
30 0x3fffb7954d80 /lib/powerpc64le-linux-gnu/libc.so.6(+0x24d80) [0x3fffb7954d80]
31 0x3fffb7954f78 /lib/powerpc64le-linux-gnu/libc.so.6(__libc_start_main+0xc8) [0x3fffb7954f78]
Program received signal SIGSEGV, Segmentation fault.
0x0000000012c267f8 in WTFCrash ()
(gdb) where
#0 0x0000000012c267f8 in WTFCrash ()
#1 0x0000000012942268 in JSC::JSStack::growSlowCase(JSC::Register*) ()
#2 0x000000001293c078 in JSC::JSStack::pushFrame(JSC::ExecState*, JSC::CodeBlock*, JSC::JSScope*, int, JSC::JSObject*) ()
#3 0x0000000012939fb8 in JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::JSObject*) ()
#4 0x0000000012a47fd4 in JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, JSC::JSValue*) ()
#5 0x000000001068918c in WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&, WebCore::DOMWrapperWorld*) ()
#6 0x00000000106899b0 in WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode const&) ()
#7 0x0000000010671c3c in WebCore::ScriptController::executeScript(WebCore::ScriptSourceCode const&) ()
#8 0x000000001063ccf4 in QWebFrameAdapter::evaluateJavaScript(QString const&, QUrl const&) ()
#9 0x00000000100bb264 in QWebFrame::evaluateJavaScript(QString const&, QUrl const&) ()
#10 0x0000000010052a88 in injectCallbacksObjIntoFrame (frame=0x16fc4bf0, callbacksObject=0x16eac400) at webpage.cpp:1726
#11 0x0000000010052d9c in WebPage::setupFrame (this=0x16fd3650, frame=0x0) at webpage.cpp:1738
#12 0x00000000100ad0e0 in WebPage::qt_static_metacall (_o=0x16fd3650, _c=QMetaObject::InvokeMetaMethod, _id=68, _a=0x3fffffffe600) at moc_webpage.cpp:533
#13 0x00000000137eb290 in QMetaObject::activate (sender=0x16fc4bf0, signalOffset=3, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3713
#14 0x00000000137ea858 in QMetaObject::activate (sender=0x16fc4bf0, m=0x16c80a00 <QWebFrame::staticMetaObject>, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3578
#15 0x00000000100b921c in QWebFramePrivate::didClearWindowObject() ()
#16 0x0000000010612904 in WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld(WebCore::DOMWrapperWorld*) ()
#17 0x0000000010937860 in WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld(WebCore::DOMWrapperWorld*) ()
#18 0x00000000106889f0 in WebCore::ScriptController::initScript(WebCore::DOMWrapperWorld*) ()
#19 0x0000000010688efc in WebCore::ScriptController::windowShell(WebCore::DOMWrapperWorld*) ()
#20 0x0000000010688fb0 in WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&, WebCore::DOMWrapperWorld*) ()
#21 0x00000000106899b0 in WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode const&) ()
#22 0x0000000010671c3c in WebCore::ScriptController::executeScript(WebCore::ScriptSourceCode const&) ()
#23 0x000000001063ccf4 in QWebFrameAdapter::evaluateJavaScript(QString const&, QUrl const&) ()
#24 0x00000000100bb264 in QWebFrame::evaluateJavaScript(QString const&, QUrl const&) ()
#25 0x00000000100656a4 in Utils::injectJsInFrame (jsFilePath=..., jsFileLanguage=..., jsFileEnc=..., libraryPath=..., targetFrame=0x16fc4bf0, startingScript=true) at utils.cpp:135
#26 0x000000001003b7ec in Phantom::execute (this=0x16eaef60) at phantom.cpp:234
#27 0x0000000010063e3c in inner_main (argc=8, argv=0x3ffffffff418) at main.cpp:66
#28 0x0000000010063ff8 in main (argc=8, argv=0x3ffffffff418) at main.cpp:81</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>