Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ 模块的 Assertion 断言失败会导致 js 层面的调用堆栈丢失 #3

Closed
fengmk2 opened this issue Apr 30, 2014 · 0 comments

Comments

@fengmk2
Copy link
Owner

fengmk2 commented Apr 30, 2014

源自于 cnpm/cnpmjs.org#335

目前还找不到具体是那段 js 代码写错了.

但是能写一个模拟重现代码:

var zlib = require('zlib');

var stream = zlib.createGzip();

stream.write('foo');
stream.close();

// Assertion failed: (!ctx->pending_close_ && "close is pending"), function Write, file ../src/node_zlib.cc, line 150.
stream.write('again');

尝新去给 node 提交 pr, 让这个判断放到 js 层面做.

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

No branches or pull requests

1 participant