chrisa / node-rsa

OpenSSL RSA library for nodejs
Other
44 stars 9 forks source link

crash #1

Open stevedekorte opened 12 years ago

stevedekorte commented 12 years ago

bash-3.2$ node

require('rsaBinding') { RsaKeypair: [Function: RsaKeypair] } require('rsaBinding').RsaKeypair() Assertion failed: (handle->InternalFieldCount() > 0), function Wrap, file ../src/node_object_wrap.h, line 62. Abort trap: 6

bash-3.2$ node --version v0.6.2

This is on OSX 10.7.2.

chrisa commented 12 years ago

I'm not sure why this fails so terminally - I'll see how I can avoid that happening.

The rsaBinding extension isn't intended to be used directly like that though - please see issue #3 for the various 0.6.x issues, which I believe are now fixed in branch 06x-compat - could you give that a go?

Thanks.

mgcrea commented 12 years ago

Same issue here after a macports node upgrade to v0.7.12 (nodejs-devel).

There is this similar issue with a possible fix : https://github.com/kkaefer/node-cpp-modules/issues/2 https://github.com/kkaefer/node-cpp-modules/commit/bd9432026affafd8450ecfd9b49b7dc647b6d348