-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Crash on starting program #7940
Comments
Can you try with latest wlroots master? This should be fixed with https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4527. |
I don't think that is it. I'm already on 4688a37 |
This might be a heap corruption. Please try running with asan to narrow it down. |
Asan log attached. |
That isn't a asan log but at the end we have:
So somehow sway_text_node calculated a bad value and passed it around until it finally asserted on something. |
I'm gonna have a bet and say those values are a negative number? Negative size configure? Attaching a debugger to the coredump and inspecting the |
This patch may fix the problem. |
Yep, that patch fixed the crash! Thanks! |
I can attach the debugger and verify the values if you'd like to confirm. |
That's fine, the patch is enough to confirm it was a negative number floating around. |
Having said that, I'm confused as to why asan log wasn't generated. I'm setting up the build with:
And running:
Unless, I got even more confused and attached the wrong log file... |
I don't think there are any memory integrity issues here. Asan wouldn't catch anything in this case. It might have been enabled, it just didn't play a role. |
With latest Sway and wlroots sources, I'm getting intermittent crashes on starting certain programs. One such stack trace attached when starting Chrome.
gdb.txt
The text was updated successfully, but these errors were encountered: