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

Crashes bcrypt #48

Closed
olalonde opened this issue Feb 28, 2023 · 8 comments
Closed

Crashes bcrypt #48

olalonde opened this issue Feb 28, 2023 · 8 comments

Comments

@olalonde
Copy link

kelektiv/node.bcrypt.js#980

I'm not really sure what this library does and whether it's a bug that can be fixed by bcrypt or tinypool.

@olalonde
Copy link
Author

olalonde commented Mar 7, 2023

Also getting the same issue with argon2.

@Aslemammad
Copy link
Member

Interesting, what do these libraries have in common, that makes the problem related to Tinypool? Do you have any reproductions (not with vitest, with Tinypool only)

@olalonde
Copy link
Author

No I don't have a reproduction but the reason that leads me to believe it's an issue with tinypool:

  1. I get the error using two different native libraries (the only thing they have in common is that they're native libraries AFAIK)

  2. the error only happens when threading is enabled on vitest

@olalonde
Copy link
Author

It could also be a bug in some library that tinypool is using, including Node.js implementation of worker_threads ?

@Aslemammad
Copy link
Member

maybe, I don't think Tinypool is doing something different, it uses worker_threads! So the issue may be there, and if it is, then the issue is mostly with the libs.

@olalonde
Copy link
Author

Or maybe https://nodejs.org/api/async_hooks.html ? It's marked as an experimental API. I'll see if I can isolate the bug.

@Aslemammad
Copy link
Member

That'd help so much

@AriPerkkio
Copy link
Member

Fixed by #64.

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

No branches or pull requests

3 participants