Skip to content

Instantly share code, notes, and snippets.

@ralphtheninja
Forked from anonymous/blob.js
Created February 15, 2013 11:57
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 ralphtheninja/4959973 to your computer and use it in GitHub Desktop.
Save ralphtheninja/4959973 to your computer and use it in GitHub Desktop.
var bigBlob = Array.apply(null, Array(1024 * 100)).map(function () { return 'aaaaaaaaaa' }).join('')
#!/bin/bash
for (( i=1; i<=10000; i++ ))
do
echo "Running test $i .."
node blob.js
if [ $? -ne 0 ]; then
break
fi
done
@ralphtheninja
Copy link
Author

This WILL crash eventually with a bus error if you run a 32 bit ubuntu system.

@isaacs
Copy link

isaacs commented Feb 15, 2013

You mean that eventually it will crash node?

@ralphtheninja
Copy link
Author

Yup.

@ralphtheninja
Copy link
Author

The break check is obviously completely redundant here, it kind of went along with copy and paste :)

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