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

Segfault dereferencing a NULL pindex

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Storage Engines 2020-03-09

      When running test/format with 10 parallel processes, several of them are segfaulting each iteration (usually at least 3-4 of the 10) with a segfault, dereferencing a NULL pointer. Here's the stack:

      Program terminated with signal 11, Segmentation fault.
      #0  0x0000000000584b8e in __tree_walk_internal (session=0x7f0d5f4cd4f0, refp=0x7f0d59db3be8, walkcntp=0x7f0d59db3be0, skip_func=0x0, 
          func_cookie=0x0, flags=469) at ../src/btree/bt_walk.c:419
      419	            ref = pindex->index[slot];
      (gdb) bt
      #0  0x0000000000584b8e in __tree_walk_internal (session=0x7f0d5f4cd4f0, refp=0x7f0d59db3be8, walkcntp=0x7f0d59db3be0, skip_func=0x0, 
          func_cookie=0x0, flags=469) at ../src/btree/bt_walk.c:419
      #1  0x0000000000584fb7 in __wt_tree_walk_count (session=0x7f0d5f4cd4f0, refp=0x7f0d59db3be8, walkcntp=0x7f0d59db3be0, flags=465)
          at ../src/btree/bt_walk.c:541
      #2  0x000000000046969e in __evict_walk_tree (session=0x7f0d5f4cd4f0, queue=0x26179c8, max_entries=400, slotp=0x7f0d59db3ce4)
          at ../src/evict/evict_lru.c:1779
      #3  0x0000000000467956 in __evict_walk (session=0x7f0d5f4cd4f0, queue=0x26179c8) at ../src/evict/evict_lru.c:1486
      #4  0x000000000046703a in __evict_lru_walk (session=0x7f0d5f4ce870) at ../src/evict/evict_lru.c:1170
      #5  0x0000000000465b17 in __evict_pass (session=0x7f0d5f4ce870) at ../src/evict/evict_lru.c:690
      #6  0x0000000000465123 in __evict_server (session=0x7f0d5f4ce870, did_work=0x7f0d59db3ea7) at ../src/evict/evict_lru.c:376
      #7  0x0000000000464d4c in __wt_evict_thread_run (session=0x7f0d5f4ce870, thread=0x2650740) at ../src/evict/evict_lru.c:288
      #8  0x00000000004f11b3 in __thread_run (arg=0x2650740) at ../src/support/thread_group.c:31
      #9  0x00007f0d5eac2dc5 in start_thread () from /lib64/libpthread.so.0
      #10 0x00007f0d5e1c9c9d in clone () from /lib64/libc.so.6
      (gdb) p pindex
      $1 = (WT_PAGE_INDEX *) 0x0
      

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: