Last active
December 20, 2015 16:49
-
-
Save kesla/6164609 to your computer and use it in GitHub Desktop.
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
node-snappy|merged⚡ ⇒ gdb --args node failure.js | |
GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb 6 22:51:23 UTC 2013) | |
Copyright 2004 Free Software Foundation, Inc. | |
GDB is free software, covered by the GNU General Public License, and you are | |
welcome to change it and/or distribute copies of it under certain conditions. | |
Type "show copying" to see the conditions. | |
There is absolutely no warranty for GDB. Type "show warranty" for details. | |
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ........ done | |
(gdb) run | |
Starting program: /usr/local/bin/node failure.js | |
Reading symbols for shared libraries +++++++...................................................................................................................................... done | |
Reading symbols for shared libraries . done | |
1 | |
2 | |
Program received signal EXC_BAD_ACCESS, Could not access memory. | |
Reason: KERN_INVALID_ADDRESS at address: 0x000000005fbff318 | |
0x0000000100023b19 in node::StreamWrap::AfterWrite () | |
(gdb) backtrace | |
#0 0x0000000100023b19 in node::StreamWrap::AfterWrite () |
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
var snappy = require('./lib/snappy') | |
, input = 'Foo bar!' | |
snappy.compress(input, function(err, compressed) { | |
console.log('1') | |
}) | |
snappy.compress(input, function(err, compressed) { | |
console.log('2') | |
}) |
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
var snappy = require('./lib/snappy') | |
, input = 'Foo bar!' | |
setTimeout(function() { | |
console.log('timeout!'); | |
}, 1000) | |
snappy.compress(input, function(err, compressed) { | |
console.log('compressed', compressed) | |
if (err) | |
throw err | |
snappy.isValidCompressed(compressed, function(err, status) { | |
if (err) | |
throw err | |
console.log(status) | |
}) | |
snappy.decompress(compressed, null, function(err, expected) { | |
if (err) | |
throw err | |
console.log(expected) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment