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

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

Open
cmelchior opened this issue Jan 11, 2024 · 2 comments

Comments

@cmelchior
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant