Skip to content

Instantly share code, notes, and snippets.

@muddydixon
Last active December 18, 2015 17:58
Show Gist options
  • Save muddydixon/5821898 to your computer and use it in GitHub Desktop.
Save muddydixon/5821898 to your computer and use it in GitHub Desktop.
This html crashes phantomjs. A html that the `select` containing `option` elements also crashes phantomjs. However a html in which span is above select does not crash phantomjs.
phantom = require 'node-phantom'
fs = require 'fs'
html = fs.readFileSync 'sample.html', 'utf8'
phantom.create (err, ph)->
ph.createPage (err, page)->
page.set 'content', html
<html>
<body>
<select>
</select>
<span style="background-image: url(http://phantomjs.org/images/phantomjs-logo.png);">crash</span>
</body>
</html>
% coffee src/phantom-crash.coffee
phantom stderr: 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://github.com/ariya/phantomjs/issues/new with the crash dump file attached: /tmp/01B44789-0011-4648-8997-36AC38C80BE0.dmp
phantom crash: code 1
@Identity-labs
Copy link

related here : ariya/phantomjs#11201

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