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

SIGENV when reading a database and using asFlow() #1620

Closed
Burtan opened this issue Jan 3, 2024 · 8 comments
Closed

SIGENV when reading a database and using asFlow() #1620

Burtan opened this issue Jan 3, 2024 · 8 comments

Comments

@Burtan
Copy link

Burtan commented Jan 3, 2024

How frequently does the bug occur?

Always

Description

Hey,
I upgraded from realm 1.10.0 to 1.13.0 and now I'm getting the following error:
It is thrown when a dbQuery is transformed asFlow.

Stacktrace & log output

`#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f024b143098, pid=93286, tid=93788
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.9+9 (17.0.9+9) (build 17.0.9+9)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (17.0.9+9, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libc.so.6+0x165098]
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: -Dcompose.application.configure.swing.globals=true -Dcompose.application.resources.dir=/home/frederik/IdeaProjects/livesets-manager/desktop/build/compose/tmp/prepareAppResources -Dfile.encoding=UTF-8 -Duser.country=DE -Duser.language=de -Duser.variant app.livesets.manager.desktop.MainKt

Host: AMD Ryzen 7 7840HS with Radeon 780M Graphics, 16 cores, 27G, Debian GNU/Linux trixie/sid
Time: Wed Jan  3 17:19:02 2024 CET elapsed time: 4.784355 seconds (0d 0h 0m 4s)

---------------  T H R E A D  ---------------

Current thread (0x00007f012c03dd30):  JavaThread "writer-default.realm" daemon [_thread_in_native, id=93788, stack(0x00007f00be6fd000,0x00007f00be7fd000)]

Stack: [0x00007f00be6fd000,0x00007f00be7fd000],  sp=0x00007f00be7faad8,  free space=1014k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libc.so.6+0x165098]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  io.realm.kotlin.internal.interop.realmcJNI.realm_commit(J)Z+0
j  io.realm.kotlin.internal.interop.realmc.realm_commit(J)Z+1
j  io.realm.kotlin.internal.interop.RealmInterop.realm_commit(Lio/realm/kotlin/internal/interop/NativePointer;)V+11
j  io.realm.kotlin.internal.WriteTransactionManager$DefaultImpls.commitTransaction(Lio/realm/kotlin/internal/WriteTransactionManager;)V+12
j  io.realm.kotlin.internal.SuspendableWriter$WriterRealm.commitTransaction()V+1
j  io.realm.kotlin.internal.SuspendableWriter$write$2.invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;+260
J 2264 c1 kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Ljava/lang/Object;)V (128 bytes) @ 0x00007f022d7e90fc [0x00007f022d7e8cc0+0x000000000000043c]
J 2417 c1 kotlinx.coroutines.DispatchedTask.run()V (574 bytes) @ 0x00007f022d8274b4 [0x00007f022d826160+0x0000000000001354]
j  java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+92 [email protected]
j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 [email protected]
j  java.lang.Thread.run()V+11 [email protected]
v  ~StubRoutines::call_stub

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000001d58

Registers:
RAX=0x0000000000000d58, RBX=0x00007f011ee536f0, RCX=0x00007f00be7fac78, RDX=0x0000000000000000
RSP=0x00007f00be7faad8, RBP=0x0000000000001d58, RSI=0x00007f00be7fac28, RDI=0x0000000000001d58
R8 =0x0000000000000020, R9 =0x000000000002ab30, R10=0x00007f011ec14528, R11=0x00007f011ed39120
R12=0x000000000002ab30, R13=0x00007f011ee536f0, R14=0x00007f00be7fab00, R15=0x00007f011ee537c0
RIP=0x00007f024b143098, EFLAGS=0x0000000000010287, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e


Register to memory mapping:

RAX=0x0000000000000d58 is an unknown value
RBX=0x00007f011ee536f0: <offset 0x00000000002536f0> in /lib/x86_64-linux-gnu/libstdc++.so.6 at 0x00007f011ec00000
RCX=0x00007f00be7fac78 is pointing into the stack for thread: 0x00007f012c03dd30
RDX=0x0 is NULL
RSP=0x00007f00be7faad8 is pointing into the stack for thread: 0x00007f012c03dd30
RBP=0x0000000000001d58 is an unknown value
RSI=0x00007f00be7fac28 is pointing into the stack for thread: 0x00007f012c03dd30
RDI=0x0000000000001d58 is an unknown value
R8 =0x0000000000000020 is an unknown value
R9 =0x000000000002ab30 is an unknown value
R10=0x00007f011ec14528: <offset 0x0000000000014528> in /lib/x86_64-linux-gnu/libstdc++.so.6 at 0x00007f011ec00000
R11=0x00007f011ed39120: _ZNSo9_M_insertImEERSoT_+0x0000000000000000 in /lib/x86_64-linux-gnu/libstdc++.so.6 at 0x00007f011ec00000
R12=0x000000000002ab30 is an unknown value
R13=0x00007f011ee536f0: <offset 0x00000000002536f0> in /lib/x86_64-linux-gnu/libstdc++.so.6 at 0x00007f011ec00000
R14=0x00007f00be7fab00 is pointing into the stack for thread: 0x00007f012c03dd30
R15=0x00007f011ee537c0: <offset 0x00000000002537c0> in /lib/x86_64-linux-gnu/libstdc++.so.6 at 0x00007f011ec00000


Top of Stack: (sp=0x00007f00be7faad8)
0x00007f00be7faad8:   00007f011ecf9d49 0000000000000000
0x00007f00be7faae8:   00007f00be7fac20 00007f00be7fac78
0x00007f00be7faaf8:   00007f011ed3919a 00007f00be7fab01
0x00007f00be7fab08:   00007f00be7fac20 0007000200b11d01
0x00007f00be7fab18:   00007f011fa67f64 00007f00be7fac20
0x00007f00be7fab28:   00007f00be7fae50 00007f00be7fab58
0x00007f00be7fab38:   00007f011f9c9267 00007f011f9c926c
0x00007f00be7fab48:   00007f011f68a21c 00007f011fcd80f0
...
`

Can you reproduce the bug?

Always

Version

1.11.0 - 1.13.0

Are you using encryption?

No

Platform OS and version(s)

Debian testing (trixie)

Build environment

Android Studio version: Hedgehog/IntelliJ IDEA 2023.3.2
Android Build Tools version: 34.0.0
Gradle version: 8.5

@cmelchior
Copy link
Contributor

Hi @Burtan It looks like it is crashing when doing a write. If it always crashes, it is something you can reproduce in a sample project you can share with us, or otherwise show the exact code that makes it crash.

@Burtan
Copy link
Author

Burtan commented Jan 5, 2024

Thanks for the fast response, I tried to get some further information, but it seems hard :O. I'm experiencing realm crashes on both my developer devices (laptop and desktop), however it only crashes when running the application. All tests work fine. I now configured my CI with docker runners to run the application by using a headless x mode. And the application does not crash on Ubuntu 22.04, Debian trixie and Debian unstable. Windows works on my machines as well.

This is a log when it crashes just on opening realm.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f770ebcc098, pid=48645, tid=48698
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.9+9 (17.0.9+9) (build 17.0.9+9)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (17.0.9+9, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libc.so.6+0x165098]
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: -Dcompose.application.configure.swing.globals=true -Dcompose.application.resources.dir=/home/frederik/IdeaProjects/livesets-manager/desktop/build/compose/tmp/prepareAppResources -Dfile.encoding=UTF-8 -Duser.country=DE -Duser.language=de -Duser.variant app.livesets.manager.desktop.MainKt

Host: AMD Ryzen 7 7840HS with Radeon 780M Graphics, 16 cores, 27G, Debian GNU/Linux trixie/sid
Time: Fri Jan  5 20:02:47 2024 CET elapsed time: 0.612100 seconds (0d 0h 0m 0s)

---------------  T H R E A D  ---------------

Current thread (0x00007f7708d43cc0):  JavaThread "AWT-EventQueue-0" [_thread_in_native, id=48698, stack(0x00007f75efb00000,0x00007f75efc00000)]

Stack: [0x00007f75efb00000,0x00007f75efc00000],  sp=0x00007f75efbfa598,  free space=1001k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libc.so.6+0x165098]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  io.realm.kotlin.internal.interop.realmcJNI.realm_open(J)J+0
j  io.realm.kotlin.internal.interop.realmc.realm_open(J)J+1
j  io.realm.kotlin.internal.interop.RealmInterop.realm_open(Lio/realm/kotlin/internal/interop/NativePointer;Lio/realm/kotlin/internal/interop/NativePointer;)Lkotlin/Pair;+59
j  io.realm.kotlin.internal.ConfigurationImpl$openRealm$2.invoke(Lio/realm/kotlin/internal/interop/NativePointer;)Lkotlin/Pair;+14
j  io.realm.kotlin.internal.ConfigurationImpl$openRealm$2.invoke(Ljava/lang/Object;)Ljava/lang/Object;+5
j  io.realm.kotlin.internal.interop.NativePointerKt.use(Lio/realm/kotlin/internal/interop/NativePointer;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;+15
j  io.realm.kotlin.internal.ConfigurationImpl.openRealm$suspendImpl(Lio/realm/kotlin/internal/ConfigurationImpl;Lio/realm/kotlin/internal/RealmImpl;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;+28
j  io.realm.kotlin.internal.ConfigurationImpl.openRealm(Lio/realm/kotlin/internal/RealmImpl;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;+3
j  io.realm.kotlin.internal.RealmImpl$1.invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;+234
j  kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Ljava/lang/Object;)V+44
j  kotlinx.coroutines.DispatchedTask.run()V+317
j  kotlinx.coroutines.EventLoopImplBase.processNextEvent()J+198
j  kotlinx.coroutines.BlockingCoroutine.joinBlocking()Ljava/lang/Object;+75
j  kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;+158
j  kotlinx.coroutines.BuildersKt.runBlocking(Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;+2
j  io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking(Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;+14
j  io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking$default(Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Ljava/lang/Object;+15
j  io.realm.kotlin.internal.RealmImpl.<init>(Lio/realm/kotlin/internal/InternalConfiguration;)V+189
j  io.realm.kotlin.internal.RealmImpl.<init>(Lio/realm/kotlin/internal/InternalConfiguration;Lkotlin/jvm/internal/DefaultConstructorMarker;)V+2
j  io.realm.kotlin.internal.RealmImpl$Companion.create$io_realm_kotlin_library(Lio/realm/kotlin/internal/InternalConfiguration;)Lio/realm/kotlin/internal/RealmImpl;+12
j  io.realm.kotlin.Realm$Companion.open(Lio/realm/kotlin/Configuration;)Lio/realm/kotlin/Realm;+13
j  app.livesets.manager.database.DaoRealm.<init>(Ljava/lang/String;)V+45
j  app.livesets.manager.database.DaoRealm.<init>(Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V+11
j  app.livesets.manager.common.di.ContainerKt$getMainDi$1$5.invoke(Lorg/kodein/di/DirectDI;)Lapp/livesets/manager/database/DaoRealm;+13
j  app.livesets.manager.common.di.ContainerKt$getMainDi$1$5.invoke(Ljava/lang/Object;)Ljava/lang/Object;+5
j  org.kodein.di.bindings.Singleton$getFactory$1$1$1.invoke()Ljava/lang/Object;+18
j  org.kodein.di.bindings.SingletonReference.make(Lkotlin/jvm/functions/Function0;)Lorg/kodein/di/bindings/Reference;+7
j  org.kodein.di.bindings.Singleton$getFactory$1$1.invoke()Lorg/kodein/di/bindings/Reference;+25
j  org.kodein.di.bindings.Singleton$getFactory$1$1.invoke()Ljava/lang/Object;+1
j  org.kodein.di.bindings.StandardScopeRegistry.getOrCreate(Ljava/lang/Object;ZLkotlin/jvm/functions/Function0;)Ljava/lang/Object;+247
j  org.kodein.di.bindings.Singleton$getFactory$1.invoke(Lkotlin/Unit;)Ljava/lang/Object;+97
j  org.kodein.di.bindings.Singleton$getFactory$1.invoke(Ljava/lang/Object;)Ljava/lang/Object;+5
j  org.kodein.di.DIContainer$DefaultImpls$provider$$inlined$toProvider$1.invoke()Ljava/lang/Object;+12
j  org.kodein.di.DIAwareKt$Instance$1.invoke(Lorg/kodein/di/DIContext;Ljava/lang/String;)Ljava/lang/Object;+76
j  org.kodein.di.DIAwareKt$Instance$1.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+9
j  org.kodein.di.DIProperty$provideDelegate$1.invoke()Ljava/lang/Object;+71
j  kotlin.SynchronizedLazyImpl.getValue()Ljava/lang/Object;+54
j  app.livesets.manager.common.data.AccountManager.getDao()Lapp/livesets/manager/database/DaoFacade;+6
j  app.livesets.manager.common.data.AccountManager.<init>(Lorg/kodein/di/DI;)V+145
j  app.livesets.manager.common.di.ContainerKt$getMainDi$1$6.invoke(Lorg/kodein/di/DirectDI;)Lapp/livesets/manager/common/data/AccountManager;+16
j  app.livesets.manager.common.di.ContainerKt$getMainDi$1$6.invoke(Ljava/lang/Object;)Ljava/lang/Object;+5
j  org.kodein.di.bindings.Singleton$getFactory$1$1$1.invoke()Ljava/lang/Object;+18
j  org.kodein.di.bindings.SingletonReference.make(Lkotlin/jvm/functions/Function0;)Lorg/kodein/di/bindings/Reference;+7
j  org.kodein.di.bindings.Singleton$getFactory$1$1.invoke()Lorg/kodein/di/bindings/Reference;+25
j  org.kodein.di.bindings.Singleton$getFactory$1$1.invoke()Ljava/lang/Object;+1
j  org.kodein.di.bindings.StandardScopeRegistry.getOrCreate(Ljava/lang/Object;ZLkotlin/jvm/functions/Function0;)Ljava/lang/Object;+247
j  org.kodein.di.bindings.Singleton$getFactory$1.invoke(Lkotlin/Unit;)Ljava/lang/Object;+97
j  org.kodein.di.bindings.Singleton$getFactory$1.invoke(Ljava/lang/Object;)Ljava/lang/Object;+5
j  org.kodein.di.DIContainer$DefaultImpls$provider$$inlined$toProvider$1.invoke()Ljava/lang/Object;+12
j  org.kodein.di.DIAwareKt$Instance$1.invoke(Lorg/kodein/di/DIContext;Ljava/lang/String;)Ljava/lang/Object;+76
j  org.kodein.di.DIAwareKt$Instance$1.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+9
j  org.kodein.di.DIProperty$provideDelegate$1.invoke()Ljava/lang/Object;+71
j  kotlin.SynchronizedLazyImpl.getValue()Ljava/lang/Object;+54
j  app.livesets.manager.root.RootComponent.getAccountManager()Lapp/livesets/manager/common/data/AccountManager;+6
j  app.livesets.manager.root.RootComponent.<init>(Lkotlin/jvm/functions/Function0;Lorg/kodein/di/DI;Lcom/arkivanov/decompose/ComponentContext;)V+245
j  app.livesets.manager.desktop.ComposableSingletons$MainKt$lambda-1$1$1.invoke(Landroidx/compose/runtime/Composer;I)V+150
j  app.livesets.manager.desktop.ComposableSingletons$MainKt$lambda-1$1$1.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+12
j  androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(Landroidx/compose/runtime/Composer;I)Ljava/lang/Object;+70
j  androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+12
j  androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider([Landroidx/compose/runtime/ProvidedValue;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V+65
j  cafe.adriel.lyricist.LyricistComposeKt.ProvideStrings(Lcafe/adriel/lyricist/Lyricist;Landroidx/compose/runtime/ProvidableCompositionLocal;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V+103
j  app.livesets.manager.desktop.ComposableSingletons$MainKt$lambda-1$1.invoke(Landroidx/compose/ui/window/ApplicationScope;Landroidx/compose/runtime/Composer;I)V+160
j  app.livesets.manager.desktop.ComposableSingletons$MainKt$lambda-1$1.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+16
j  androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object;+75
j  androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+13
j  androidx.compose.ui.window.Application_desktopKt$application$1$1.invoke(Landroidx/compose/ui/window/ApplicationScope;Landroidx/compose/runtime/Composer;I)V+91
j  androidx.compose.ui.window.Application_desktopKt$application$1$1.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+16
j  androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object;+75
j  androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+13
j  androidx.compose.ui.window.Application_desktopKt$awaitApplication$2$1$2$1$1.invoke(Landroidx/compose/runtime/Composer;I)V+51
j  androidx.compose.ui.window.Application_desktopKt$awaitApplication$2$1$2$1$1.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+12
j  androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(Landroidx/compose/runtime/Composer;I)Ljava/lang/Object;+70
j  androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+12
j  androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider([Landroidx/compose/runtime/ProvidedValue;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V+65
j  androidx.compose.ui.window.Application_desktopKt$awaitApplication$2$1$2$1.invoke(Landroidx/compose/runtime/Composer;I)V+106
j  androidx.compose.ui.window.Application_desktopKt$awaitApplication$2$1$2$1.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+12
j  androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(Landroidx/compose/runtime/Composer;I)Ljava/lang/Object;+70
j  androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+12
j  androidx.compose.runtime.ActualJvm_jvmKt.invokeComposable(Landroidx/compose/runtime/Composer;Lkotlin/jvm/functions/Function2;)V+27
j  androidx.compose.runtime.ComposerImpl.doCompose(Landroidx/compose/runtime/collection/IdentityArrayMap;Lkotlin/jvm/functions/Function2;)V+327
j  androidx.compose.runtime.ComposerImpl.composeContent$runtime(Landroidx/compose/runtime/collection/IdentityArrayMap;Lkotlin/jvm/functions/Function2;)V+60
j  androidx.compose.runtime.CompositionImpl.composeContent(Lkotlin/jvm/functions/Function2;)V+72
j  androidx.compose.runtime.Recomposer.composeInitial$runtime(Landroidx/compose/runtime/ControlledComposition;Lkotlin/jvm/functions/Function2;)V+77
j  androidx.compose.runtime.CompositionImpl.setContent(Lkotlin/jvm/functions/Function2;)V+55
j  androidx.compose.ui.window.Application_desktopKt$awaitApplication$2$1$2.invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;+89
j  kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Ljava/lang/Object;)V+44
j  kotlinx.coroutines.DispatchedTask.run()V+317
j  java.awt.event.InvocationEvent.dispatch()V+47 [email protected]
j  java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+21 [email protected]
j  java.awt.EventQueue$4.run()Ljava/lang/Void;+32 [email protected]
j  java.awt.EventQueue$4.run()Ljava/lang/Object;+1 [email protected]
J 1156 c1 java.security.AccessController.executePrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/lang/Class;)Ljava/lang/Object; [email protected] (65 bytes) @ 0x00007f76f15f8a3c [0x00007f76f15f88e0+0x000000000000015c]
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+13 [email protected]
j  java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+18 [email protected]
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46 [email protected]
j  java.awt.EventDispatchThread.pumpOneEventForFilters(I)V+78 [email protected]
j  java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+35 [email protected]
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11 [email protected]
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4 [email protected]
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3 [email protected]
j  java.awt.EventDispatchThread.run()V+9 [email protected]
v  ~StubRoutines::call_stub

siginfo: si_signo: 11 (SIGSEGV), si_code: 128 (SI_KERNEL), si_addr: 0x0000000000000000

Registers:
RAX=0x0000000000000564, RBX=0x00007f75eec536f0, RCX=0x00007f75efbfa738, RDX=0x0000000000000000
RSP=0x00007f75efbfa598, RBP=0x656a6f7250616564, RSI=0x00007f75efbfa6e8, RDI=0x656a6f7250616564
R8 =0x0000000000000020, R9 =0x00000000000003e0, R10=0x00007f75eea14540, R11=0x00007f75eeb39090
R12=0x00000000000003e0, R13=0x00007f75eec536f0, R14=0x00007f75efbfa5c0, R15=0x00007f75eec537c0
RIP=0x00007f770ebcc098, EFLAGS=0x0000000000010287, CSGSFS=0x002b000000000033, ERR=0x0000000000000000
  TRAPNO=0x000000000000000d


Register to memory mapping:

RAX=0x0000000000000564 is an unknown value
RBX=0x00007f75eec536f0: <offset 0x00000000002536f0> in /lib/x86_64-linux-gnu/libstdc++.so.6 at 0x00007f75eea00000
RCX=0x00007f75efbfa738 is pointing into the stack for thread: 0x00007f7708d43cc0
RDX=0x0 is NULL
RSP=0x00007f75efbfa598 is pointing into the stack for thread: 0x00007f7708d43cc0
RBP=0x656a6f7250616564 is an unknown value
RSI=0x00007f75efbfa6e8 is pointing into the stack for thread: 0x00007f7708d43cc0
RDI=0x656a6f7250616564 is an unknown value
R8 =0x0000000000000020 is an unknown value
R9 =0x00000000000003e0 is an unknown value
R10=0x00007f75eea14540: <offset 0x0000000000014540> in /lib/x86_64-linux-gnu/libstdc++.so.6 at 0x00007f75eea00000
R11=0x00007f75eeb39090: _ZNSo9_M_insertImEERSoT_+0x0000000000000000 in /lib/x86_64-linux-gnu/libstdc++.so.6 at 0x00007f75eea00000
R12=0x00000000000003e0 is an unknown value
R13=0x00007f75eec536f0: <offset 0x00000000002536f0> in /lib/x86_64-linux-gnu/libstdc++.so.6 at 0x00007f75eea00000
R14=0x00007f75efbfa5c0 is pointing into the stack for thread: 0x00007f7708d43cc0
R15=0x00007f75eec537c0: <offset 0x00000000002537c0> in /lib/x86_64-linux-gnu/libstdc++.so.6 at 0x00007f75eea00000

I'm trying to cut down my application to get some shareable example.

Copy link

sync-by-unito bot commented Jan 8, 2024

➤ cmelchior commented:

Hmm, that is indeed weird. Have you tried to run the application using a different JDK like the official Oracle one: https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html or Azul: https://www.azul.com/downloads/?version=java-17-lts&package=jdk#zulu ... just to rule out any problems with the JDK

@Burtan
Copy link
Author

Burtan commented Jan 13, 2024

I managed to make a minimal example for reproduction, which also includes one crash log. I hope this helps! Trying different jdks (versions and vendors) didn't change anything for me.
Using gradle clean and gradle desktop:run crashes for me under linux debian testing

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Jan 22, 2024
@Burtan
Copy link
Author

Burtan commented Mar 6, 2024

Do you need anything more?

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Mar 6, 2024
@sync-by-unito sync-by-unito bot removed the Needs-Attention Reporter has responded. Review comment. label Jul 22, 2024
@jtanderson
Copy link

jtanderson commented Aug 28, 2024

Hello, I'm getting almost this exact same behavior. Any advice? Thank you!

My JVM info:

JRE version: OpenJDK Runtime Environment Corretto-17.0.12.7.1 (17.0.12+7) (build 17.0.12+7-LTS)
Java VM: OpenJDK 64-Bit Server VM Corretto-17.0.12.7.1 (17.0.12+7-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)

@jtanderson
Copy link

In case it helps, the same thing happens with Coretto 21:

2024-08-29T20:56:19.826-0400 [QUIET] [system.out] # A fatal error has been detected by the Java Runtime Environment:
2024-08-29T20:56:19.826-0400 [QUIET] [system.out] #
2024-08-29T20:56:19.826-0400 [QUIET] [system.out] #  SIGSEGV (0xb) at pc=0x00007f7123836e5d, pid=83578, tid=83605
2024-08-29T20:56:19.826-0400 [QUIET] [system.out] #
2024-08-29T20:56:19.826-0400 [QUIET] [system.out] # JRE version: OpenJDK Runtime Environment Corretto-21.0.4.7.1 (21.0.4+7) (build 21.0.4+7-LTS)
2024-08-29T20:56:19.826-0400 [QUIET] [system.out] # Java VM: OpenJDK 64-Bit Server VM Corretto-21.0.4.7.1 (21.0.4+7-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
2024-08-29T20:56:19.826-0400 [QUIET] [system.out] # Problematic frame:
2024-08-29T20:56:19.826-0400 [QUIET] [system.out] # C  [libc.so.6+0x16fe5d]  __strlen_avx2+0x1d

@Burtan
Copy link
Author

Burtan commented Sep 28, 2024

I updated to the latest dependencies, especially:

Kotlin 2.0.20
Realm 2.3.0
Compose multiplatform 1.6.11

The crash is gone, although I don't know which change fixed it.

@Burtan Burtan closed this as completed Sep 28, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants