question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashes when linking with debug version of Sync

See original GitHub issue

Moving #5346 to a separate issue, so we can track it.

Observations so far:

  • Only crash on armeabi-v7a with objectServerDebug builds. x86 and 64 bit variants do not crash.
  • Debug builds with baseDebug do not crash.
  • Release builds for both base and ObjectServer do not crash. This only effect debug builds.
  • Using -O0/01/02 instead of -Og does not make a difference.

The problematic method is:

void ObjectStore::set_schema_columns(Group const& group, Schema& schema)
{
    for (auto& object_schema : schema) {
        auto table = table_for_object_schema(group, object_schema);
        if (!table) {
            continue;
        }
        for (auto& property : object_schema.persisted_properties) {
            property.table_column = table->get_column_index(property.name);
        }
    }
}

From https://github.com/realm/realm-object-store/blob/master/src/object_store.cpp#L777

For some reason Core returns realm::not_found (4294967295) for all non-latin names in get_column_index, while ascii names are correctly found. The columns have been verified to be there with the correct name (by going around the ObjectStore Property and directly querying Cores Table

image

Example of crash:

09-30 14:46:42.389 6362-6378/? E/REALM: /home/jenkins/workspace/lm_realm-core_release_4.0.0-LXTALRDDGEXO6MUGNEPKX627PBBN5UZMAYUDJFS3OHOQUQGYVBKA@5/src/realm/table.cpp:3270: [realm-core-4.0.0] Assertion failed: col_ndx < get_column_count() [4294967295, 5]
                                        IMPORTANT: if you see this error, please send this log to help@realm.io.
09-30 14:46:42.390 6362-6378/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 6378 (roidJUnitRunner)
09-30 14:46:42.583 6386-6386/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-30 14:46:42.583 6386-6386/? A/DEBUG: Build fingerprint: 'google/angler/angler:8.0.0/OPR6.170623.019/4299446:user/release-keys'
09-30 14:46:42.583 6386-6386/? A/DEBUG: Revision: '0'
09-30 14:46:42.583 6386-6386/? A/DEBUG: ABI: 'arm'
09-30 14:46:42.583 6386-6386/? A/DEBUG: pid: 6362, tid: 6378, name: roidJUnitRunner  >>> io.realm.test <<<
09-30 14:46:42.583 6386-6386/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
09-30 14:46:42.584 6386-6386/? A/DEBUG:     r0 00000000  r1 000018ea  r2 00000006  r3 00000008
09-30 14:46:42.584 6386-6386/? A/DEBUG:     r4 000018da  r5 000018ea  r6 d4dc4ae8  r7 0000010c
09-30 14:46:42.584 6386-6386/? A/DEBUG:     r8 00000056  r9 f045be00  sl d4dc4e00  fp d4dc4b04
09-30 14:46:42.584 6386-6386/? A/DEBUG:     ip 00000000  sp d4dc4ad8  lr f24ac3b7  pc f24dc91c  cpsr 200f0010
09-30 14:46:42.669 6386-6386/? A/DEBUG: backtrace:
09-30 14:46:42.669 6386-6386/? A/DEBUG:     #00 pc 0004a91c  /system/lib/libc.so (tgkill+12)
09-30 14:46:42.669 6386-6386/? A/DEBUG:     #01 pc 0001a3b3  /system/lib/libc.so (abort+54)
09-30 14:46:42.669 6386-6386/? A/DEBUG:     #02 pc 0081255c  /data/app/io.realm.test-XOMfyZ3eUFI23v8N6vwQtw==/lib/arm/librealm-jni.so (please_report_this_error_to_help_at_realm_dot_io+8)
09-30 14:46:42.669 6386-6386/? A/DEBUG:     #03 pc 008126b8  /data/app/io.realm.test-XOMfyZ3eUFI23v8N6vwQtw==/lib/arm/librealm-jni.so (_ZN5realm4utilL18terminate_internalERSt18basic_stringstreamIcSt11char_traitsIcESaIcEE+292)
09-30 14:46:42.669 6386-6386/? A/DEBUG:     #04 pc 00812864  /data/app/io.realm.test-XOMfyZ3eUFI23v8N6vwQtw==/lib/arm/librealm-jni.so (_ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE+204)
09-30 14:46:42.669 6386-6386/? A/DEBUG:     #05 pc 0022e4a4  /data/app/io.realm.test-XOMfyZ3eUFI23v8N6vwQtw==/lib/arm/librealm-jni.so (_ZN5realm4util9terminateIJjjEEEvPKcS3_lDpT_+64)
09-30 14:46:42.669 6386-6386/? A/DEBUG:     #06 pc 007c419c  /data/app/io.realm.test-XOMfyZ3eUFI23v8N6vwQtw==/lib/arm/librealm-jni.so (_ZN5realm5Table3setIxEEvjjT_b+116)
09-30 14:46:42.669 6386-6386/? A/DEBUG:     #07 pc 002aba38  /data/app/io.realm.test-XOMfyZ3eUFI23v8N6vwQtw==/lib/arm/librealm-jni.so (Java_io_realm_internal_UncheckedRow_nativeSetLong+380)
09-30 14:46:42.669 6386-6386/? A/DEBUG:     #08 pc 0002ea8d  /data/app/io.realm.test-XOMfyZ3eUFI23v8N6vwQtw==/oat/arm/base.odex (offset 0x21000)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
beeendercommented, Oct 3, 2017

switching to cmake will ensure that. And i am closing to create a PR in sync side.

0reactions
cmelchiorcommented, Oct 24, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Editing CSS with Browser Link enabled can crash Visual Studio
Visual Studio crashes when editing a CSS file in debug mode, ... It looks like the crash is being caused by the CSS...
Read more >
react-native run-android build crashes on launch without red ...
I'm trying to build the debug version of my app on android. the offline version works alright. (with the react-native bundle ... )....
Read more >
462164 – GDB crash while running invoked by DDD during ...
Bug 462164 - GDB crash while running invoked by DDD during 'thread apply all backtrace' during debugging firefox; DDD displays 'DDD: No source'...
Read more >
Crashes | Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
Crash in release mode works fine in debug after XF 3.5 update
We would like to let you know that `App crashes on android in release mode with Syncfusion 16.4.0.53 and Xamarin Forms 3.5 version`...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found