Details
Description
Test with custom compare got an assert when iterating after compacting dbfile
Assertion in 0x0 != 0x7ff819f006f0 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.
- thread #1: tid = 0x2291d6, 0x00007fff8ef66286 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
- frame #0: 0x00007fff8ef66286 libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x00007fff870f442f libsystem_pthread.dylib`pthread_kill + 90
frame #2: 0x00007fff84944b53 libsystem_c.dylib`abort + 129
frame #3: 0x00007fff8490cc39 libsystem_c.dylib`__assert_rtn + 321
frame #4: 0x000000010003c621 fdb_functional_test`_hbtrie_reform_key(trie=0x000000010b4006b0, rawkey=0x000000010d839000, rawkeylen=0, outkey=0x000000010d849000) + 305 at hbtrie.cc:84
frame #5: 0x000000010003e9f8 fdb_functional_test`_hbtrie_next(it=0x000000010b4006b0, item=0x000000010b400920, key_buf=0x000000010d839000, keylen=0x000000010b400078, value_buf=0x000000010b400080, flag='\0') + 2936 at hbtrie.cc:929
frame #6: 0x000000010003e05d fdb_functional_test`_hbtrie_next(it=0x000000010b4006b0, item=0x000000010b4007d0, key_buf=0x000000010d839000, keylen=0x000000010b400078, value_buf=0x000000010b400080, flag='\0') + 477 at hbtrie.cc:755
frame #7: 0x000000010003dde0 fdb_functional_test`hbtrie_next(it=0x000000010b4006b0, key_buf=0x000000010d839000, keylen=0x000000010b400078, value_buf=0x000000010b400080) + 192 at hbtrie.cc:954
frame #8: 0x0000000100047ef7 fdb_functional_test`_fdb_iterator_next(iterator=0x000000010b400000) + 407 at iterator.cc:851
frame #9: 0x0000000100044023 fdb_functional_test`fdb_iterator_next(iterator=0x000000010b400000) + 99 at iterator.cc:1911
frame #10: 0x0000000100068009 fdb_functional_test`custom_compare_commit_compact(eqkeys=false) + 1545 at fdb_functional_test.cc:2229
frame #11: 0x0000000100072044 fdb_functional_test`main + 84 at fdb_functional_test.cc:3660
frame #12: 0x00007fff8600c5c9 libdyld.dylib`start + 1
frame #13: 0x00007fff8600c5c9 libdyld.dylib`start + 1
(lldb)
http://review.couchbase.org/#/c/51737/
when eqkeys = false