Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to upgrade encrypted file format #1039

Closed
beeender opened this issue Aug 24, 2015 · 1 comment
Closed

Failed to upgrade encrypted file format #1039

beeender opened this issue Aug 24, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@beeender
Copy link
Contributor

Realm file (Encrypted one):
https://drive.google.com/a/tightdb.com/file/d/0B2It_kNwIwTBb1Uxakw2WExpSTA/view?usp=sharing

Decrypted copy (for easy debugging):
https://drive.google.com/a/tightdb.com/file/d/0B2It_kNwIwTBS0xUeTA3WkZXQzA/view?usp=sharing

Encryption key:
[33, 122, -117, 91, -37, -8, 31, 43, -21, 20, -32, -74, -27, -61, -17, -125, -37, 15, 65, 69, -115, -60, 92, -72, 116, -38, 96, 64, 27, 109, 48, 54, 111, -75, 99, -61, -51, 122, -91, 111, 22, 38, -86, 30, 78, -28, -6, 41, -67, -123, 60, -89, 40, -81, 60, 110, -79, -98, -105, 17, -20, 51, 17, 111]

Crash Log:
--------- beginning of crash
F/libc ( 4949): Fatal signal 6 (SIGABRT), code -6 in tid 4967 (ationTestRunner)
I/DEBUG ( 87): *** *** *** *** *** *** *** *** *** *** *** *** *** *** ** ***
I/DEBUG ( 87): Build fingerprint: 'generic/vbox86p/vbox86p:5.1/LMY47D/buildbot06092001:userdebug/test-keys'
I/DEBUG ( 87): Revision: '0'
I/DEBUG ( 87): ABI: 'x86'
I/DEBUG ( 87): pid: 4949, tid: 4967, name: ationTestRunner >>> io.realm.test <<<
I/DEBUG ( 87): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
I/DEBUG ( 87): eax 00000000 ebx 00001355 ecx 00001367 edx 00000006
I/DEBUG ( 87): esi a354ddb8 edi 00000000
I/DEBUG ( 87): xcs 00000073 xds 0000007b xes 0000007b xfs 0000006f xss 0000007b
I/DEBUG ( 87): eip b74ea3c6 ebp 00001367 esp a354b8a0 flags 00200282
I/DEBUG ( 87):
I/DEBUG ( 87): backtrace:
I/DEBUG ( 87): #00 pc 000753c6 /system/lib/libc.so (tgkill+22)
I/DEBUG ( 87): #1 pc 000221ab /system/lib/libc.so (pthread_kill+155)
I/DEBUG ( 87): #2 pc 00023a24 /system/lib/libc.so (raise+36)
I/DEBUG ( 87): #3 pc 0001be24 /system/lib/libc.so (abort+84)
I/DEBUG ( 87): #4 pc 001eccf4 /data/app/io.realm.test-2/lib/x86/librealm-jni.so (please_report_this_error_to_help_at_realm_dot_io.26983+20)
I/DEBUG ( 87): #5 pc 001ede35 /data/app/io.realm.test-2/lib/x86/librealm-jni.so (realm::util::terminate_internal(std::basic_stringstream<char, std::char_traits, std::allocator >&)+163)
I/DEBUG ( 87): #6 pc 001ee0db /data/app/io.realm.test-2/lib/x86/librealm-jni.so (_ZN5realm4util9terminateEPKcS2_l.local.5562+153)
I/DEBUG ( 87): #7 pc 00146e54 /data/app/io.realm.test-2/lib/x86/librealm-jni.so (_ZN5realm5Table19upgrade_file_formatEv.26818+448)
I/DEBUG ( 87): #8 pc 00146f86 /data/app/io.realm.test-2/lib/x86/librealm-jni.so (_ZN5realm5Group19upgrade_file_formatEv.26764+218)
I/DEBUG ( 87): #9 pc 001470f8 /data/app/io.realm.test-2/lib/x86/librealm-jni.so (realm::SharedGroup::do_open_1(std::string const&, bool, realm::SharedGroup::DurabilityLevel, bool, char const
, bool)+232)
I/DEBUG ( 87): #10 pc 0016519a /data/app/io.realm.test-2/lib/x86/librealm-jni.so (Java_io_realm_internal_SharedGroup_createNativeWithImplicitTransactions+1002)
I/DEBUG ( 87): #11 pc 000c0dcb /data/dalvik-cache/x86/data@app@io.realm.test-2@base.apk@classes.dex
I/DEBUG ( 87): #12 pc 000ffca7 [stack:4967]
I/DEBUG ( 87):

@danielpovlsen
Copy link
Contributor

Closing this. Was not encryption as suspected, but an indexed bool column, that we did not catch with our upgrade function. Fixed in #1076

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants