-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ffi_2/function_callbacks_test crashing on dartk-msan-linux-release-x64 #43075
Comments
I cannot reproduce this locally @crelier. Commenting out the following lines does not make the false positives disappear. sdk/build/config/linux/BUILD.gn Lines 11 to 14 in 73f6d15
Is there something I'm missing @crelier? According to the documentation we need to actually make sure we use a msan instrumented version of libc++.
https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo |
@dcharkes you are right. Removing the flag |
This is caused by the
|
Closing in favor of #44377 |
This allows it to be instrumented by the sanitizers. Enabled only for MSAN and for Android. TEST=ci Bug: #44312 Bug: #44377 Bug: #43075 Bug: #50248 Bug: #50271 Bug: #52441 Change-Id: I96241e6ee28fb2a853d4a113aac268bc415a5fd5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304147 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Daco Harkes <[email protected]>
This reverts commit bd589d4. Reason for revert: breaks dart-sdk-linux-riscv64-main Original change's description: > [build] Build the standard c++ library from source. > > This allows it to be instrumented by the sanitizers. > > Enabled only for MSAN and for Android. > > TEST=ci > Bug: #44312 > Bug: #44377 > Bug: #43075 > Bug: #50248 > Bug: #50271 > Bug: #52441 > Change-Id: I96241e6ee28fb2a853d4a113aac268bc415a5fd5 > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304147 > Commit-Queue: Ryan Macnak <[email protected]> > Reviewed-by: Daco Harkes <[email protected]> Bug: #44312 Bug: #44377 Bug: #43075 Bug: #50248 Bug: #50271 Bug: #52441 Change-Id: I0b1d0c0da1cd77e0f9645facfc58397cc216c584 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304823 Bot-Commit: Rubber Stamper <[email protected]> Auto-Submit: Ryan Macnak <[email protected]> Commit-Queue: Rubber Stamper <[email protected]>
This allows it to be instrumented by the sanitizers. Enabled only for MSAN and for Android. Don't pick up Flutter's including no_exceptions in the default config set. TEST=ci Bug: #44312 Bug: #44377 Bug: #43075 Bug: #50248 Bug: #50271 Bug: #52441 Change-Id: If01704ff29569fba8f8181ed31d52faba8d8370f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304824 Reviewed-by: Alexander Aprelev <[email protected]> Commit-Queue: Ryan Macnak <[email protected]>
MemorySanitizer thinks that
std::cout
is not initialized in the tests ffi_2/function_callbacks_test/0 .. ffi_2/function_callbacks_test/8The crashes disappear if the line printing to
std::cout
is commented out:https://github.com/dart-lang/sdk/blob/master/runtime/bin/ffi_test/ffi_test_functions.cc#L1009
The crashes also disappear if this flag is removed when building the test:
--exclude-libs=libc++.a
Note that this flag was added here: https://dart-review.googlesource.com/c/sdk/+/115403
Repro steps:
Here is an output example:
The text was updated successfully, but these errors were encountered: