Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-17051

[C++][Flight] arrow-flight-sql-test fails with ASAN UBSAN

    XMLWordPrintableJSON

Details

    Description

      The CI job for ASAN UBSAN is based on Ubuntu 20.04: C++ / AMD64 Ubuntu 20.04 C++ ASAN UBSAN 

      Trying to build Flight and Flight SQL on Ubuntu 20.04 the job for ASAN UBSAN will also build with Flight and Flight SQL. This triggers some arrow-flight-sql-test failures like:

        [ RUN      ] TestFlightSqlClient.TestGetDbSchemas
      unknown file: Failure
      Unexpected mock function call - taking default action specified at:
      /arrow/cpp/src/arrow/flight/sql/client_test.cc:151:
          Function call: GetFlightInfo(@0x61500007d948 184-byte object <00-00 00-00 00-00 F0-BF 40-00 00-00 00-00 00-00 80-4C 06-49 CF-7F 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 01-01 00-00 00-00 00-00 00-20 00-00 00-00 00-00 ... 01-00 00-04 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00>, @0x7fff35794e80 64-byte object <02-00 00-00 00-00 00-00 C0-45 08-00 B0-60 00-00 65-00 00-00 00-00 00-00 65-00 00-00 00-00 00-00 C4-A9 AE-66 00-10 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00>)
                Returns: (nullptr)
      Google Mock tried the following 1 expectation, but it didn't match:
      /arrow/cpp/src/arrow/flight/sql/client_test.cc:152: EXPECT_CALL(sql_client_, GetFlightInfo(Ref(call_options_), descriptor))...
        Expected arg #1: is equal to 64-byte object <02-00 00-00 BE-BE BE-BE C0-6B 05-00 C0-60 00-00 73-00 00-00 00-00 00-00 73-00 00-00 00-00 00-00 BE-BE BE-BE BE-BE BE-BE 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00>
                 Actual: 64-byte object <02-00 00-00 00-00 00-00 C0-45 08-00 B0-60 00-00 65-00 00-00 00-00 00-00 65-00 00-00 00-00 00-00 C4-A9 AE-66 00-10 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00>
               Expected: to be called once
                 Actual: never called - unsatisfied and active
      /arrow/cpp/src/arrow/flight/sql/client_test.cc:152: Failure
      Actual function call count doesn't match EXPECT_CALL(sql_client_, GetFlightInfo(Ref(call_options_), descriptor))...
               Expected: to be called once
                 Actual: never called - unsatisfied and active
      [  FAILED  ] TestFlightSqlClient.TestGetDbSchemas (1 ms)

      The error can be seen here: https://github.com/apache/arrow/runs/7297442828?check_suite_focus=true

      This is the initial PR that triggered it:

      https://github.com/apache/arrow/pull/13548

       

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              raulcd Raúl Cumplido
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m