Last active
February 24, 2021 23:16
-
-
Save pasin/268c3e0566f7a3e0e5ffc278bec004dc to your computer and use it in GitHub Desktop.
testConflictHandlerCalledTwice.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xctest(3566,0x1000ebe00) malloc: enabling scribbling to detect mods to free blocks | |
Test Suite 'Selected tests' started at 2021-02-24 15:16:05.671 | |
Test Suite 'CouchbaseLiteTests.xctest' started at 2021-02-24 15:16:05.672 | |
Test Suite 'DatabaseTest' started at 2021-02-24 15:16:05.673 | |
Test Case '-[DatabaseTest testConflictHandlerCalledTwice]' started. | |
2021-02-24 15:16:05.675880-0800 xctest[3566:6473184] CouchbaseLite/3.0.0 (ObjC; macOS 11.2.1) Build/0 Commit/4925733b+CHANGES LiteCore/3.0.0 (3dc6336c) | |
2021-02-24 15:16:05.677621-0800 xctest[3566:6473184] CouchbaseLite Database Info: {Shared#1}==> litecore::DataFile::Shared 0x61300000d258 @0x61300000d258 | |
2021-02-24 15:16:05.677766-0800 xctest[3566:6473184] CouchbaseLite Database Debug: {Shared#1} instantiated on /private/var/folders/1p/pw18jq0152sc5hz_mwjbj89h0000gn/T/CouchbaseLite/testdb.cblite2/db.sqlite3 | |
2021-02-24 15:16:05.677942-0800 xctest[3566:6473184] CouchbaseLite Database Debug: {Shared#1} created for DataFile 0x0 at /private/var/folders/1p/pw18jq0152sc5hz_mwjbj89h0000gn/T/CouchbaseLite/testdb.cblite2/db.sqlite3 | |
2021-02-24 15:16:05.678085-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: Preparing to delete DataFile /private/var/folders/1p/pw18jq0152sc5hz_mwjbj89h0000gn/T/CouchbaseLite/testdb.cblite2/db.sqlite3 | |
2021-02-24 15:16:05.680263-0800 xctest[3566:6473184] CouchbaseLite Database Info: Deleting database file /private/var/folders/1p/pw18jq0152sc5hz_mwjbj89h0000gn/T/CouchbaseLite/testdb.cblite2/db.sqlite3 (with -wal and -shm) | |
2021-02-24 15:16:05.680843-0800 xctest[3566:6473184] CouchbaseLite Database Debug: ...finished deleting database file /private/var/folders/1p/pw18jq0152sc5hz_mwjbj89h0000gn/T/CouchbaseLite/testdb.cblite2/db.sqlite3 (with -wal and -shm) | |
2021-02-24 15:16:05.681393-0800 xctest[3566:6473184] CouchbaseLite Database Debug: {Shared#1} destructing | |
2021-02-24 15:16:05.683272-0800 xctest[3566:6473184] CouchbaseLite Database WARNING: CBLDatabase.log.file.config is nil, meaning file logging is disabled. Log files required for product support are not being generated. | |
2021-02-24 15:16:05.683712-0800 xctest[3566:6473184] CouchbaseLite Database Info: Opening CBLDatabase[testdb] at path /var/folders/1p/pw18jq0152sc5hz_mwjbj89h0000gn/T/CouchbaseLite/testdb.cblite2 | |
2021-02-24 15:16:05.684354-0800 xctest[3566:6473184] CouchbaseLite Database Info: {Shared#2}==> litecore::DataFile::Shared 0x61300000d958 @0x61300000d958 | |
2021-02-24 15:16:05.684488-0800 xctest[3566:6473184] CouchbaseLite Database Debug: {Shared#2} instantiated on /private/var/folders/1p/pw18jq0152sc5hz_mwjbj89h0000gn/T/CouchbaseLite/testdb.cblite2/db.sqlite3 | |
2021-02-24 15:16:05.684644-0800 xctest[3566:6473184] CouchbaseLite Database Debug: {Shared#2} created for DataFile 0x61200002aac0 at /private/var/folders/1p/pw18jq0152sc5hz_mwjbj89h0000gn/T/CouchbaseLite/testdb.cblite2/db.sqlite3 | |
2021-02-24 15:16:05.684842-0800 xctest[3566:6473184] CouchbaseLite Database Info: {DB#3}==> litecore::SQLiteDataFile /var/folders/1p/pw18jq0152sc5hz_mwjbj89h0000gn/T/CouchbaseLite/testdb.cblite2/db.sqlite3 @0x61200002aac0 | |
2021-02-24 15:16:05.694940-0800 xctest[3566:6473184] CouchbaseLite Database Info: {DB#3} Opening database | |
2021-02-24 15:16:05.702104-0800 xctest[3566:6473184] CouchbaseLite Database Debug: {DB#3} open KVS 'default' | |
2021-02-24 15:16:05.703899-0800 xctest[3566:6473184] CouchbaseLite Database Debug: {DB#3} open KVS 'info' | |
2021-02-24 15:16:05.706017-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} begin transaction | |
2021-02-24 15:16:05.707117-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} KeyStore(info) set publicUUID | |
2021-02-24 15:16:05.707420-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} KeyStore(info) set privateUUID | |
2021-02-24 15:16:05.707747-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} KeyStore(info) set versioning | |
2021-02-24 15:16:05.707918-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} commit transaction | |
2021-02-24 15:16:05.709149-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} Next expiration time is 0 | |
2021-02-24 15:16:05.709362-0800 xctest[3566:6473184] CouchbaseLite Database Info: No pending doc expirations | |
2021-02-24 15:16:05.768121-0800 xctest[3566:6473729] [Arbitration] starting DTServiceHub child handshake.0 (send: 0x4e03, receive: 0x3107) | |
2021-02-24 15:16:05.768360-0800 xctest[3566:6473184] [Arbitration] attempting connection to singleton: 4320 with send port: 0x3303 | |
2021-02-24 15:16:05.768841-0800 xctest[3566:6473184] [Arbitration] handshake SUCCESSFUL (child: 3568 -> singleton: 4320) | |
2021-02-24 15:16:05.771690-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} begin transaction | |
2021-02-24 15:16:05.773431-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: Saved doc 'doc1' #1-5b90fd1948276c02d409967a87339b1517e0c0b6; body=14, extra=34 | |
2021-02-24 15:16:05.773821-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} Saved 'doc1' rev #1-5b90fd1948276c02d409967a87339b1517e0c0b6 as seq 1 | |
2021-02-24 15:16:05.774102-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} KeyStore(info) set SharedKeys | |
2021-02-24 15:16:05.774283-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} commit transaction | |
2021-02-24 15:16:05.776312-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} begin transaction | |
2021-02-24 15:16:05.840786-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: Saved doc 'doc1' #2-a90217b2f76c2db52fb387d64d62a4c9a1f983eb; body=12, extra=64 | |
2021-02-24 15:16:05.841077-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} Saved 'doc1' rev #2-a90217b2f76c2db52fb387d64d62a4c9a1f983eb as seq 2 | |
2021-02-24 15:16:05.841243-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} commit transaction | |
2021-02-24 15:16:05.842559-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} begin transaction | |
2021-02-24 15:16:05.843614-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} abort transaction | |
2021-02-24 15:16:05.844329-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} begin transaction | |
2021-02-24 15:16:05.845150-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: Saved doc 'doc1' #3-610137eff355a4cf27adbc53aa21d0e5e0a1805b; body=34, extra=94 | |
2021-02-24 15:16:05.845314-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} Saved 'doc1' rev #3-610137eff355a4cf27adbc53aa21d0e5e0a1805b as seq 3 | |
2021-02-24 15:16:05.865996-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} KeyStore(info) set SharedKeys | |
2021-02-24 15:16:05.866757-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} commit transaction | |
2021-02-24 15:16:05.867807-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} begin transaction | |
2021-02-24 15:16:05.868601-0800 xctest[3566:6473184] CouchbaseLite Database Verbose: {DB#3} abort transaction | |
================================================================= | |
==3566==ERROR: AddressSanitizer: heap-use-after-free on address 0x630000004400 at pc 0x000100149a7a bp 0x7ffeefbfbb20 sp 0x7ffeefbfb2e0 | |
READ of size 4 at 0x630000004400 thread T0 | |
#0 0x100149a79 in wrap_memmove+0x169 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x1da79) | |
#1 0x7fff2065358d in __CFStringCreateImmutableFunnel3+0x4d4 (CoreFoundation:x86_64h+0x358d) | |
#2 0x7fff2065fb35 in CFStringCreateWithBytes+0x1a (CoreFoundation:x86_64h+0xfb35) | |
#3 0x10d2bd703 in fleece::pure_slice::createCFString() const slice+CoreFoundation.cc:35 | |
#4 0x10d032d24 in fleece::pure_slice::asNSString() const slice.hh:212 | |
#5 0x10b6f95e9 in fleece::MDictIterator<objc_object* __strong>::nativeKey() const CBLFleece.mm:116 | |
#6 0x10b7d5293 in -[CBLDictionary toDictionary] CBLDictionary.mm:255 | |
#7 0x10b7148ef in -[CBLDocument toDictionary] CBLDocument.mm:336 | |
#8 0x10ac7985a in __46-[DatabaseTest testConflictHandlerCalledTwice]_block_invoke DatabaseTest.m:808 | |
#9 0x10b5f520c in -[CBLDatabase saveDocument:conflictHandler:error:] CBLDatabase.mm:243 | |
#10 0x10ac74196 in -[DatabaseTest testConflictHandlerCalledTwice] DatabaseTest.m:793 | |
#11 0x7fff206b456b in __invoking___+0x8b (CoreFoundation:x86_64h+0x6456b) | |
#12 0x7fff206b440f in -[NSInvocation invoke]+0x12e (CoreFoundation:x86_64h+0x6440f) | |
#13 0x101088d39 in __24-[XCTestCase invokeTest]_block_invoke_3+0x33 (XCTest:x86_64+0x30d39) | |
#14 0x101088ced in __24-[XCTestCase invokeTest]_block_invoke_2+0x128 (XCTest:x86_64+0x30ced) | |
#15 0x101118599 in -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:]+0x40 (XCTest:x86_64+0xc0599) | |
#16 0x1010938e9 in -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:]+0x3c (XCTest:x86_64+0x3b8e9) | |
#17 0x101088b81 in __24-[XCTestCase invokeTest]_block_invoke.231+0xc6 (XCTest:x86_64+0x30b81) | |
#18 0x1010fd6d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa56d7) | |
#19 0x101088644 in -[XCTestCase invokeTest]+0x40c (XCTest:x86_64+0x30644) | |
#20 0x10108a022 in __26-[XCTestCase performTest:]_block_invoke_2+0x2a (XCTest:x86_64+0x32022) | |
#21 0x1010fd6d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa56d7) | |
#22 0x101089f59 in __26-[XCTestCase performTest:]_block_invoke.362+0x55 (XCTest:x86_64+0x31f59) | |
#23 0x10110eb9e in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xb6b9e) | |
#24 0x1010897c6 in -[XCTestCase performTest:]+0x2b6 (XCTest:x86_64+0x317c6) | |
#25 0x1010db6d9 in -[XCTest runTest]+0x38 (XCTest:x86_64+0x836d9) | |
#26 0x101083034 in __27-[XCTestSuite performTest:]_block_invoke+0x148 (XCTest:x86_64+0x2b034) | |
#27 0x101082855 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x2a855) | |
#28 0x10110eb9e in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xb6b9e) | |
#29 0x10110eaaf in +[XCTContext runInContextForTestCase:block:]+0x33 (XCTest:x86_64+0xb6aaf) | |
#30 0x10108280c in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x93 (XCTest:x86_64+0x2a80c) | |
#31 0x101082b10 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x2ab10) | |
#32 0x1010db6d9 in -[XCTest runTest]+0x38 (XCTest:x86_64+0x836d9) | |
#33 0x101083034 in __27-[XCTestSuite performTest:]_block_invoke+0x148 (XCTest:x86_64+0x2b034) | |
#34 0x101082855 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x2a855) | |
#35 0x10110eb9e in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xb6b9e) | |
#36 0x10110eaaf in +[XCTContext runInContextForTestCase:block:]+0x33 (XCTest:x86_64+0xb6aaf) | |
#37 0x10108280c in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x93 (XCTest:x86_64+0x2a80c) | |
#38 0x101082b10 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x2ab10) | |
#39 0x1010db6d9 in -[XCTest runTest]+0x38 (XCTest:x86_64+0x836d9) | |
#40 0x101083034 in __27-[XCTestSuite performTest:]_block_invoke+0x148 (XCTest:x86_64+0x2b034) | |
#41 0x101082855 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x2a855) | |
#42 0x10110eb9e in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xb6b9e) | |
#43 0x10110eaaf in +[XCTContext runInContextForTestCase:block:]+0x33 (XCTest:x86_64+0xb6aaf) | |
#44 0x10108280c in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x93 (XCTest:x86_64+0x2a80c) | |
#45 0x101082b10 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x2ab10) | |
#46 0x1010db6d9 in -[XCTest runTest]+0x38 (XCTest:x86_64+0x836d9) | |
#47 0x10112b8b4 in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke_2+0x93 (XCTest:x86_64+0xd38b4) | |
#48 0x10110eb9e in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xb6b9e) | |
#49 0x10110eaaf in +[XCTContext runInContextForTestCase:block:]+0x33 (XCTest:x86_64+0xb6aaf) | |
#50 0x10112b819 in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke+0x6e (XCTest:x86_64+0xd3819) | |
#51 0x10112b99a in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.95+0x5f (XCTest:x86_64+0xd399a) | |
#52 0x1010a9cb7 in -[XCTestObservationCenter _observeTestExecutionForBlock:]+0x144 (XCTest:x86_64+0x51cb7) | |
#53 0x10112b5df in -[XCTTestRunSession runTestsAndReturnError:]+0x266 (XCTest:x86_64+0xd35df) | |
#54 0x101066a7d in -[XCTestDriver _runTests]+0x1d1 (XCTest:x86_64+0xea7d) | |
#55 0x10110ab81 in _XCTestMain+0x6b (XCTest:x86_64+0xb2b81) | |
#56 0x100002f06 in main+0xd1 (xctest:x86_64+0x100002f06) | |
#57 0x7fff205f4620 in start+0x0 (libdyld.dylib:x86_64+0x15620) | |
0x630000004400 is located 16384 bytes inside of 58153-byte region [0x630000000400,0x63000000e729) | |
freed by thread T0 here: | |
#0 0x100181d0d in wrap__ZdaPv+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x55d0d) | |
#1 0x10d0b3baf in std::__1::default_delete<unsigned char []>::_EnableIfConvertible<unsigned char>::type std::__1::default_delete<unsigned char []>::operator()<unsigned char>(unsigned char*) const memory:2399 | |
#2 0x10d0b4652 in std::__1::enable_if<_CheckArrayPointerConversion<unsigned char*>::value, void>::type std::__1::unique_ptr<unsigned char [], std::__1::default_delete<unsigned char []> >::reset<unsigned char*>(unsigned char*) memory:2848 | |
#3 0x10d0b1e33 in std::__1::unique_ptr<unsigned char [], std::__1::default_delete<unsigned char []> >::operator=(std::__1::unique_ptr<unsigned char [], std::__1::default_delete<unsigned char []> >&&) memory:2767 | |
#4 0x10d0b1af7 in fleece::ConcurrentArena::operator=(fleece::ConcurrentArena&&) ConcurrentArena.cc:45 | |
#5 0x10d2944ae in fleece::ConcurrentMap::operator=(fleece::ConcurrentMap&&) ConcurrentMap.cc:93 | |
#6 0x10d170f0c in fleece::impl::SharedKeys::revertToCount(unsigned long) SharedKeys.cc:235 | |
#7 0x10d1727d1 in fleece::impl::PersistentSharedKeys::revert() SharedKeys.cc:296 | |
#8 0x10ba3f1e1 in litecore::DataFile::transactionEnding(litecore::Transaction*, bool) DataFile.cc:342 | |
#9 0x10ba40d94 in litecore::Transaction::abort() DataFile.cc:405 | |
#10 0x10c2cc1c1 in c4Internal::Database::endTransaction(bool) Database.cc:581 | |
#11 0x10baab8a8 in c4db_endTransaction::$_16::operator()() const c4Database.cc:298 | |
#12 0x10ba9d0f8 in c4db_endTransaction c4Database.cc:298 | |
#13 0x10b619c53 in C4Transaction::~C4Transaction() CBLCoreBridge.h:46 | |
#14 0x10b5f7ae4 in C4Transaction::~C4Transaction() CBLCoreBridge.h:44 | |
#15 0x10b60eecc in -[CBLDatabase saveDocument:withBaseDocument:concurrencyControl:asDeletion:error:] CBLDatabase.mm:1042 | |
#16 0x10b5f4a13 in -[CBLDatabase saveDocument:conflictHandler:error:] CBLDatabase.mm:226 | |
#17 0x10ac74196 in -[DatabaseTest testConflictHandlerCalledTwice] DatabaseTest.m:793 | |
#18 0x7fff206b456b in __invoking___+0x8b (CoreFoundation:x86_64h+0x6456b) | |
#19 0x7fff206b440f in -[NSInvocation invoke]+0x12e (CoreFoundation:x86_64h+0x6440f) | |
#20 0x101088d39 in __24-[XCTestCase invokeTest]_block_invoke_3+0x33 (XCTest:x86_64+0x30d39) | |
#21 0x101088ced in __24-[XCTestCase invokeTest]_block_invoke_2+0x128 (XCTest:x86_64+0x30ced) | |
#22 0x101118599 in -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:]+0x40 (XCTest:x86_64+0xc0599) | |
#23 0x1010938e9 in -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:]+0x3c (XCTest:x86_64+0x3b8e9) | |
#24 0x101088b81 in __24-[XCTestCase invokeTest]_block_invoke.231+0xc6 (XCTest:x86_64+0x30b81) | |
#25 0x1010fd6d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa56d7) | |
#26 0x101088644 in -[XCTestCase invokeTest]+0x40c (XCTest:x86_64+0x30644) | |
#27 0x10108a022 in __26-[XCTestCase performTest:]_block_invoke_2+0x2a (XCTest:x86_64+0x32022) | |
#28 0x1010fd6d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa56d7) | |
#29 0x101089f59 in __26-[XCTestCase performTest:]_block_invoke.362+0x55 (XCTest:x86_64+0x31f59) | |
previously allocated by thread T0 here: | |
#0 0x1001818fd in wrap__Znam+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x558fd) | |
#1 0x10d0b1418 in fleece::ConcurrentArena::ConcurrentArena(unsigned long) ConcurrentArena.cc:33 | |
#2 0x10d0b181c in fleece::ConcurrentArena::ConcurrentArena(unsigned long) ConcurrentArena.cc:36 | |
#3 0x10d29355f in fleece::ConcurrentMap::ConcurrentMap(int, int) ConcurrentMap.cc:75 | |
#4 0x10d293e30 in fleece::ConcurrentMap::ConcurrentMap(int, int) ConcurrentMap.cc:62 | |
#5 0x10d169229 in fleece::impl::SharedKeys::SharedKeys() SharedKeys.cc:32 | |
#6 0x10d171454 in fleece::impl::PersistentSharedKeys::PersistentSharedKeys() SharedKeys.cc:243 | |
#7 0x10ba72c08 in litecore::DocumentKeys::DocumentKeys(litecore::DataFile&) DocumentKeys.hh:32 | |
#8 0x10ba3e79c in litecore::DocumentKeys::DocumentKeys(litecore::DataFile&) DocumentKeys.hh:35 | |
#9 0x10ba3e59c in litecore::DataFile::documentKeys() const DataFile.cc:315 | |
#10 0x10bc77d79 in litecore::SQLiteDataFile::reopen() SQLiteDataFile.cc:291 | |
#11 0x10bc77113 in litecore::SQLiteDataFile::SQLiteDataFile(litecore::FilePath const&, litecore::DataFile::Delegate*, litecore::DataFile::Options const*) SQLiteDataFile.cc:191 | |
#12 0x10bc7652e in litecore::SQLiteDataFile::SQLiteDataFile(litecore::FilePath const&, litecore::DataFile::Delegate*, litecore::DataFile::Options const*) SQLiteDataFile.cc:190 | |
#13 0x10bc7648b in litecore::SQLiteDataFile::Factory::openFile(litecore::FilePath const&, litecore::DataFile::Delegate*, litecore::DataFile::Options const*) SQLiteDataFile.cc:174 | |
#14 0x10c2b9e20 in c4Internal::Database::Database(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, C4DatabaseConfig const&, litecore::FilePath&&) Database.cc:152 | |
#15 0x10c2b80e6 in c4Internal::Database::Database(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, C4DatabaseConfig) Database.cc:110 | |
#16 0x10baa763e in C4Database::C4Database(litecore::FilePath const&, C4DatabaseConfig) c4Database.hh:27 | |
#17 0x10baa56d5 in C4Database::C4Database(litecore::FilePath const&, C4DatabaseConfig) c4Database.hh:27 | |
#18 0x10baa7b0e in c4db_openNamed::$_1::operator()() const c4Database.cc:123 | |
#19 0x10ba96cb1 in c4db_openNamed c4Database.cc:122 | |
#20 0x10b6089eb in -[CBLDatabase open:] CBLDatabase.mm:802 | |
#21 0x10b5f170b in -[CBLDatabase initWithName:config:error:] CBLDatabase.mm:122 | |
#22 0x10abc0712 in -[CBLTestCase openDBNamed:error:] CBLTestCase.m:112 | |
#23 0x10abc0db8 in -[CBLTestCase openDB] CBLTestCase.m:118 | |
#24 0x10abbe120 in -[CBLTestCase setUp] CBLTestCase.m:55 | |
#25 0x10108a38f in __70-[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:]_block_invoke_2+0x1f2 (XCTest:x86_64+0x3238f) | |
#26 0x1010fd6d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa56d7) | |
#27 0x10108a171 in __70-[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:]_block_invoke+0x81 (XCTest:x86_64+0x32171) | |
#28 0x10110e4f1 in -[XCTContext _runActivityNamed:type:block:]+0x12c (XCTest:x86_64+0xb64f1) | |
#29 0x10109314d in -[XCTestCase startActivityWithTitle:type:block:]+0xb9 (XCTest:x86_64+0x3b14d) | |
SUMMARY: AddressSanitizer: heap-use-after-free (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x1da79) in wrap_memmove+0x169 | |
Shadow bytes around the buggy address: | |
0x1c6000000830: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x1c6000000840: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x1c6000000850: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x1c6000000860: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x1c6000000870: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
=>0x1c6000000880:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x1c6000000890: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x1c60000008a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x1c60000008b0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x1c60000008c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x1c60000008d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
Shadow byte legend (one shadow byte represents 8 application bytes): | |
Addressable: 00 | |
Partially addressable: 01 02 03 04 05 06 07 | |
Heap left redzone: fa | |
Freed heap region: fd | |
Stack left redzone: f1 | |
Stack mid redzone: f2 | |
Stack right redzone: f3 | |
Stack after return: f5 | |
Stack use after scope: f8 | |
Global redzone: f9 | |
Global init order: f6 | |
Poisoned by user: f7 | |
Container overflow: fc | |
Array cookie: ac | |
Intra object redzone: bb | |
ASan internal: fe | |
Left alloca redzone: ca | |
Right alloca redzone: cb | |
Shadow gap: cc | |
2021-02-24 15:16:06.569260-0800 xctest[3566:6473184] ================================================================= | |
2021-02-24 15:16:06.569375-0800 xctest[3566:6473184] ==3566==ERROR: AddressSanitizer: heap-use-after-free on address 0x630000004400 at pc 0x000100149a7a bp 0x7ffeefbfbb20 sp 0x7ffeefbfb2e0 | |
2021-02-24 15:16:06.569434-0800 xctest[3566:6473184] READ of size 4 at 0x630000004400 thread T0 | |
2021-02-24 15:16:06.569501-0800 xctest[3566:6473184] #0 0x100149a79 in wrap_memmove+0x169 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x1da79) | |
2021-02-24 15:16:06.569588-0800 xctest[3566:6473184] #1 0x7fff2065358d in __CFStringCreateImmutableFunnel3+0x4d4 (CoreFoundation:x86_64h+0x358d) | |
2021-02-24 15:16:06.569640-0800 xctest[3566:6473184] #2 0x7fff2065fb35 in CFStringCreateWithBytes+0x1a (CoreFoundation:x86_64h+0xfb35) | |
2021-02-24 15:16:06.569719-0800 xctest[3566:6473184] #3 0x10d2bd703 in fleece::pure_slice::createCFString() const slice+CoreFoundation.cc:35 | |
2021-02-24 15:16:06.569765-0800 xctest[3566:6473184] #4 0x10d032d24 in fleece::pure_slice::asNSString() const slice.hh:212 | |
2021-02-24 15:16:06.569815-0800 xctest[3566:6473184] #5 0x10b6f95e9 in fleece::MDictIterator<objc_object* __strong>::nativeKey() const CBLFleece.mm:116 | |
2021-02-24 15:16:06.569874-0800 xctest[3566:6473184] #6 0x10b7d5293 in -[CBLDictionary toDictionary] CBLDictionary.mm:255 | |
2021-02-24 15:16:06.569938-0800 xctest[3566:6473184] #7 0x10b7148ef in -[CBLDocument toDictionary] CBLDocument.mm:336 | |
2021-02-24 15:16:06.569986-0800 xctest[3566:6473184] #8 0x10ac7985a in __46-[DatabaseTest testConflictHandlerCalledTwice]_block_invoke DatabaseTest.m:808 | |
2021-02-24 15:16:06.570053-0800 xctest[3566:6473184] #9 0x10b5f520c in -[CBLDatabase saveDocument:conflictHandler:error:] CBLDatabase.mm:243 | |
2021-02-24 15:16:06.570104-0800 xctest[3566:6473184] #10 0x10ac74196 in -[DatabaseTest testConflictHandlerCalledTwice] DatabaseTest.m:793 | |
2021-02-24 15:16:06.570145-0800 xctest[3566:6473184] #11 0x7fff206b456b in __invoking___+0x8b (CoreFoundation:x86_64h+0x6456b) | |
2021-02-24 15:16:06.570299-0800 xctest[3566:6473184] #12 0x7fff206b440f in -[NSInvocation invoke]+0x12e (CoreFoundation:x86_64h+0x6440f) | |
2021-02-24 15:16:06.570358-0800 xctest[3566:6473184] #13 0x101088d39 in __24-[XCTestCase invokeTest]_block_invoke_3+0x33 (XCTest:x86_64+0x30d39) | |
2021-02-24 15:16:06.570412-0800 xctest[3566:6473184] #14 0x101088ced in __24-[XCTestCase invokeTest]_block_invoke_2+0x128 (XCTest:x86_64+0x30ced) | |
2021-02-24 15:16:06.570463-0800 xctest[3566:6473184] #15 0x101118599 in -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:]+0x40 (XCTest:x86_64+0xc0599) | |
2021-02-24 15:16:06.570502-0800 xctest[3566:6473184] #16 0x1010938e9 in -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:]+0x3c (XCTest:x86_64+0x3b8e9) | |
2021-02-24 15:16:06.570539-0800 xctest[3566:6473184] #17 0x101088b81 in __24-[XCTestCase invokeTest]_block_invoke.231+0xc6 (XCTest:x86_64+0x30b81) | |
2021-02-24 15:16:06.570810-0800 xctest[3566:6473184] #18 0x1010fd6d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa56d7) | |
2021-02-24 15:16:06.570901-0800 xctest[3566:6473184] #19 0x101088644 in -[XCTestCase invokeTest]+0x40c (XCTest:x86_64+0x30644) | |
2021-02-24 15:16:06.571063-0800 xctest[3566:6473184] #20 0x10108a022 in __26-[XCTestCase performTest:]_block_invoke_2+0x2a (XCTest:x86_64+0x32022) | |
2021-02-24 15:16:06.571251-0800 xctest[3566:6473184] #21 0x1010fd6d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa56d7) | |
2021-02-24 15:16:06.571313-0800 xctest[3566:6473184] #22 0x101089f59 in __26-[XCTestCase performTest:]_block_invoke.362+0x55 (XCTest:x86_64+0x31f59) | |
2021-02-24 15:16:06.571447-0800 xctest[3566:6473184] #23 0x10110eb9e in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xb6b9e) | |
2021-02-24 15:16:06.571491-0800 xctest[3566:6473184] #24 0x1010897c6 in -[XCTestCase performTest:]+0x2b6 (XCTest:x86_64+0x317c6) | |
2021-02-24 15:16:06.571568-0800 xctest[3566:6473184] #25 0x1010db6d9 in -[XCTest runTest]+0x38 (XCTest:x86_64+0x836d9) | |
2021-02-24 15:16:06.571617-0800 xctest[3566:6473184] #26 0x101083034 in __27-[XCTestSuite performTest:]_block_invoke+0x148 (XCTest:x86_64+0x2b034) | |
2021-02-24 15:16:06.571662-0800 xctest[3566:6473184] #27 0x101082855 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x2a855) | |
2021-02-24 15:16:06.571743-0800 xctest[3566:6473184] #28 0x10110eb9e in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xb6b9e) | |
2021-02-24 15:16:06.571791-0800 xctest[3566:6473184] #29 0x10110eaaf in +[XCTContext runInContextForTestCase:block:]+0x33 (XCTest:x86_64+0xb6aaf) | |
2021-02-24 15:16:06.571830-0800 xctest[3566:6473184] #30 0x10108280c in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x93 (XCTest:x86_64+0x2a80c) | |
2021-02-24 15:16:06.571912-0800 xctest[3566:6473184] #31 0x101082b10 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x2ab10) | |
2021-02-24 15:16:06.571961-0800 xctest[3566:6473184] #32 0x1010db6d9 in -[XCTest runTest]+0x38 (XCTest:x86_64+0x836d9) | |
2021-02-24 15:16:06.572014-0800 xctest[3566:6473184] #33 0x101083034 in __27-[XCTestSuite performTest:]_block_invoke+0x148 (XCTest:x86_64+0x2b034) | |
2021-02-24 15:16:06.572079-0800 xctest[3566:6473184] #34 0x101082855 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x2a855) | |
2021-02-24 15:16:06.572123-0800 xctest[3566:6473184] #35 0x10110eb9e in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xb6b9e) | |
2021-02-24 15:16:06.572161-0800 xctest[3566:6473184] #36 0x10110eaaf in +[XCTContext runInContextForTestCase:block:]+0x33 (XCTest:x86_64+0xb6aaf) | |
2021-02-24 15:16:06.572451-0800 xctest[3566:6473184] #37 0x10108280c in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x93 (XCTest:x86_64+0x2a80c) | |
2021-02-24 15:16:06.572511-0800 xctest[3566:6473184] #38 0x101082b10 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x2ab10) | |
2021-02-24 15:16:06.572554-0800 xctest[3566:6473184] #39 0x1010db6d9 in -[XCTest runTest]+0x38 (XCTest:x86_64+0x836d9) | |
2021-02-24 15:16:06.572597-0800 xctest[3566:6473184] #40 0x101083034 in __27-[XCTestSuite performTest:]_block_invoke+0x148 (XCTest:x86_64+0x2b034) | |
2021-02-24 15:16:06.572650-0800 xctest[3566:6473184] #41 0x101082855 in __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke+0x17 (XCTest:x86_64+0x2a855) | |
2021-02-24 15:16:06.572767-0800 xctest[3566:6473184] #42 0x10110eb9e in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xb6b9e) | |
2021-02-24 15:16:06.572827-0800 xctest[3566:6473184] #43 0x10110eaaf in +[XCTContext runInContextForTestCase:block:]+0x33 (XCTest:x86_64+0xb6aaf) | |
2021-02-24 15:16:06.572955-0800 xctest[3566:6473184] #44 0x10108280c in -[XCTestSuite _performProtectedSectionForTest:testSection:]+0x93 (XCTest:x86_64+0x2a80c) | |
2021-02-24 15:16:06.573024-0800 xctest[3566:6473184] #45 0x101082b10 in -[XCTestSuite performTest:]+0x121 (XCTest:x86_64+0x2ab10) | |
2021-02-24 15:16:06.573140-0800 xctest[3566:6473184] #46 0x1010db6d9 in -[XCTest runTest]+0x38 (XCTest:x86_64+0x836d9) | |
2021-02-24 15:16:06.573247-0800 xctest[3566:6473184] #47 0x10112b8b4 in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke_2+0x93 (XCTest:x86_64+0xd38b4) | |
2021-02-24 15:16:06.573579-0800 xctest[3566:6473184] #48 0x10110eb9e in +[XCTContext runInContextForTestCase:markAsReportingBase:block:]+0xdb (XCTest:x86_64+0xb6b9e) | |
2021-02-24 15:16:06.573676-0800 xctest[3566:6473184] #49 0x10110eaaf in +[XCTContext runInContextForTestCase:block:]+0x33 (XCTest:x86_64+0xb6aaf) | |
2021-02-24 15:16:06.573746-0800 xctest[3566:6473184] #50 0x10112b819 in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke+0x6e (XCTest:x86_64+0xd3819) | |
2021-02-24 15:16:06.573910-0800 xctest[3566:6473184] #51 0x10112b99a in __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.95+0x5f (XCTest:x86_64+0xd399a) | |
2021-02-24 15:16:06.574109-0800 xctest[3566:6473184] #52 0x1010a9cb7 in -[XCTestObservationCenter _observeTestExecutionForBlock:]+0x144 (XCTest:x86_64+0x51cb7) | |
2021-02-24 15:16:06.574297-0800 xctest[3566:6473184] #53 0x10112b5df in -[XCTTestRunSession runTestsAndReturnError:]+0x266 (XCTest:x86_64+0xd35df) | |
2021-02-24 15:16:06.574351-0800 xctest[3566:6473184] #54 0x101066a7d in -[XCTestDriver _runTests]+0x1d1 (XCTest:x86_64+0xea7d) | |
2021-02-24 15:16:06.574397-0800 xctest[3566:6473184] #55 0x10110ab81 in _XCTestMain+0x6b (XCTest:x86_64+0xb2b81) | |
2021-02-24 15:16:06.574435-0800 xctest[3566:6473184] #56 0x100002f06 in main+0xd1 (xctest:x86_64+0x100002f06) | |
2021-02-24 15:16:06.574480-0800 xctest[3566:6473184] #57 0x7fff205f4620 in start+0x0 (libdyld.dylib:x86_64+0x15620) | |
2021-02-24 15:16:06.574523-0800 xctest[3566:6473184] | |
2021-02-24 15:16:06.574561-0800 xctest[3566:6473184] 0x630000004400 is located 16384 bytes inside of 58153-byte region [0x630000000400,0x63000000e729) | |
2021-02-24 15:16:06.574634-0800 xctest[3566:6473184] freed by thread T0 here: | |
2021-02-24 15:16:06.574837-0800 xctest[3566:6473184] #0 0x100181d0d in wrap__ZdaPv+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x55d0d) | |
2021-02-24 15:16:06.574957-0800 xctest[3566:6473184] #1 0x10d0b3baf in std::__1::default_delete<unsigned char []>::_EnableIfConvertible<unsigned char>::type std::__1::default_delete<unsigned char []>::operator()<unsigned char>(unsigned char*) const memory:2399 | |
2021-02-24 15:16:06.575011-0800 xctest[3566:6473184] #2 0x10d0b4652 in std::__1::enable_if<_CheckArrayPointerConversion<unsigned char*>::value, void>::type std::__1::unique_ptr<unsigned char [], std::__1::default_delete<unsigned char []> >::reset<unsigned char*>(unsigned char*) memory:2848 | |
2021-02-24 15:16:06.575120-0800 xctest[3566:6473184] #3 0x10d0b1e33 in std::__1::unique_ptr<unsigned char [], std::__1::default_delete<unsigned char []> >::operator=(std::__1::unique_ptr<unsigned char [], std::__1::default_delete<unsigned char []> >&&) memory:2767 | |
2021-02-24 15:16:06.575172-0800 xctest[3566:6473184] #4 0x10d0b1af7 in fleece::ConcurrentArena::operator=(fleece::ConcurrentArena&&) ConcurrentArena.cc:45 | |
2021-02-24 15:16:06.575273-0800 xctest[3566:6473184] #5 0x10d2944ae in fleece::ConcurrentMap::operator=(fleece::ConcurrentMap&&) ConcurrentMap.cc:93 | |
2021-02-24 15:16:06.575339-0800 xctest[3566:6473184] #6 0x10d170f0c in fleece::impl::SharedKeys::revertToCount(unsigned long) SharedKeys.cc:235 | |
2021-02-24 15:16:06.575387-0800 xctest[3566:6473184] #7 0x10d1727d1 in fleece::impl::PersistentSharedKeys::revert() SharedKeys.cc:296 | |
2021-02-24 15:16:06.575504-0800 xctest[3566:6473184] #8 0x10ba3f1e1 in litecore::DataFile::transactionEnding(litecore::Transaction*, bool) DataFile.cc:342 | |
2021-02-24 15:16:06.575620-0800 xctest[3566:6473184] #9 0x10ba40d94 in litecore::Transaction::abort() DataFile.cc:405 | |
2021-02-24 15:16:06.575679-0800 xctest[3566:6473184] #10 0x10c2cc1c1 in c4Internal::Database::endTransaction(bool) Database.cc:581 | |
2021-02-24 15:16:06.575889-0800 xctest[3566:6473184] #11 0x10baab8a8 in c4db_endTransaction::$_16::operator()() const c4Database.cc:298 | |
2021-02-24 15:16:06.575968-0800 xctest[3566:6473184] #12 0x10ba9d0f8 in c4db_endTransaction c4Database.cc:298 | |
2021-02-24 15:16:06.576129-0800 xctest[3566:6473184] #13 0x10b619c53 in C4Transaction::~C4Transaction() CBLCoreBridge.h:46 | |
2021-02-24 15:16:06.576227-0800 xctest[3566:6473184] #14 0x10b5f7ae4 in C4Transaction::~C4Transaction() CBLCoreBridge.h:44 | |
2021-02-24 15:16:06.576297-0800 xctest[3566:6473184] #15 0x10b60eecc in -[CBLDatabase saveDocument:withBaseDocument:concurrencyControl:asDeletion:error:] CBLDatabase.mm:1042 | |
2021-02-24 15:16:06.576347-0800 xctest[3566:6473184] #16 0x10b5f4a13 in -[CBLDatabase saveDocument:conflictHandler:error:] CBLDatabase.mm:226 | |
2021-02-24 15:16:06.576454-0800 xctest[3566:6473184] #17 0x10ac74196 in -[DatabaseTest testConflictHandlerCalledTwice] DatabaseTest.m:793 | |
2021-02-24 15:16:06.576555-0800 xctest[3566:6473184] #18 0x7fff206b456b in __invoking___+0x8b (CoreFoundation:x86_64h+0x6456b) | |
2021-02-24 15:16:06.576727-0800 xctest[3566:6473184] #19 0x7fff206b440f in -[NSInvocation invoke]+0x12e (CoreFoundation:x86_64h+0x6440f) | |
2021-02-24 15:16:06.576914-0800 xctest[3566:6473184] #20 0x101088d39 in __24-[XCTestCase invokeTest]_block_invoke_3+0x33 (XCTest:x86_64+0x30d39) | |
2021-02-24 15:16:06.576998-0800 xctest[3566:6473184] #21 0x101088ced in __24-[XCTestCase invokeTest]_block_invoke_2+0x128 (XCTest:x86_64+0x30ced) | |
2021-02-24 15:16:06.577058-0800 xctest[3566:6473184] #22 0x101118599 in -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:]+0x40 (XCTest:x86_64+0xc0599) | |
2021-02-24 15:16:06.577102-0800 xctest[3566:6473184] #23 0x1010938e9 in -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:]+0x3c (XCTest:x86_64+0x3b8e9) | |
2021-02-24 15:16:06.577170-0800 xctest[3566:6473184] #24 0x101088b81 in __24-[XCTestCase invokeTest]_block_invoke.231+0xc6 (XCTest:x86_64+0x30b81) | |
2021-02-24 15:16:06.577418-0800 xctest[3566:6473184] #25 0x1010fd6d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa56d7) | |
2021-02-24 15:16:06.577500-0800 xctest[3566:6473184] #26 0x101088644 in -[XCTestCase invokeTest]+0x40c (XCTest:x86_64+0x30644) | |
2021-02-24 15:16:06.577551-0800 xctest[3566:6473184] #27 0x10108a022 in __26-[XCTestCase performTest:]_block_invoke_2+0x2a (XCTest:x86_64+0x32022) | |
2021-02-24 15:16:06.577641-0800 xctest[3566:6473184] #28 0x1010fd6d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa56d7) | |
2021-02-24 15:16:06.577695-0800 xctest[3566:6473184] #29 0x101089f59 in __26-[XCTestCase performTest:]_block_invoke.362+0x55 (XCTest:x86_64+0x31f59) | |
2021-02-24 15:16:06.577738-0800 xctest[3566:6473184] | |
2021-02-24 15:16:06.577797-0800 xctest[3566:6473184] previously allocated by thread T0 here: | |
2021-02-24 15:16:06.577856-0800 xctest[3566:6473184] #0 0x1001818fd in wrap__Znam+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x558fd) | |
2021-02-24 15:16:06.577898-0800 xctest[3566:6473184] #1 0x10d0b1418 in fleece::ConcurrentArena::ConcurrentArena(unsigned long) ConcurrentArena.cc:33 | |
2021-02-24 15:16:06.577967-0800 xctest[3566:6473184] #2 0x10d0b181c in fleece::ConcurrentArena::ConcurrentArena(unsigned long) ConcurrentArena.cc:36 | |
2021-02-24 15:16:06.578034-0800 xctest[3566:6473184] #3 0x10d29355f in fleece::ConcurrentMap::ConcurrentMap(int, int) ConcurrentMap.cc:75 | |
2021-02-24 15:16:06.578074-0800 xctest[3566:6473184] #4 0x10d293e30 in fleece::ConcurrentMap::ConcurrentMap(int, int) ConcurrentMap.cc:62 | |
2021-02-24 15:16:06.578148-0800 xctest[3566:6473184] #5 0x10d169229 in fleece::impl::SharedKeys::SharedKeys() SharedKeys.cc:32 | |
2021-02-24 15:16:06.578204-0800 xctest[3566:6473184] #6 0x10d171454 in fleece::impl::PersistentSharedKeys::PersistentSharedKeys() SharedKeys.cc:243 | |
2021-02-24 15:16:06.578267-0800 xctest[3566:6473184] #7 0x10ba72c08 in litecore::DocumentKeys::DocumentKeys(litecore::DataFile&) DocumentKeys.hh:32 | |
2021-02-24 15:16:06.578497-0800 xctest[3566:6473184] #8 0x10ba3e79c in litecore::DocumentKeys::DocumentKeys(litecore::DataFile&) DocumentKeys.hh:35 | |
2021-02-24 15:16:06.578591-0800 xctest[3566:6473184] #9 0x10ba3e59c in litecore::DataFile::documentKeys() const DataFile.cc:315 | |
2021-02-24 15:16:06.578665-0800 xctest[3566:6473184] #10 0x10bc77d79 in litecore::SQLiteDataFile::reopen() SQLiteDataFile.cc:291 | |
2021-02-24 15:16:06.578712-0800 xctest[3566:6473184] #11 0x10bc77113 in litecore::SQLiteDataFile::SQLiteDataFile(litecore::FilePath const&, litecore::DataFile::Delegate*, litecore::DataFile::Options const*) SQLiteDataFile.cc:191 | |
2021-02-24 15:16:06.578820-0800 xctest[3566:6473184] #12 0x10bc7652e in litecore::SQLiteDataFile::SQLiteDataFile(litecore::FilePath const&, litecore::DataFile::Delegate*, litecore::DataFile::Options const*) SQLiteDataFile.cc:190 | |
2021-02-24 15:16:06.578870-0800 xctest[3566:6473184] #13 0x10bc7648b in litecore::SQLiteDataFile::Factory::openFile(litecore::FilePath const&, litecore::DataFile::Delegate*, litecore::DataFile::Options const*) SQLiteDataFile.cc:174 | |
2021-02-24 15:16:06.578971-0800 xctest[3566:6473184] #14 0x10c2b9e20 in c4Internal::Database::Database(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, C4DatabaseConfig const&, litecore::FilePath&&) Database.cc:152 | |
2021-02-24 15:16:06.579024-0800 xctest[3566:6473184] #15 0x10c2b80e6 in c4Internal::Database::Database(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, C4DatabaseConfig) Database.cc:110 | |
2021-02-24 15:16:06.579103-0800 xctest[3566:6473184] #16 0x10baa763e in C4Database::C4Database(litecore::FilePath const&, C4DatabaseConfig) c4Database.hh:27 | |
2021-02-24 15:16:06.579155-0800 xctest[3566:6473184] #17 0x10baa56d5 in C4Database::C4Database(litecore::FilePath const&, C4DatabaseConfig) c4Database.hh:27 | |
2021-02-24 15:16:06.579196-0800 xctest[3566:6473184] #18 0x10baa7b0e in c4db_openNamed::$_1::operator()() const c4Database.cc:123 | |
2021-02-24 15:16:06.579254-0800 xctest[3566:6473184] #19 0x10ba96cb1 in c4db_openNamed c4Database.cc:122 | |
2021-02-24 15:16:06.579321-0800 xctest[3566:6473184] #20 0x10b6089eb in -[CBLDatabase open:] CBLDatabase.mm:802 | |
2021-02-24 15:16:06.579364-0800 xctest[3566:6473184] #21 0x10b5f170b in -[CBLDatabase initWithName:config:error:] CBLDatabase.mm:122 | |
2021-02-24 15:16:06.579403-0800 xctest[3566:6473184] #22 0x10abc0712 in -[CBLTestCase openDBNamed:error:] CBLTestCase.m:112 | |
2021-02-24 15:16:06.579481-0800 xctest[3566:6473184] #23 0x10abc0db8 in -[CBLTestCase openDB] CBLTestCase.m:118 | |
2021-02-24 15:16:06.579529-0800 xctest[3566:6473184] #24 0x10abbe120 in -[CBLTestCase setUp] CBLTestCase.m:55 | |
2021-02-24 15:16:06.579571-0800 xctest[3566:6473184] #25 0x10108a38f in __70-[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:]_block_invoke_2+0x1f2 (XCTest:x86_64+0x3238f) | |
2021-02-24 15:16:06.579642-0800 xctest[3566:6473184] #26 0x1010fd6d7 in -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]+0xb2 (XCTest:x86_64+0xa56d7) | |
2021-02-24 15:16:06.579689-0800 xctest[3566:6473184] #27 0x10108a171 in __70-[XCTestCase _shouldContinueAfterPerformingSetUpSequenceWithSelector:]_block_invoke+0x81 (XCTest:x86_64+0x32171) | |
2021-02-24 15:16:06.579736-0800 xctest[3566:6473184] #28 0x10110e4f1 in -[XCTContext _runActivityNamed:type:block:]+0x12c (XCTest:x86_64+0xb64f1) | |
2021-02-24 15:16:06.579813-0800 xctest[3566:6473184] #29 0x10109314d in -[XCTestCase startActivityWithTitle:type:block:]+0xb9 (XCTest:x86_64+0x3b14d) | |
2021-02-24 15:16:06.579869-0800 xctest[3566:6473184] | |
2021-02-24 15:16:06.579907-0800 xctest[3566:6473184] SUMMARY: AddressSanitizer: heap-use-after-free (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x1da79) in wrap_memmove+0x169 | |
2021-02-24 15:16:06.579978-0800 xctest[3566:6473184] Shadow bytes around the buggy address: | |
2021-02-24 15:16:06.580031-0800 xctest[3566:6473184] 0x1c6000000830: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
2021-02-24 15:16:06.580071-0800 xctest[3566:6473184] 0x1c6000000840: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
2021-02-24 15:16:06.580108-0800 xctest[3566:6473184] 0x1c6000000850: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
2021-02-24 15:16:06.580175-0800 xctest[3566:6473184] 0x1c6000000860: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
2021-02-24 15:16:06.580214-0800 xctest[3566:6473184] 0x1c6000000870: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
2021-02-24 15:16:06.580250-0800 xctest[3566:6473184] =>0x1c6000000880:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
2021-02-24 15:16:06.580359-0800 xctest[3566:6473184] 0x1c6000000890: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
2021-02-24 15:16:06.580503-0800 xctest[3566:6473184] 0x1c60000008a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
2021-02-24 15:16:06.580644-0800 xctest[3566:6473184] 0x1c60000008b0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
2021-02-24 15:16:06.580706-0800 xctest[3566:6473184] 0x1c60000008c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
2021-02-24 15:16:06.580777-0800 xctest[3566:6473184] 0x1c60000008d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
2021-02-24 15:16:06.580829-0800 xctest[3566:6473184] Shadow byte legend (one shadow byte represents 8 application bytes): | |
2021-02-24 15:16:06.580880-0800 xctest[3566:6473184] Addressable: 00 | |
2021-02-24 15:16:06.580993-0800 xctest[3566:6473184] Partially addressable: 01 02 03 04 05 06 07 | |
2021-02-24 15:16:06.581040-0800 xctest[3566:6473184] Heap left redzone: fa | |
2021-02-24 15:16:06.581138-0800 xctest[3566:6473184] Freed heap region: fd | |
2021-02-24 15:16:06.581244-0800 xctest[3566:6473184] Stack left redzone: f1 | |
2021-02-24 15:16:06.581299-0800 xctest[3566:6473184] Stack mid redzone: f2 | |
2021-02-24 15:16:06.581338-0800 xctest[3566:6473184] Stack right redzone: f3 | |
2021-02-24 15:16:06.581396-0800 xctest[3566:6473184] Stack after return: f5 | |
2021-02-24 15:16:06.581453-0800 xctest[3566:6473184] Stack use after scope: f8 | |
2021-02-24 15:16:06.581492-0800 xctest[3566:6473184] Global redzone: f9 | |
2021-02-24 15:16:06.581532-0800 xctest[3566:6473184] Global init order: f6 | |
2021-02-24 15:16:06.581599-0800 xctest[3566:6473184] Poisoned by user: f7 | |
2021-02-24 15:16:06.581643-0800 xctest[3566:6473184] Container overflow: fc | |
2021-02-24 15:16:06.581689-0800 xctest[3566:6473184] Array cookie: ac | |
2021-02-24 15:16:06.581725-0800 xctest[3566:6473184] Intra object redzone: bb | |
2021-02-24 15:16:06.581797-0800 xctest[3566:6473184] ASan internal: fe | |
2021-02-24 15:16:06.581838-0800 xctest[3566:6473184] Left alloca redzone: ca | |
2021-02-24 15:16:06.581925-0800 xctest[3566:6473184] Right alloca redzone: cb | |
2021-02-24 15:16:06.581966-0800 xctest[3566:6473184] Shadow gap: cc | |
==3566==ABORTING | |
AddressSanitizer report breakpoint hit. Use 'thread info -s' to get extended information about the report. | |
Program ended with exit code: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment