Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-9057

Null address read in compact walk

    • 8
    • Storage - Ra 2022-04-18, Storage - Ra 2022-05-02, Storage - Ra 2022-05-16, Storage - Ra 2022-05-30, Storage - Ra 2022-06-13, Storage Engines - 2022-06-27, Storage Engines - 2022-07-11, Storage Engines - 2022-07-25, Storage Engines - 2022-08-08
    • v6.0, v5.0

      format-stress-sanitizer-test-4 on ubuntu2004-stress-tests-arm64

      Host: i-020c32d1e1b34958a
      Project: wiredtiger
      Commit: 930ccee6

      Task Logs:

      format-stress-sanitizer-test-4 task_log

      Logs:

      [2022/03/31 22:41:16.809]     t: process 9085 running
      [2022/03/31 22:41:16.809]     AddressSanitizer:DEADLYSIGNAL
      [2022/03/31 22:41:16.809]     =================================================================
      [2022/03/31 22:41:16.809]     ==9085==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0xffffbef14a7c bp 0xfffeba0f44c0 sp 0xfffeba0f4320 T52)
      [2022/03/31 22:41:16.809]     ==9085==The signal is caused by a READ memory access.
      [2022/03/31 22:41:16.809]     ==9085==Hint: address points to the zero page.
      [2022/03/31 22:41:16.809]         #0 0xffffbef14a7c in __compact_walk_internal /data/mci/08ebd93efac2a5668074f7be31014d62/wiredtiger/cmake_build/../src/btree/bt_compact.c:241:5
      [2022/03/31 22:41:16.809]         #1 0xffffbef14a7c in __wt_compact /data/mci/08ebd93efac2a5668074f7be31014d62/wiredtiger/cmake_build/../src/btree/bt_compact.c:364:9
      [2022/03/31 22:41:16.809]         #2 0xffffbf2d59ac in __compact_worker /data/mci/08ebd93efac2a5668074f7be31014d62/wiredtiger/cmake_build/../src/session/session_compact.c:263:13
      [2022/03/31 22:41:16.809]         #3 0xffffbf2d59ac in __wt_session_compact /data/mci/08ebd93efac2a5668074f7be31014d62/wiredtiger/cmake_build/../src/session/session_compact.c:395:9
      [2022/03/31 22:41:16.809]         #4 0x4c6140 in compact /data/mci/08ebd93efac2a5668074f7be31014d62/wiredtiger/cmake_build/../test/format/compact.c:71:15
      [2022/03/31 22:41:16.809]         #5 0xffffbed77518 in start_thread /build/glibc-70LW9c/glibc-2.31/nptl/pthread_create.c:477:8
      [2022/03/31 22:41:16.809]         #6 0xffffbebd4228  /build/glibc-70LW9c/glibc-2.31/misc/../sysdeps/unix/sysv/linux/aarch64/clone.S:78
      [2022/03/31 22:41:16.809]     AddressSanitizer can not provide additional info.
      [2022/03/31 22:41:16.809]     SUMMARY: AddressSanitizer: SEGV /data/mci/08ebd93efac2a5668074f7be31014d62/wiredtiger/cmake_build/../src/btree/bt_compact.c:241:5 in __compact_walk_internal
      [2022/03/31 22:41:16.809]     Thread T52 created by T0 here:
      [2022/03/31 22:41:16.809]         #0 0x47bd1c in pthread_create /data/mci/df9d5809e957033cafd41f8c3aa0fe3b/toolchain-builder/tmp/build-llvm-v4.sh-ASS/llvm-project-llvmorg/compiler-rt/lib/asan/asan_interceptors.cpp:205:3
      [2022/03/31 22:41:16.809]         #1 0xffffbf217050 in __wt_thread_create /data/mci/08ebd93efac2a5668074f7be31014d62/wiredtiger/cmake_build/../src/os_posix/os_thread.c:28:5
      [2022/03/31 22:41:16.809]         #2 0x4d4e98 in operations /data/mci/08ebd93efac2a5668074f7be31014d62/wiredtiger/cmake_build/../test/format/ops.c:281:9
      [2022/03/31 22:41:16.809]         #3 0x4e9640 in main /data/mci/08ebd93efac2a5668074f7be31014d62/wiredtiger/cmake_build/../test/format/t.c:334:9
      [2022/03/31 22:41:16.809]         #4 0xffffbeb23d4c in __libc_start_main /build/glibc-70LW9c/glibc-2.31/csu/../csu/libc-start.c:308:16
      [2022/03/31 22:41:16.809]         #5 0x421d84 in _start (/data/mci/08ebd93efac2a5668074f7be31014d62/wiredtiger/cmake_build/test/format/t+0x421d84)
      [2022/03/31 22:41:16.809]     ==9085==ABORTING
      [2022/03/31 22:41:16.809]     AddressSanitizer:DEADLYSIGNAL
      

      logs

        1. gdb info threads output.txt
          5 kB
        2. gdb thread apply all bt output.txt
          79 kB
        3. Stack trace.png
          Stack trace.png
          45 kB
        4. wt9057_1.jpg
          wt9057_1.jpg
          27 kB
        5. wt9057_2.jpg
          wt9057_2.jpg
          26 kB
        6. wt9057_3.jpg
          wt9057_3.jpg
          25 kB
        7. wt9057_4.jpg
          wt9057_4.jpg
          23 kB

            Assignee:
            jeremy.thorp@mongodb.com Jeremy Thorp
            Reporter:
            Xgen-BuildBaron-User xgen-buildbaron-user
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: