-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
worker_threads emergency aborted (std::invalid_argument exception from std::stoull) #46223
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
c++
Issues and PRs that require attention from people who are familiar with C++.
confirmed-bug
Issues with confirmed bugs.
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. |
bnoordhuis
added a commit
to bnoordhuis/io.js
that referenced
this issue
Jan 20, 2023
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! |
nodejs-github-bot
pushed a commit
that referenced
this issue
Jan 22, 2023
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 <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
ruyadorno
pushed a commit
that referenced
this issue
Feb 1, 2023
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 <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
juanarbol
pushed a commit
that referenced
this issue
Mar 3, 2023
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 <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
juanarbol
pushed a commit
that referenced
this issue
Mar 5, 2023
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 <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
c++
Issues and PRs that require attention from people who are familiar with C++.
confirmed-bug
Issues with confirmed bugs.
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: