Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
Impala 2.8.0
Description
I ran into this on a private build but it looks like we will hit it with the ASAN build.
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from StringCompareTest
[ RUN ] StringCompareTest.Basic
be/src/runtime/string-compare-test.cc:32: Failure
Value of: StringCompare(l.c_str(), l.size(), r.c_str(), r.size(), cmp_len)
Actual: 126
Expected: strncmp(l.c_str(), r.c_str(), cmp_len)
Which is: 1
be/src/runtime/string-compare-test.cc:32: Failure
Value of: StringCompare(l.c_str(), l.size(), r.c_str(), r.size(), cmp_len)
Actual: -126
Expected: strncmp(l.c_str(), r.c_str(), cmp_len)
Which is: -1
be/src/runtime/string-compare-test.cc:32: Failure
Value of: StringCompare(l.c_str(), l.size(), r.c_str(), r.size(), cmp_len)
Actual: 127
Expected: strncmp(l.c_str(), r.c_str(), cmp_len)
Which is: 1
be/src/runtime/string-compare-test.cc:32: Failure
Value of: StringCompare(l.c_str(), l.size(), r.c_str(), r.size(), cmp_len)
Actual: -127
Expected: strncmp(l.c_str(), r.c_str(), cmp_len)
Which is: -1
be/src/runtime/string-compare-test.cc:32: Failure
Value of: StringCompare(l.c_str(), l.size(), r.c_str(), r.size(), cmp_len)
Actual: 254