-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fatal signal 11 (SIGSEGV), code 1, fault addr 0x69 in tid 6254 #4381
Comments
Hey @matomick! Thanks for reaching out about this. I'll have one of the Java engineers look into this and follow-up with you soon. Please feel free to provide any other information if you learn more before we have the chance to respond to you. Thanks! |
Hi, @kneth . I'm accessing realm with 2 threads, the first one is the UI thread just for reading, and the other one to read/write, manipulate datas. |
It sounds much like #4343. Do you use plain getters or |
I'm not using copyFromRealm(). |
@matomick Can you provide an example/test which crashes? You are welcome to sent it to help@realm.io if you only can provide it privately. If we can provoke the crash in another way than #4343, we narrow the bug hunting. |
version: "io.realm:realm-gradle-plugin:3.0.0" I am experiencing a similar random SIGSEGV crash and I am doing the following Realm.Transaction just prior:
|
The stack trace you posted initially suggests that you are calling a getter, and the code snippet does implies that. So I assume that the SIGSEGV is from another thread. In that case I think you have the same crash as in #4343. We are able to reproduce the bug in Realm Core (see realm/realm-core#2537), and we are working on understanding the root cause. |
I got a random issue again, but i have more logs. It seems to happens only on my Nexus 5x, with Android Nougat. A/google-breakpad: -----BEGIN BREAKPAD MICRODUMP----- [ 04-07 17:36:40.877 376: 376 W/ ] |
Hi guys! I'm providing here more info to help debug this, because it is happening to me in a very specific case. If, for some reason, the app account gets deleted, we are deleting everything (shared prefs, realm data, etc) and redirecting the user to the onboarding process again. The following crash is being thrown on a Nexus 5x (with OS version 7.1.1/7.1.2) : A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x248 in tid 29689 (db-thread)
[ 04-11 12:06:01.714 363: 363 W/ ]
debuggerd: handling request: pid=29552 uid=10177 gid=10177 tid=29689 Our realm version is 3.0.0 (without encryption). We are using only one background thread for read/write on realm. I'm tracking down this issue for days, without results :| |
@zeluis9 From your description, what you see isn't the same as #4343 (in particular, you don't use encryption). When you "redirect the user", are all Realm instances closed? If not, I can easily image that you will see random crashes. |
@kneth thanks for your response. Relative to "are all Realm instances closed" I don't think this is the problem. I tried to use |
@zeluis9 What do you mean by "not worked"? Didn't it delete your Realm files? Or do you see the error even if you have deleted the Realm? |
@kneth I don't know if this will help, but we have 35 tables. If I delete them one by one the same error is throwed. But if I try to delete data from, let's say, 10 tables, it works. That's odd |
The same error is throwed |
@zeluis9 I would really like to see an app or test which reproduces this strange crash when deleting. Can you provide it? |
I think I can, but I'm busy with some other stuff at the moment. But I'll try to send it to you asap |
@zeluis9 Awesome! I'll be looking forward to see it. |
We're facing similar crashes:
We're using encrpytion and do use |
Another stacktrace:
|
We have just released 3.2.1 with what we believe is a fix for this. We discovered that our encryption implementation could, in certain race conditions, read only partly decrypted data which could cause native crashes like this. I'm closing this issue, but please re-open it if you see this happening on 3.2.1 or above. |
I'm working with encrypted realm 2.3.2. and I got this issue sometimes, I really don't understand why. I'm doing nothing special when it happens...
The text was updated successfully, but these errors were encountered: