Skip to content

ThreadSanitizer: CHECK failed: tsan_interceptors_posix.cpp:1983 #37910

@tavplubix

Description

@tavplubix

https://s3.amazonaws.com/clickhouse-test-reports/37902/2d01abf8715b122642357b806fe59b27215713ad/stress_test__thread__actions_.html

Looks like a bug in tsan:

ThreadSanitizer: CHECK failed: tsan_interceptors_posix.cpp:1983 "((thr->slot)) != (0)" (0x0, 0x0) (tid=920)
    #0 __tsan::CheckUnwind() crtstuff.c (clickhouse+0xb2fd7f2) (BuildId: 46ba5a9853f45166)
    #1 __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) crtstuff.c (clickhouse+0xb27ff14) (BuildId: 46ba5a9853f45166)
    #2 __tsan::CallUserSignalHandler(__tsan::ThreadState*, bool, bool, int, __sanitizer::__sanitizer_siginfo*, void*) crtstuff.c (clickhouse+0xb2a06d0) (BuildId: 46ba5a9853f45166)
    #3 sighandler(int, __sanitizer::__sanitizer_siginfo*, void*) crtstuff.c (clickhouse+0xb2a07d3) (BuildId: 46ba5a9853f45166)
    #4 <null> <null> (libpthread.so.0+0x1441f) (BuildId: 7b4536f41cdaa5888408e82d0836e33dcf436466)
    #5 __sanitizer::FutexWait(__sanitizer::atomic_uint32_t*, unsigned int) crtstuff.c (clickhouse+0xb2774a9) (BuildId: 46ba5a9853f45166)
    #6 __sanitizer::Semaphore::Wait() crtstuff.c (clickhouse+0xb278549) (BuildId: 46ba5a9853f45166)
    #7 __tsan::SlotAttachAndLock(__tsan::ThreadState*) crtstuff.c (clickhouse+0xb2fc226) (BuildId: 46ba5a9853f45166)
    #8 __tsan::OnUserFree(__tsan::ThreadState*, unsigned long, unsigned long, bool) crtstuff.c (clickhouse+0xb2f5e2c) (BuildId: 46ba5a9853f45166)
    #9 __tsan::user_free(__tsan::ThreadState*, unsigned long, void*, bool) crtstuff.c (clickhouse+0xb2f5c71) (BuildId: 46ba5a9853f45166)
    #10 free <null> (clickhouse+0xb2988f4) (BuildId: 46ba5a9853f45166)
    #11 _dl_deallocate_tls <null> (ld-linux-x86-64.so.2+0x14a74) (BuildId: 4587364908de169dec62ffa538170118c1c3a078)
    #12 free_stacks <null> (libpthread.so.0+0x7241) (BuildId: 7b4536f41cdaa5888408e82d0836e33dcf436466)
    #13 __free_tcb <null> (libpthread.so.0+0x8521) (BuildId: 7b4536f41cdaa5888408e82d0836e33dcf436466)
    #14 __pthread_clockjoin_ex <null> (libpthread.so.0+0x9b28) (BuildId: 7b4536f41cdaa5888408e82d0836e33dcf436466)
    #15 pthread_join <null> (clickhouse+0xb299ddd) (BuildId: 46ba5a9853f45166)
    #16 Poco::ThreadImpl::joinImpl(long) build_docker/../contrib/poco/Foundation/src/Thread_POSIX.cpp:247:7 (clickhouse+0x1ed34fa5) (BuildId: 46ba5a9853f45166)
    #17 Poco::Thread::tryJoin(long) build_docker/../contrib/poco/Foundation/src/Thread.cpp:153:9 (clickhouse+0x1ed36000) (BuildId: 46ba5a9853f45166)
    #18 Poco::PooledThread::release() build_docker/../contrib/poco/Foundation/src/ThreadPool.cpp:179:14 (clickhouse+0x1ed37dd2) (BuildId: 46ba5a9853f45166)
    #19 Poco::ThreadPool::housekeep() build_docker/../contrib/poco/Foundation/src/ThreadPool.cpp:435:15 (clickhouse+0x1ed39610) (BuildId: 46ba5a9853f45166)
    #20 Poco::ThreadPool::getThread() build_docker/../contrib/poco/Foundation/src/ThreadPool.cpp:446:3 (clickhouse+0x1ed39d2a) (BuildId: 46ba5a9853f45166)
    #21 Poco::ThreadPool::startWithPriority(Poco::Thread::Priority, Poco::Runnable&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) build_docker/../contrib/poco/Foundation/src/ThreadPool.cpp:365:2 (clickhouse+0x1ed3a207) (BuildId: 46ba5a9853f45166)
    #22 Poco::Net::TCPServerDispatcher::enqueue(Poco::Net::StreamSocket const&) build_docker/../contrib/poco/Net/src/TCPServerDispatcher.cpp:152:17 (clickhouse+0x1eaecbce) (BuildId: 46ba5a9853f45166)
    #23 Poco::Net::TCPServer::run() build_docker/../contrib/poco/Net/src/TCPServer.cpp:148:21 (clickhouse+0x1eaeb6e7) (BuildId: 46ba5a9853f45166)
    #24 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/../contrib/poco/Foundation/src/Thread.cpp:55:11 (clickhouse+0x1ed3632f) (BuildId: 46ba5a9853f45166)
    #25 Poco::ThreadImpl::runnableEntry(void*) build_docker/../contrib/poco/Foundation/src/Thread_POSIX.cpp:345:27 (clickhouse+0x1ed34a6b) (BuildId: 46ba5a9853f45166)
    #26 __tsan_thread_start_func crtstuff.c (clickhouse+0xb299a18) (BuildId: 46ba5a9853f45166)
    #27 start_thread <null> (libpthread.so.0+0x8608) (BuildId: 7b4536f41cdaa5888408e82d0836e33dcf436466)
    #28 __clone <null> (libc.so.6+0x11f132) (BuildId: 1878e6b475720c7c51969e69ab2d276fae6d1dee)

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingSpecial issue with list of bugs found by CI

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions