Skip to content

Instantly share code, notes, and snippets.

@ggreer
Last active October 23, 2015 00:48
Show Gist options
  • Save ggreer/702e3d66aea60f7b65f9 to your computer and use it in GitHub Desktop.
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.
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
"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