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

FI testing: segfault in python test test_bug013 when fault introduced reading turtle file

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT2.9.3, 3.5.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage 2017-05-29, Storage 2017-06-19

      config for bug reproduction:

      cmd=python ../test/suite/run.py -v 3 test_bug013
          failcountbeg=113
          failcountend=113
          timeout=300
      

      Fault introduced in:

      Induced fault in following backtrace:
      open
      __posix_open_file
      __wt_open
      __wt_fopen
      __wt_turtle_read
      __wt_metadata_search
      __ckpt_set
      __wt_meta_ckptlist_set
      __checkpoint_tree
      __wt_checkpoint
      __wt_meta_track_off
      __wt_checkpoint_close
      __wt_conn_btree_sync_and_close
      __wt_conn_dhandle_close_all
      __wt_schema_worker
      __wt_lsm_tree_worker
      __wt_schema_worker
      __wt_schema_worker
      __session_verify
      _wrap_Session_verify
      

      backtrace from core :

      (gdb) bt
      #0  0x00007f3c134bcf6f in __wt_row_search (session=0x1749300, srch_key=0x18107e0, leaf=0x0, cbt=0x1810700, insert=false) at ../src/btree/row_srch.c:292
      #1  0x00007f3c1348276a in __cursor_row_search (session=0x1749300, cbt=0x1810700, leaf=0x0, insert=false) at ../src/btree/bt_cursor.c:335
      #2  0x00007f3c13482c1f in __wt_btcur_search (cbt=0x1810700) at ../src/btree/bt_cursor.c:438
      #3  0x00007f3c134e1ddc in __curfile_search (cursor=0x1810700) at ../src/cursor/cur_file.c:187
      #4  0x00007f3c1351c59d in __clsm_lookup (clsm=0x1721970, value=0x7ffed1eb0480) at ../src/lsm/lsm_cursor.c:1225
      #5  0x00007f3c1351d483 in __clsm_insert (cursor=0x1721970) at ../src/lsm/lsm_cursor.c:1538
      #6  0x00007f3c137e27a3 in _wrap_Cursor_insert (self=<optimized out>, args=<optimized out>) at wiredtiger_wrap.c:4119
      .
      .
      

      Looks like page is null and we are dereferencing it:

      (gdb) f 0
      #0  0x00007f3c134bcf6f in __wt_row_search (session=0x1749300, srch_key=0x18107e0, leaf=0x0, cbt=0x1810700, insert=false) at ../src/btree/row_srch.c:292
      292                     if (page->type != WT_PAGE_ROW_INT)
      (gdb) p page
      $1 = (WT_PAGE *) 0x0
      (gdb) 
      

            Assignee:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: