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
Fix the address sanitizer problems - part 1 #2101
Conversation
Update on the valgrind failures in Uri.Parse_UTF16. The cause is nothing to do with the Uri class. I can recreate the problem using the following test case. The test passes, but valgrind thinks there is a problem with the compare of the underlying memory. It only happens when the string being compared is less than 8 chars.
|
It looks like a false alarm. This piece of code seems just using C++ standard library. |
Commit 417bf54 suppresses the failure from uritest.cpp. Suspect there's an optimisation going on that is fooling valgrind into thinking there is a real problem. |
That leaves SIMD.SkipWhitespace other failures ('Conditional jump or move depends on uninitialised value(s)' & |
@miloyip Your thoughts please |
1 similar comment
@miloyip Your thoughts please |
I am unsure about the suppression situation. |
@miloyip I agree, let's review & merge this first. |
This PR is intended to address the SIMD unit test sanitizer problem identified in issue #2019, and any other sanitizer problems that are being thrown up when running other RapidJSON unit tests under
valgrind
. #2019 contains the list but in summary:I am seeing all these on
master
branch (Fedora 36).