realm / realm-kotlin

Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.
Apache License 2.0
889 stars 52 forks source link

Flaky test: ` realm::Transaction::get_version_of_current_transaction()` crashes on Ubuntu #1626

Open cmelchior opened 5 months ago

cmelchior commented 5 months ago

This particular crash has now been seen a number of times, but only on Ubuntu. I am not sure if it is the same test crashing every time or different ones.

io.realm.kotlin.test.common.RealmLogTests[jvm] > addLogger_twice[jvm] STANDARD_OUT
    2024-Jan-11 11:18:32,891 TRACE: [REALM] Hello
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f866cfee314, pid=2166, tid=2172
#
# JRE version: OpenJDK Runtime Environment Zulu11.68+17-CA (11.0.21+9) (build 11.0.21+9-LTS)
# Java VM: OpenJDK 64-Bit Server VM Zulu11.68+17-CA (11.0.21+9-LTS, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [librealmc.so+0x3ee314]  realm::Transaction::get_version_of_current_transaction() const+0x10
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/runner/work/realm-kotlin/realm-kotlin/packages/test-base/core.2166)
#
# An error report file with more information is saved as:
# /home/runner/work/realm-kotlin/realm-kotlin/packages/test-base/hs_err_pid2166.log
Compiled method (nm)   40692 2524     n 0       io.realm.kotlin.internal.interop.realmcJNI::realm_get_version_id (native)
 total in heap  [0x00007f86941cff90,0x00007f86941d0368] = 984
 relocation     [0x00007f86941d0108,0x00007f86941d0138] = 48
 main code      [0x00007f86941d0140,0x00007f86941d0360] = 544
 oops           [0x00007f86941d0360,0x00007f86941d0368] = 8
#
# If you would like to submit a bug report, please visit:
#   http://www.azul.com/support/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

Last seen here: https://github.com/realm/realm-kotlin/actions/runs/7487613739/job/20381458403

cmelchior commented 5 months ago

Another case:

io.realm.kotlin.test.common.RealmLogTests[jvm] > addLogger_twice[jvm] STANDARD_OUT
    2024-Jan-17 08:45:09,220 TRACE: [REALM] Hello
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f7e399ed440, pid=2176, tid=2179
#
# JRE version: OpenJDK Runtime Environment Zulu11.70+15-CA (11.0.22+7) (build 11.0.22+7-LTS)
# Java VM: OpenJDK 64-Bit Server VM Zulu11.70+15-CA (11.0.22+7-LTS, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [librealmc.so+0x3ed440]  realm::Transaction::get_version_of_current_transaction() const+0x10
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/runner/work/realm-kotlin/realm-kotlin/packages/test-base/core.2176)
#
# An error report file with more information is saved as:
# /home/runner/work/realm-kotlin/realm-kotlin/packages/test-base/hs_err_pid2176.log
Compiled method (nm)   42956 2513     n 0       io.realm.kotlin.internal.interop.realmcJNI::realm_get_version_id (native)
 total in heap  [0x00007f7e781d1c90,0x00007f7e781d2068] = 984
 relocation     [0x00007f7e781d1e08,0x00007f7e781d1e38] = 48
 main code      [0x00007f7e781d1e40,0x00007f7e781d2060] = 544
 oops           [0x00007f7e781d2060,0x00007f7e781d2068] = 8
#
# If you would like to submit a bug report, please visit:
#   http://www.azul.com/support/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

https://github.com/realm/realm-kotlin/actions/runs/7561504211/job/20590034882

cmelchior commented 5 months ago
io.realm.kotlin.test.common.RealmDictionaryTests[jvm] > managedDictionary_equals[jvm] SKIPPED
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f77363ed440, pid=2171, tid=2173
#
# JRE version: OpenJDK Runtime Environment Zulu11.70+15-CA (11.0.22+7) (build 11.0.22+7-LTS)
# Java VM: OpenJDK 64-Bit Server VM Zulu11.70+15-CA (11.0.22+7-LTS, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [librealmc.so+0x3ed440]  realm::Transaction::get_version_of_current_transaction() const+0x10
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/runner/work/realm-kotlin/realm-kotlin/packages/test-base/core.2171)
#
# An error report file with more information is saved as:
# /home/runner/work/realm-kotlin/realm-kotlin/packages/test-base/hs_err_pid2171.log
Compiled method (nm)   37634 2533     n 0       io.realm.kotlin.internal.interop.realmcJNI::realm_get_version_id (native)
 total in heap  [0x00007f77941d4390,0x00007f77941d4768] = 984
 relocation     [0x00007f77941d4508,0x00007f77941d4538] = 48
 main code      [0x00007f77941d4540,0x00007f77941d4760] = 544
 oops           [0x00007f77941d4760,0x00007f77941d4768] = 8

https://github.com/realm/realm-kotlin/actions/runs/7566688232/job/20604957474