-
Notifications
You must be signed in to change notification settings - Fork 615
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
libc++abi: terminating due to uncaught exception of type std::out_of_range: basic_string Abort trap: 6 #801
Comments
I mean, it's hard to see how a JS library with no C++ components could have caused a C++ crash, short of a bug in the node/js engine. Have you tried bisecting the snippet and ensured the crash isn't in the setup code? Or tried different versions of nodejs? The |
Yes, you are right. I went deeper this afternoon and discovered the issue is on Node.js v20. And it's straightforward to reproduce. new URL('..#', 'a:b');
libc++abi: terminating due to uncaught exception of type std::out_of_range: basic_string
Abort trap: 6 But I am sad that you seem not curious why the code can run on Node.js v19 but crash on v20. I understand your point, and I will go to the Node.js repo to submit this issue and help them resolve it. Thanks for your reply. |
Well, first of all, I didn't have a copy of Node v20 handy, so I simply couldn't reproduce. I also wasn't sure that it would be reproducible even if I did spend time to try to recreate the environment (often platform or ABI or environment/library differences, or differences in the markup that I get on the order of 100 emails a day regarding software I have some level of responsibility for, so if it's clear that it's not my wheelhouse, I usually cannot afford the time to dig into it.
Thanks and good luck! I hope the node.js folks resolve this soon - it shouldn't be possible to crash the JS environment with simple JS like this. |
Crash while parsing some pages. It's easy to reproduce:
Crash with logs:
Screenshot:
Debug codes can be found here:
https://github.com/Leask/readability/blob/out_of_range/debug.js
The text was updated successfully, but these errors were encountered: