-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
worker_threads emergency aborted (std::invalid_argument exception from std::stoull) #46223
Comments
Looks to have been introduced in 436f4de from 2018. The easy fix is to replace Open question: how to handle invalid inputs? The |
Forgot to mention, I can easily reproduce like this:
So yes, confirmed bug. |
Replace stoull() with strtoull(). The former throws an exception when the input is malformed, the latter doesn't. Fixes: nodejs#46223
Thanks for the quick solution to this problem! |
Replace stoull() with strtoull(). The former throws an exception when the input is malformed, the latter doesn't. Fixes: #46223 PR-URL: #46290 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Replace stoull() with strtoull(). The former throws an exception when the input is malformed, the latter doesn't. Fixes: #46223 PR-URL: #46290 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Replace stoull() with strtoull(). The former throws an exception when the input is malformed, the latter doesn't. Fixes: #46223 PR-URL: #46290 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Replace stoull() with strtoull(). The former throws an exception when the input is malformed, the latter doesn't. Fixes: #46223 PR-URL: #46290 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Version
node-v19.3.0
Platform
5.15.78-2.el7.3.x86_64 (RED OS release MUROM 7.3.2 - Centos based system)
Subsystem
Worker threads
What steps will reproduce the bug?
thread_minimize.js:
How often does it reproduce? Is there a required condition?
Standart build compiled with:
gcc (version 8.3.1 2019112)
Configure params:
--prefix="/target/dir"
Builded binary info:
node: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=1bf428404ef62dd8b5c3f952c02e1d1e8da610a9, for GNU/Linux 3.2.0
What is the expected behavior?
No response
What do you see instead?
Reproduce an error with the following options:
ASAN_OPTIONS=verbosity=1:detect_leaks=1:symbolize=1 LD_PRELOAD=/usr/lib64/libasan.so.5.0.0 /home/user/target/node-v19.0.1/node-v19.0.1/builded/bin/node ./thread_minimize.js
Asan log:
Additional information
No response
The text was updated successfully, but these errors were encountered: