-
Notifications
You must be signed in to change notification settings - Fork 36
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
Segmentation fault in Objective-C thread on macOS #361
Comments
There doesn't seem to be anything significant in the logs, just some block import errors: space-acres 2.log.zip |
Thanks a lot for backtraces and logs, very helpful! There was Also a bunch of GTK-related libraries were updated, but who knows how to possibly debug that, especially without reliable reproduction. Can you check what thread called I'm not immediately sure what it might be, but it can also be something flaky and with just 10-15 users it is totally possible that this was always happening, including CLI, just no one faced or reported it before. It is also possible that there was a hardware instability under load (I see it was verifying PoT at that time), though I don't know how likely that is on Macs. This was supposed to be handled as unexpected exit and restart the app: Lines 460 to 463 in 983b7d3
However, on macOS it exits with exit code instead of signal, so I opened #362 to handle that case as well, now you'll see Space Acres restart after such one-off errors with a warning that application crashed and was restarted. |
It restarted with that message for me. (Although I guess it’s possible there were multiple restarts.) |
Hm, I'm a little confused then because it seemed that the log ended there, I guess you cleaned it up a little? I think handling of unexpected exit codes as restart reason wouldn't hurt either way, so I'll keep it. |
I just compressed the latest logs and sent them to you. I think it might have crashed earlier in the logs, and restarted. |
I see, makes sense now, I have not seen that due to beginning being truncated. Still curious about that |
The stack trace shows a double free on an Objective C object: It is surprisingly difficult to find information on macOS threads named |
I meant you can try to look at the backtrace during normal operation and try to guess what it might be based on the stack frames. If we know where it comes from we'll be able to report it upstream. |
I can't get a backtrace with a But this thread might be related, which would mean the bug is in
https://github.com/GNOME/glib/blob/bfeca8c13aab28f77a62e5502459375e2c443c07/glib/gthreadpool.c#L632 (I also can't get a trace with I'm not sure if it is related, because the latest version of glib thread pools spawns numbered threads which don't include the binary name: But the name is exactly 16 C string bytes, just like in this code. |
That does look exactly like what we have in there. Since it is in C, the root cause of it might be basically anywhere. I found https://gitlab.gnome.org/GNOME/gtk/-/issues/5717 and https://gitlab.gnome.org/GNOME/gtk/-/issues/7132 that mention spawner with a similar backtrace. Did application crash while you were in front of the computer or not? I think it is worth reporting this upstream, but ideally we'd have some more details to share. |
I don’t think I was in front of the computer, it was quite early that morning. So the app was in the background, and the user account was logged in but not on the screen (I had used fast user switching to go to another account). |
This kind of fast user switching situation is unusual, and it isn’t often covered in testing. Most users just have the one account. It has caused other apps to hang before on my machine. Those apps use SDL though, so it’s unlikely to be the same bug. |
This is likely a bug in the graphics framework or OS, but I thought it was worth reporting anyway in case others are seeing it:
Previous versions have run for weeks without crashing.
full report:
space-acres-crash-report.txt
The text was updated successfully, but these errors were encountered: