Skip to content

Instantly share code, notes, and snippets.

@davglass
Created December 28, 2012 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davglass/4399116 to your computer and use it in GitHub Desktop.
Save davglass/4399116 to your computer and use it in GitHub Desktop.
PhantomJS 1.8.0 crasher
$phantomjs-1.7.0 ./repro.js
Page executed successfully
$ phantomjs-1.8.0 ./repro.js
PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://code.google.com/p/phantomjs/issues/entry with the crash dump file attached: /tmp/2f69ff41-1800-ac63-7c5f013f-25df8b39.dmp
Segmentation fault (core dumped)
<!doctype html>
<html>
<head>
</head>
<body>
<script>
var fixture = "yuiTestTest";
var id = 'temp1';
var div = document.createElement("div");
div.id = id;
div.innerHTML = "<iframe id='fixture2' name='yuiTestTest'></iframe>";
document.body.appendChild(div.firstChild);
document.body.removeChild(document.getElementById('fixture2'));
</script>
</body>
</html>
var page = require('webpage').create();
page.open('./page.html', function () {
console.log('Page executed successfully');
phantom.exit();
});
./minidump_stackwalk /tmp/2f69ff41-1800-ac63-7c5f013f-25df8b39.dmp . 2>/dev/null
Operating system: Linux
0.0.0 Linux 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 x86_64
CPU: amd64
family 6 model 30 stepping 5
4 CPUs
Crash reason: SIGSEGV
Crash address: 0x0
Thread 0 (crashed)
0 0x5006d3
rbx = 0x00007fff25149420 r12 = 0x00007fff25149490
r13 = 0x00000000033a9700 r14 = 0x0070007900742200
r15 = 0x00007fff25149440 rip = 0x00000000005006d3
rsp = 0x00007fff25149350 rbp = 0x0070007900742618
Found by: given as instruction pointer in context
Thread 1
0 libc-2.15.so + 0xbf83d
rbx = 0x00007fb0e2e75cf0 r12 = 0x00007fb0e4773880
r13 = 0x00007fb0e2e769c0 r14 = 0x0000000000000000
r15 = 0x0000000000000003 rip = 0x00007fb0e3c4e83d
rsp = 0x00007fb0e2e75c40 rbp = 0x00000000ffffffff
Found by: given as instruction pointer in context
1 libc-2.15.so + 0xbf6db
rip = 0x00007fb0e3c4e6dc rsp = 0x00007fb0e2e75c50
Found by: stack scanning
2 libc-2.15.so + 0x109f7
rip = 0x00007fb0e3b9f9f8 rsp = 0x00007fb0e2e75c70
Found by: stack scanning
3 ld-2.15.so + 0xa522
rip = 0x00007fb0e5277523 rsp = 0x00007fb0e2e75cc8
Found by: stack scanning
4 libpthread-2.15.so + 0xfcaf
rip = 0x00007fb0e4771cb0 rsp = 0x00007fb0e2e75ce8
Found by: stack scanning
5 ld-2.15.so + 0xe773
rip = 0x00007fb0e527b774 rsp = 0x00007fb0e2e75d80
Found by: stack scanning
6 libc-2.15.so + 0xe54f
rip = 0x00007fb0e3b9d550 rsp = 0x00007fb0e2e75d98
Found by: stack scanning
7 libpthread-2.15.so + 0x1187f
rip = 0x00007fb0e4773880 rsp = 0x00007fb0e2e75dc0
Found by: stack scanning
8 ld-2.15.so + 0x15234
rip = 0x00007fb0e5282235 rsp = 0x00007fb0e2e75dd0
Found by: stack scanning
9 libpthread-2.15.so + 0xe9f9
rip = 0x00007fb0e47709fa rsp = 0x00007fb0e2e75de0
Found by: stack scanning
10 libpthread-2.15.so + 0x1187f
rip = 0x00007fb0e4773880 rsp = 0x00007fb0e2e75e18
Found by: stack scanning
11 libc-2.15.so + 0x977f
rip = 0x00007fb0e3b98780 rsp = 0x00007fb0e2e75e28
Found by: stack scanning
12 ld-2.15.so + 0x15234
rip = 0x00007fb0e5282235 rsp = 0x00007fb0e2e75e60
Found by: stack scanning
13 libpthread-2.15.so + 0x1187f
rip = 0x00007fb0e4773880 rsp = 0x00007fb0e2e75e80
Found by: stack scanning
14 libpthread-2.15.so + 0x7e99
rip = 0x00007fb0e4769e9a rsp = 0x00007fb0e2e75eb0
Found by: stack scanning
15 libpthread-2.15.so + 0x1187f
rip = 0x00007fb0e4773880 rsp = 0x00007fb0e2e75f58
Found by: stack scanning
16 libc-2.15.so + 0xf3cbc
rip = 0x00007fb0e3c82cbd rsp = 0x00007fb0e2e75fc0
Found by: stack scanning
Thread 2
0 libc-2.15.so + 0xed023
rbx = 0x00007fb0dc000d30 r12 = 0x0000000000000000
r13 = 0x00007fb0dc000a98 r14 = 0x0000000000000008
r15 = 0x00007fb0dc000a98 rip = 0x00007fb0e3c7c023
rsp = 0x00007fb0e255cb90 rbp = 0x00007fb0dc000fc8
Found by: given as instruction pointer in context
1 librt-2.15.so + 0x415c
rip = 0x00007fb0e498315d rsp = 0x00007fb0e255cbb0
Found by: stack scanning
2 libpthread-2.15.so + 0x2d2f
rip = 0x00007fb0e4764d30 rsp = 0x00007fb0e255cbf8
Found by: stack scanning
3 librt-2.15.so + 0x415c
rip = 0x00007fb0e498315d rsp = 0x00007fb0e255cc70
Found by: stack scanning
Loaded modules:
0x7fb0e2e87000 - 0x7fb0e30d9fff libssl.so.0.9.8 ??? (main)
0x7fb0e30da000 - 0x7fb0e3463fff libcrypto.so.0.9.8 ???
0x7fb0e3474000 - 0x7fb0e347cfff 945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-3 ???
0x7fb0e347d000 - 0x7fb0e3748fff locale-archive ???
0x7fb0e374e000 - 0x7fb0e3977fff libexpat.so.1.5.2 ???
0x7fb0e3978000 - 0x7fb0e3b8efff libz.so.1.2.3.4 ???
0x7fb0e3b8f000 - 0x7fb0e3f48fff libc-2.15.so ???
0x7fb0e3f4f000 - 0x7fb0e4164fff libgcc_s.so.1 ???
0x7fb0e4165000 - 0x7fb0e4460fff libm-2.15.so ???
0x7fb0e4461000 - 0x7fb0e474bfff libstdc++.so.6.0.16 ???
0x7fb0e4762000 - 0x7fb0e497afff libpthread-2.15.so ???
0x7fb0e497f000 - 0x7fb0e4b86fff librt-2.15.so ???
0x7fb0e4b87000 - 0x7fb0e4d8afff libdl-2.15.so ???
0x7fb0e4d8c000 - 0x7fb0e4fc1fff libfontconfig.so.1.4.4 ???
0x7fb0e4fc2000 - 0x7fb0e525dfff libfreetype.so.6.8.0 ???
0x7fb0e5262000 - 0x7fb0e526afff 6d41288fd70b0be22e8c3a91e032eec0-le64.cache-3 ???
0x7fb0e526d000 - 0x7fb0e528efff ld-2.15.so ???
0x7fff251ff000 - 0x7fff251fffff linux-gate.so ???
@oliverfernandez
Copy link

Any luck fixing this? I encountered a similar problem with iframes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment