Last active
October 23, 2015 00:48
-
-
Save ggreer/702e3d66aea60f7b65f9 to your computer and use it in GitHub Desktop.
Node.js v4.2.1 crash on Linux. Tested with Ubuntu 15.04.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ggreer@lithium:~% node crash.js | |
node: ../src/node_buffer.cc:225: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding): Assertion `(data) != (nullptr)' failed. | |
zsh: abort (core dumped) node crash.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var big_string = new Array(10000).join("A"); | |
big_string = new Buffer("=" + big_string, "base64"); | |
console.log(big_string.length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment