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
Flaky failures of "corelib_2/bigint_from_test" in dartkb #34901
Comments
The test corelib_2/bigint_test fails for the same reason more reliably. These tests fail in mixed mode (with --enable-interpreter) due to switching from non-intrinsic implementation of BigInt methods to intrinsics on the fly: when BigInt code starts running it is interpreted and intrinsics are not used, for example _estimateQuotientDigit returns 1. Meanwhile, _mulAdd could be compiled and it uses intrinsic implementation which would process 2 digits. BigInt implementation does not account for switching to intrinsic implementation on the fly and mixing intrinsic and non-intrinsic implementations of BigInt methods. If Dart asserts are enabled, these tests fail on assertions sdk/runtime/lib/bigint_patch.dart Line 1416 in d91e0ad
sdk/runtime/lib/bigint_patch.dart Line 2655 in d91e0ad
@crelier could you please take a look? |
Issue: #34901 Change-Id: Iaa0d082a0d4e0ddd034f51f49fc9b722a0ca3fd4 Reviewed-on: https://dart-review.googlesource.com/c/81281 Commit-Queue: Alexander Markov <alexmarkov@google.com> Commit-Queue: Régis Crelier <regis@google.com> Auto-Submit: Alexander Markov <alexmarkov@google.com> Reviewed-by: Régis Crelier <regis@google.com>
In order to verify a fix for this issue, I'd like to reproduce it first, but I am not able to get this assert fault, either for bigint_test or bigint_from_test. |
I can reliably reproduce assertion using your command (after removing .status file entries) if I build platform with bytecode:
|
Ah, of course, my platform was missing bytecode. Thanks! |
Fixed by 7de2510 |
Update status file. Change-Id: I43b222562488c90c9438fd792dc2505b14d5d373 Reviewed-on: https://dart-review.googlesource.com/c/81334 Commit-Queue: Régis Crelier <regis@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
The text was updated successfully, but these errors were encountered: