-
Notifications
You must be signed in to change notification settings - Fork 61
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
Segfault when realm_open is called on PopOS 22.04 #1728
Comments
➤ PM Bot commented: Jira ticket: RKOTLIN-1071 |
Having the same issue with Fedora 39 and libc 2.38 |
It is really hard to say anything from the above crash. Is it possible to describe some more details about how use are using the realm by supplying the model, configuration, etc. |
Will dig into this and give some context, but it could be an issue in Trixnity as far as i can tell. Wouldn't bet on it tho. I will come back to you asap :) |
Little update here. I can't really provide any samples here since the crash doesn't happen in our own code. |
I've been using it in a compose multiplatform app and using koin to get a realm configuration (which shouldn't be a problem AFAIK). I noticed it crashes when the realm is open the first time, when files don't exists yet (but they do end up being created even though it crashes), but then opens normally. That is, until you commit a transaction which also makes it crash (and again, does commit the changes).
When i have some time i'll see if i can do a sample project to reproduce. |
So i started downgrading versions for funsies and seems that it works on |
Very interesting, i don't know if these issue are strictly related but i'll look into it anyways since i am kinda lost at this point to be honest. Also, you may wanna look into fenced code blocks in Markdown ^^ You can use them without a language tag too, which just renders it as monospace text basicly. Much nicer for stacktraces.
|
I get same error with version 1.13.0. After downgrading to 1.10.2 it solved. |
I'm seeing a similar or same issue that occurs on Fedora 39 (also using Threadripper, not sure if relevant) but not on Mac OS, with version 2.0.0. Older versions did work on this same system |
Fixed for me in 2.2.0 |
How frequently does the bug occur?
Always
Description
We use Realm in one of our soon-to-be-released products at work and while trying to set up the demo application i found a crash. I traced back the issue to a singular
strlen
call somewhere within therealm_open
function, which leads me to believe a null C-string is passed to Realm somewhere within that function.The actual segmentation fault is caused by this instruction in the AVX2 implementation of the
strlen
function provided bylibc.so.6
:(%rdi)
dereferences a null-pointer here.I omitted the MachCode listings in the crash report to reduce noise a little bit, if you need the listings please let me know.
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
Will provide privately if needed.
Version
1.14.1
What Atlas App Services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
PopOS 22.04
Build environment
Kernel version: 6.8.0-76060800daily20240311-generic
libc version: Ubuntu GLIBC 2.35-0ubuntu3.6
libc compiler: GNU CC version 11.4.0
Android Studio version: 241.14494.240.2411.11743578
Android Build Tools version: 35.0.0 rc3
Gradle version: 8.5
The text was updated successfully, but these errors were encountered: