Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-15188

Assertion failed: (rsize && rsize <= trie->chunksize) when chunksize = 16

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.0
    • 4.0.0
    • forestdb
    • Security Level: Public
    • None
    • Untriaged
    • Unknown
    • ForestDB: Oct 26 - Nov 13

    Description

      Set chunksize to 16 in longkey test from fdb_functional
      fconfig.chunksize = 16;

      Assertion in 0x0 != 0x100408090 in /Users/tmcafee/sandbox/forestdb/src/hbtrie.cc:84
      Assertion failed: (rsize && rsize <= trie->chunksize), function _hbtrie_reform_key, file /Users/tmcafee/sandbox/forestdb/src/hbtrie.cc, line 84.
      Process 79687 stopped

      • thread #1: tid = 0xbba6a0, 0x00007fff9809b286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
        frame #0: 0x00007fff9809b286 libsystem_kernel.dylib`__pthread_kill + 10
        libsystem_kernel.dylib`__pthread_kill:
        -> 0x7fff9809b286 <+10>: jae 0x7fff9809b290 ; <+20>
        0x7fff9809b288 <+12>: movq %rax, %rdi
        0x7fff9809b28b <+15>: jmp 0x7fff98096c53 ; cerror_nocancel
        0x7fff9809b290 <+20>: retq

      debugging

      (lldb) print rsize
      (uint8_t) $0 = '\0'
      (lldb) print trie->chunksize
      (uint8_t) $2 = '\x10'

      (lldb) bt

      • thread #1: tid = 0xbba6a0, 0x00007fff9809b286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
      • frame #0: 0x00007fff9809b286 libsystem_kernel.dylib`__pthread_kill + 10
        frame #1: 0x00007fff9022942f libsystem_pthread.dylib`pthread_kill + 90
        frame #2: 0x00007fff8da79b53 libsystem_c.dylib`abort + 129
        frame #3: 0x00007fff8da41c39 libsystem_c.dylib`__assert_rtn + 321
        frame #4: 0x000000010003bdc1 fdb_functional_test`_hbtrie_reform_key(trie=0x0000000100408090, rawkey=0x00007fff5fbc82d0, rawkeylen=0, outkey=0x00007fff5fbb82d0) + 305 at hbtrie.cc:84
        frame #5: 0x0000000100041467 fdb_functional_test`_hbtrie_insert(trie=0x0000000100408090, rawkey=0x0000000114af6e00, rawkeylen=65528, value=0x00007fff5fbe96a0, oldvalue_out=0x00007fff5fbe96a8, flag='\0') + 3959 at hbtrie.cc:1818
        frame #6: 0x000000010003effa fdb_functional_test`hbtrie_insert(trie=0x0000000100408090, rawkey=0x0000000114af6e00, rawkeylen=65528, value=0x00007fff5fbe96a0, oldvalue_out=0x00007fff5fbe96a8) + 58 at hbtrie.cc:2082
        frame #7: 0x000000010003a3e9 fdb_functional_test`_fdb_wal_flush_func(voidhandle=0x0000000100200030, item=0x000000010048b670) + 537 at forestdb.cc:1759
        frame #8: 0x000000010004cb4d fdb_functional_test`_wal_flush(file=0x0000000100408160, dbhandle=0x0000000100200030, flush_func=0x000000010003a1d0, get_old_offset=0x000000010003aa80, flush_items=0x00007fff5fbe9830, by_compactor=false)(void*, wal_item*), unsigned long long (void*, wal_item*), avl_tree*, bool) + 909 at wal.cc:812
        frame #9: 0x000000010004c7ac fdb_functional_test`wal_flush(file=0x0000000100408160, dbhandle=0x0000000100200030, flush_func=0x000000010003a1d0, get_old_offset=0x000000010003aa80, flush_items=0x00007fff5fbe9830) + 60 at wal.cc:833
        frame #10: 0x000000010002c4b9 fdb_functional_test`_fdb_commit(handle=0x0000000100200030, opt='\x01') + 1097 at forestdb.cc:3151
        frame #11: 0x0000000100030ff2 fdb_functional_test`fdb_commit(fhandle=0x0000000100200000, opt='\x01') + 34 at forestdb.cc:3053
        frame #12: 0x000000010006ee8f fdb_functional_test`long_key_test() + 1199 at fdb_functional_test.cc:3311
        frame #13: 0x000000010007105e fdb_functional_test`main + 14 at fdb_functional_test.cc:3551
        frame #14: 0x00007fff8f1415c9 libdyld.dylib`start + 1

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jung-sang Jung-Sang Ahn (Inactive)
            tommie Tommie McAfee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty