Description
Exception breakpoint is fired due to `c4doc_update` which is marked as noexcept
to reproduce: -> try saving a document which is already purged
- testConflictHandlerWhenDocumentIsPurged
- testSavePurgedDoc
bt
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
|
* frame #0: 0x00000001041790c7 libc++abi.dylib`__cxa_throw
|
frame #1: 0x0000100128856ba7 CouchbaseLite`litecore::error::_throw(this=0x00001001214f8520, skipFrames=1) at Error.cc:613:9
|
frame #2: 0x0000100128856d34 CouchbaseLite`litecore::error::_throw(domain=LiteCore, code=7) at Error.cc:619:29
|
frame #3: 0x000010012885abda CouchbaseLite`C4Error::raise(this=0x00001001217821c0) const at c4Error.cc:257:9
|
frame #4: 0x0000100127b808c3 CouchbaseLite`C4Document::update(this=0x0000615000066100, revBody=C4Base::slice @ 0x0000100121782020, revFlags='\0') const at c4Document.cc:234:15
|
frame #5: 0x0000100127925802 CouchbaseLite`c4doc_update::$_51::operator(this=0x00001001216c7220)() const at c4CAPI.cc:983:45
|
frame #6: 0x00001001278fb627 CouchbaseLite`::c4doc_update(C4Document *, C4Slice, C4RevisionFlags, C4Error *) [inlined] C4Document* litecore::tryCatch<C4Document*, c4doc_update::$_51>(outError=0x00001001216c62e0, fn=(anonymous class) @ 0x00001001216c7220) at c4ExceptionUtils.hh:62:20
|
frame #7: 0x00001001278fb622 CouchbaseLite`::c4doc_update(doc=0x0000615000066100, revBody=(buf = 0x0000603000066ac4, size = 24), revFlags='\0', outError=0x00001001216c62e0) at c4CAPI.cc:982
|
frame #8: 0x0000100127324581 CouchbaseLite`-[CBLDatabase saveDocument:into:withBaseDocument:asDeletion:error:](self=0x000060c0000442c0, _cmd="saveDocument:into:withBaseDocument:asDeletion:error:", document=0x00006070000502e0, outDoc=0x00001001216c5c60, base=0x0000000000000000, deletion=NO, outError=0x00001001216c5aa0) at CBLDatabase.mm:1101:19
|
frame #9: 0x0000100127322a7a CouchbaseLite`-[CBLDatabase saveDocument:withBaseDocument:concurrencyControl:asDeletion:error:](self=0x000060c0000442c0, _cmd="saveDocument:withBaseDocument:concurrencyControl:asDeletion:error:", document=0x00006070000502e0, baseDoc=0x0000000000000000, concurrencyControl=kCBLConcurrencyControlFailOnConflict, deletion=NO, outError=0x00001001216c5aa0) at CBLDatabase.mm:1019:18
|
frame #10: 0x000010012730af4e CouchbaseLite`-[CBLDatabase saveDocument:conflictHandler:error:](self=0x000060c0000442c0, _cmd="saveDocument:conflictHandler:error:", document=0x00006070000502e0, conflictHandler=0x0000100126767fd0, error=0x000010012177dd70) at CBLDatabase.mm:233:24
|
frame #11: 0x000010012676653a CouchbaseLiteTests`-[DatabaseTest testConflictHandlerWhenDocumentIsPurged](self=0x0000612000059740, _cmd="testConflictHandlerWhenDocumentIsPurged") at DatabaseTest.m:695:5
|
frame #12: 0x0000000101e33a3c CoreFoundation`__invoking___ + 140
|
Attachments
Issue Links
- relates to
-
CBL-1928 Failure in testDoubleConflictResolutionOnSameConflicts
- Closed