-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Fatal error when comparing long strings #12573
Comments
/cc @nodejs/v8 |
Doesn't reproduce on latest V8, probably fixed since then. |
@vsemozhetbyt Getting an 'illegal instruction' error is different than the errors received in those two linked issues. At least in both of those cases, the error can be caught. This error cannot be caught. |
I can reproduce this on v7.9.0, but not on master. |
Reproduces on V8 5.5. The string created by |
Manually bisected to crrev.com/2653623002, you'll probably need to merge that. |
The V8 fix landed in 5.8. |
Original commit message: [crankshaft] Fix string addition to check for max length of cons string. BUG=chromium:678917 Review-Url: https://codereview.chromium.org/2653623002 Cr-Commit-Position: refs/heads/master@{nodejs#42621} Fixes: nodejs#12573
Original commit message: [crankshaft] Fix string addition to check for max length of cons string. BUG=chromium:678917 Review-Url: https://codereview.chromium.org/2653623002 Cr-Commit-Position: refs/heads/master@{#42621} PR-URL: #12696 Fixes: #12573 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
The fix just landed on |
The following code snippet causes node to crash:
Note: The crash appears to only affect strings of length exactly 268435441 (2^28 - 15)
Output:
The text was updated successfully, but these errors were encountered: