You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.
i get a bad access when i am using enumerateFromIndex, normal access with storedDataForIndexKey works.
Here the stack trace:
#0 0x017bfeff in memcpy$VARIANT$sse42 ()
#1 0x0016666b in std::string::append(char const*, unsigned long) ()
#2 0x000448c8 in leveldb::AppendInternalKey(std::string*, leveldb::ParsedInternalKey const&) at /Users/florian/GitHub/NULevelDB/leveldb/db/dbformat.cc:19
#3 0x0002e466 in leveldb::(anonymous namespace)::DBIter::Seek(leveldb::Slice const&) at /Users/florian/GitHub/NULevelDB/leveldb/db/db_iter.cc:260
#4 0x0001a813 in NULDBIterateIndex(leveldb::DB*, leveldb::Slice&, leveldb::Slice&, signed char ()(unsigned long long, NSData*) block_pointer) at /Users/florian/GitHub/NULevelDB/Classes/NULDBDB+Enumeration.mm:111
#5 0x00019c07 in -[NULDBDB(Enumeration) enumerateFromIndex:to:block:] at /Users/florian/GitHub/NULevelDB/Classes/NULDBDB+Enumeration.mm:186
#6 0x00002cda in -[NULevelDB_TestAppAppDelegate runTests] at /Users/florian/GitHub/NULevelDB/Tests/NULevelDB-TestApp/NULevelDB-TestApp/NULevelDB_TestAppAppDelegate.m:90
Here a simple example that will crash
NSData* data = [NSData dataWithContentsOfFile:@"~/GitHub/NULevelDB/README.md"];
[db storeData: data forIndexKey:10 error:NULL];
[db storeData: data forIndexKey:11 error:NULL];
[db storeData: data forIndexKey:12 error:NULL];
[db storeData: data forIndexKey:13 error:NULL];
[db storeData: data forIndexKey:14 error:NULL];
[db storeData: data forIndexKey:15 error:NULL];
NSLog(@"%@",[db storedDataForIndexKey:10 error:NULL]);
[db enumerateFromIndex:10 to:15 block:^(uint64_t key, NSData *value) {
NSLog(@"%@",value);
return YES;
}];
Thanks!
Greetings,
Florian
The text was updated successfully, but these errors were encountered:
Hi,
i get a bad access when i am using enumerateFromIndex, normal access with storedDataForIndexKey works.
Here the stack trace:
Here a simple example that will crash
Thanks!
Greetings,
Florian
The text was updated successfully, but these errors were encountered: