Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

miserable failure -- misuse? #5

Closed
jmonster opened this issue Nov 18, 2011 · 1 comment
Closed

miserable failure -- misuse? #5

jmonster opened this issue Nov 18, 2011 · 1 comment
Labels

Comments

@jmonster
Copy link

var _write = res.write; // save the original write function
res.write = function(data) { // define a new write function
var dd = deflate.inflateSync(data); // deflate?
_write.call(res, data); // call the original write function
};

node(1618) malloc: *** mmap(size=140737488355328) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

[2011-11-18 13:08:20.007] [ERROR] console - res.write error: Z_MEM_ERROR
[2011-11-18 13:08:20.008] [ERROR] console - res.write error: Z_DATA_ERROR

@jahewson
Copy link
Owner

looks like malloc is being asked to allocate 140737488355328 Bytes of RAM - has your data got a weird length?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants