-
Notifications
You must be signed in to change notification settings - Fork 169
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
Assert in SlabAlloc::do_free on realm open #6531
Comments
Hello, thanks for reporting this, there has been a slight increase of these crashes, we are investigating them and trying to find a fix. We suspect the problem is related to multiprocess access to the file. |
@nicola-cab does it make sense to get this realm file? @Cliff-F you can provide one, right? Could you also clarify if your app crashes on realm open on device or the same machine with Realm Studio? Also, what's the version of Studio you're using? |
I sent the file to the email address. --- I was developing a Mac Catalyst app (on ventura 13.2(22D49)), and I think the two processes both accessed the same file. |
Yes, It would be interesting to understand also what the app was doing when things got broken. |
@Cliff-F The interesting repro here would be if you could produce again a file which caused crashing. Once the file is corrupt in this way, subsequent crashing is expected. To find the bug we have to get closer to how the file was corrupted in the first place. Can you reproduce a new file which is corrupted? Any clues as to how can be valuable. |
Another instance of double deallocation, but here the size of the freed array 8 where in the other instances, the size is 56. |
Actually @ironage already looked at the file:
There are some error in free list, so it reads ok but modifying the file hits the assertion. So it's post factum failure. We still need a way to reproduce this corruption. @Cliff-F could you clarify what these "two processes both accessed the same file" were exactly? |
@finnschiermer and @jedelbo why isn't this issue closed as well as all the other issues that are listed in the same category in #6531 ? |
Assigning this to @finnschiermer because it is part of his experimentation for the slab allocator corruption bug. |
SDK and version
SDK : Realm Swift
Version: 10.38.0
Observations
Crash log / stacktrace
Steps & Code to Reproduce
I'm reporting this because I was instructed to. The realm file may have been accessed by two processes, which may have broken the realm file. This crash occurs when opening this particular realm file, which we can share.
Realm Studio on Mac can open it, but my application crashes when trying to open this file by
let realm = try Realm(configuration: config)
The text was updated successfully, but these errors were encountered: