Skip to content

AddressSanitizer: SEGV on unknown address #3329

Open

Description

@AtnNn

When running DiskBackedQueue.Concurrent and a few other unit tests with clang address sanitiziation (#3294):

 ==32392==AddressSanitizer: while reporting a bug found another one.Ignoring.
 ==32392==ERROR: AddressSanitizer: SEGV on unknown address 0x627000035000 (pc 0x7f12cd2d125b bp 0x000000001000 sp 0x7f12c1ffc518 T140)
     #0 0x7f12cd2d125a /build/buildd/eglibc-2.15/string/../sysdeps/x86_64/multiarch/../memset.S:873
     #1 0x15e8c10 in __asan::Allocate(unsigned long, unsigned long, __sanitizer::StackTrace*, __asan::AllocType, bool) /home/ssd1/atnnn/src/llvm-3.5.0.src/projects/compiler-rt/lib/asan/asan_allocator2.cc:399:5
     #2 0x15e93a2 in __asan::asan_posix_memalign(void**, unsigned long, unsigned long, __sanitizer::StackTrace*) /home/ssd1/atnnn/src/llvm-3.5.0.src/projects/compiler-rt/lib/asan/asan_allocator2.cc:642:15
     #3 0x164f1c4 in __interceptor_posix_memalign /home/ssd1/atnnn/src/llvm-3.5.0.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:109:10
     #4 0x6a66b40 in malloc_aligned(unsigned long, unsigned long) /home/atnnn/code/rethinkdb/src/utils.cc:201:15
     #5 0x195333c in linux_thread_pool_t::start_thread(void*) /home/atnnn/code/rethinkdb/src/arch/runtime/thread_pool.cc:120:28
     #6 0x7f12cd80fe99 in start_thread /build/buildd/eglibc-2.15/nptl/pthread_create.c:308
     #7 0x7f12cd33931c in clone /build/buildd/eglibc-2.15/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:112

 AddressSanitizer can not provide additional info.
 SUMMARY: AddressSanitizer: SEGV /build/buildd/eglibc-2.15/string/../sysdeps/x86_64/multiarch/../memset.S:873 ??
 Thread T140 created by T0 here:
     #0 0x163645f in __interceptor_pthread_create /home/ssd1/atnnn/src/llvm-3.5.0.src/projects/compiler-rt/lib/asan/asan_interceptors.cc:180:3
     #1 0x1955c6e in linux_thread_pool_t::run_thread_pool(linux_thread_message_t*) /home/atnnn/code/rethinkdb/src/arch/runtime/thread_pool.cc:200:19
     #2 0x1908d76 in run_in_thread_pool(std::function<void ()> const&, int) /home/atnnn/code/rethinkdb/src/arch/runtime/runtime.cc:69:5
     #3 0x66f3347 in unittest::run_in_thread_pool(std::function<void ()> const&, int) /home/atnnn/code/rethinkdb/src/unittest/unittest_utils.cc:108:5
     #4 0x680b724 in unittest::DiskBackedQueue_Concurrent_Test::TestBody() /home/atnnn/code/rethinkdb/src/unittest/disk_backed_queue.cc:97:5
     #5 0x6c15ae2 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /../src/gtest.cc:1989
     #6 0x6c08280 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /../src/gtest.cc:2025
     #7 0x6bf1016 in testing::Test::Run() /../src/gtest.cc:2061
     #8 0x6bf1e5b in testing::TestInfo::Run() /../src/gtest.cc:2237
     #9 0x6bf2614 in testing::TestCase::Run() /../src/gtest.cc:2344
     #10 0x6bf871f in testing::internal::UnitTestImpl::RunAllTests() /../src/gtest.cc:4066
     #11 0x6c129c2 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /../src/gtest.cc:1989
     #12 0x6c0a110 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /../src/gtest.cc:2025
     #13 0x6bf8401 in testing::UnitTest::Run() /../src/gtest.cc:3699
     #14 0x6bc6050 in RUN_ALL_TESTS() /home/atnnn/code/rethinkdb/./build/external/gtest_1.6.0/include/gtest/gtest.h:2236:10
     #15 0x6bc5ce0 in main /home/atnnn/code/rethinkdb/src/unittest/main.cc:8:12
     #16 0x7f12cd26676c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226

Activity

  1. added this to the milestone on Nov 15, 2014
  2. modified the milestones: , subsequent on Jan 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions