Skip to content

//test/integration:quic_http_integration_test is Flaky under TSAN #33453

Closed as not planned

Description

@RyanTheOptimist

Two recent failures:

https://dev.azure.com/cncf/envoy/_build/results?buildId=167501&view=logs&j=d1f76054-8f79-554b-6f4a-11d6a63b8e00&t=33c64725-b304-5065-9740-0ce244fa1a25

[ RUN      ] QuicHttpIntegrationTests/QuicInplaceLdsIntegrationTest.ReloadConfigUpdateDefaultFilterChain/IPv6
./test/integration/server.h:460: Failure
Value of: TestUtility::waitForGaugeGe(statStore(), name, value, time_system_, timeout)
  Actual: false (timed out waiting for listener_manager.total_filter_chains_draining to be 1)
Expected: true
Stack trace:
  0x3c19d75: Envoy::IntegrationTestServer::waitForGaugeGe()
  0x347dbf3: Envoy::Quic::QuicInplaceLdsIntegrationTest_ReloadConfigUpdateDefaultFilterChain_Test::TestBody()
  0x347e50d: Envoy::Quic::QuicInplaceLdsIntegrationTest_ReloadConfigUpdateDefaultFilterChain_Test::TestBody()
  0xaf23498: testing::internal::HandleSehExceptionsInMethodIfSupported<>()
  0xaf08edb: testing::internal::HandleExceptionsInMethodIfSupported<>()
  0xaeec689: testing::Test::Run()
  0xaeed4c2: testing::TestInfo::Run()
... Google Test internal frames ...

[external/com_google_absl/absl/flags/internal/flag.cc : 115] RAW: Restore saved value of envoy_reloadable_features_no_extension_lookup_by_name to: true
[external/com_google_absl/absl/flags/internal/flag.cc : 115] RAW: Restore saved value of envoy_reloadable_features_runtime_initialized to: false
[  FAILED  ] QuicHttpIntegrationTests/QuicInplaceLdsIntegrationTest.ReloadConfigUpdateDefaultFilterChain/IPv6, where GetParam() = 4-byte object <01-00 00-00> (40169 ms)

https://dev.azure.com/cncf/envoy/_build/results?buildId=167524&view=logs&j=d1f76054-8f79-554b-6f4a-11d6a63b8e00&t=33c64725-b304-5065-9740-0ce244fa1a25


    #11 Envoy::Quic::QuicInplaceLdsIntegrationTest_EnableAndDisableEarlyData_Test::TestBody() /proc/self/cwd/test/integration/quic_http_integration_test.cc:1834:3 (quic_http_integration_test+0x348ab19)
    #12 non-virtual thunk to Envoy::Quic::QuicInplaceLdsIntegrationTest_EnableAndDisableEarlyData_Test::TestBody() /proc/self/cwd/test/integration/quic_http_integration_test.cc (quic_http_integration_test+0x348af2c)
    #13 void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2580:10 (quic_http_integration_test+0xae537d7)
    #14 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2616:14 (quic_http_integration_test+0xae38ada)
    #15 testing::Test::Run() /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2655:5 (quic_http_integration_test+0xae1c198)
    #16 testing::TestInfo::Run() /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2832:11 (quic_http_integration_test+0xae1cfd1)
    #17 testing::TestSuite::Run() /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2986:28 (quic_http_integration_test+0xae1db70)
    #18 testing::internal::UnitTestImpl::RunAllTests() /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:5697:44 (quic_http_integration_test+0xae2dbaa)
    #19 bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2580:10 (quic_http_integration_test+0xae59777)
    #20 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2616:14 (quic_http_integration_test+0xae3c39a)
    #21 testing::UnitTest::Run() /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:5280:10 (quic_http_integration_test+0xae2d46d)
    #22 RUN_ALL_TESTS() /proc/self/cwd/external/com_google_googletest/googletest/include/gtest/gtest.h:2485:46 (quic_http_integration_test+0x86ac9b7)
    #23 Envoy::TestRunner::runTests(int, char**) /proc/self/cwd/test/test_runner.cc:171:10 (quic_http_integration_test+0x86abd10)
    #24 main /proc/self/cwd/test/main.cc:34:10 (quic_http_integration_test+0x86a8a9e)

SUMMARY: ThreadSanitizer: signal-unsafe call inside of a signal /tmp/tmp.OZoeltcI3e/llvm-project-llvmorg-14.0.0/libcxxabi/src/stdlib_new_delete.cpp:30:17 in operator new(unsigned long)

Activity

  1. github-actions commented on May 10, 2024

    @github-actions

    This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

  2. added
    stale
    on May 10, 2024
  3. github-actions commented on May 17, 2024

    @github-actions

    This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.

  4. ravenblackx commented on Apr 22, 2025

    @ravenblackx
    Contributor

    Still happening in tsan.
    https://github.com/envoyproxy/envoy/actions/runs/14583047690/job/40903497197

    [ RUN      ] QuicHttpIntegrationTests/QuicHttpIntegrationTest.AsyncCertVerificationAfterTearDown/IPv6
    Error: 4-21 23:21:08.413][97][error][testing] [./test/integration/quic_http_integration_test.h:304] Fail to connect to server with error: QUIC_HANDSHAKE_TIMEOUT with details: Handshake timeout expired after 4806251us. Timeout:4500ms num_undecryptable_packets: 0 {}
    [2025-04-21 23:21:08.413][97][critical][backtrace] [./source/server/backtrace.h:129] Caught Segmentation fault, suspect faulting address 0x0
    [2025-04-21 23:21:08.413][97][critical][backtrace] [./source/server/backtrace.h:113] Backtrace (use tools/stack_decode.py to get line numbers):
    [2025-04-21 23:21:08.414][97][critical][backtrace] [./source/server/backtrace.h:114] Envoy version: 0/1.35.0-dev/test/DEBUG/BoringSSL
    /bin/addr2line: DWARF error: invalid or unhandled FORM value: 0x25
    ==================
    WARNING: ThreadSanitizer: signal-unsafe call inside of a signal (pid=97)
        #0 malloc ??:? (quic_http_integration_test+0x3d6834c)
        #1 operator new(unsigned long) ??:? (quic_http_integration_test+0xc3268f7)
        #2 Envoy::BackwardsTrace::addrMapping(bool) ??:? (quic_http_integration_test+0xa155f8c)
        #3 Envoy::BackwardsTrace::logTrace() ??:? (quic_http_integration_test+0xa14af15)
        #4 Envoy::SignalAction::sigHandler(int, siginfo_t*, void*) ??:? (quic_http_integration_test+0xa1474b6)
        #5 __tsan::CallUserSignalHandler(__tsan::ThreadState*, bool, bool, int, __sanitizer::__sanitizer_siginfo*, void*) tsan_interceptors_posix.cpp:? (quic_http_integration_test+0x3d716b5)
        #6 Envoy::Quic::QuicHttpIntegrationTest_AsyncCertVerificationAfterTearDown_Test::TestBody() ??:? (quic_http_integration_test+0x3dfba52)
        #7 non-virtual thunk to Envoy::Quic::QuicHttpIntegrationTest_AsyncCertVerificationAfterTearDown_Test::TestBody() ??:? (quic_http_integration_test+0x3dfbd6c)
        #8 void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) ??:? (quic_http_integration_test+0xc1feacc)
        #9 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) ??:? (quic_http_integration_test+0xc1cfeba)
        #10 testing::Test::Run() ??:? (quic_http_integration_test+0xc1b4478)
        #11 testing::TestInfo::Run() ??:? (quic_http_integration_test+0xc1b52c1)
        #12 testing::TestSuite::Run() ??:? (quic_http_integration_test+0xc1b5e00)
        #13 testing::internal::UnitTestImpl::RunAllTests() ??:? (quic_http_integration_test+0xc1c52aa)
        #14 bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) ??:? (quic_http_integration_test+0xc1ff48f)
        #15 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) ??:? (quic_http_integration_test+0xc1d375a)
        #16 testing::UnitTest::Run() ??:? (quic_http_integration_test+0xc1c4b6d)
        #17 RUN_ALL_TESTS() ??:? (quic_http_integration_test+0x981f207)
        #18 Envoy::TestRunner::runTests(int, char**) ??:? (quic_http_integration_test+0x981e369)
        #19 main ??:? (quic_http_integration_test+0x981ba4d)
    
    SUMMARY: ThreadSanitizer: signal-unsafe call inside of a signal ??:? in malloc
    ==================
    
  5. removed
    stale
    on Apr 22, 2025
  6. self-assigned this
    on Apr 22, 2025
  7. abeyad commented on Apr 25, 2025

    @abeyad
    Contributor

    I've tried about 1500 runs so far and haven't been able to reproduce it locally. Will keep an eye on it to see if it occurs again.

  8. github-actions commented on May 25, 2025

    @github-actions

    This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

  9. added
    stale
    on May 25, 2025
  10. github-actions commented on Jun 1, 2025

    @github-actions

    This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.

  11. 1 remaining item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/test flakesstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions