-
Notifications
You must be signed in to change notification settings - Fork 11
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
"Reveal" feature causes the app to segfault on linux in some cases #27
Comments
No idea what caused the issue. It does seem dbus related given that backtrace, but I don't have any dbus internals expertise that would give me an idea of why this crash happened. Given that the original issue was resolved by reinstalling Arch, I'm going to assume it was some issue with the Arch install, and will close this issue. |
I believe root cause of the crash is statically linked dbus lib. See more here It causes some global variables to not be initialized correctly which could manifest into a crash with a stack trace above. Is there any reason why you use vendored feature here? Line 31 in ff6e259
My understanding is that without it the lib will be not be statically linked so it may solve the above crash. Would it create other problems? |
The reason for using the vendored feature is to avoid needing |
I don't understand how static linking helps avoid any dependencies. Doesn't the other end of what dbus talks to need dbus dependencies anyway? Can you make it optional at least? |
On the development side, the I can make the |
That would resolve the issue for me. |
Alright, I implemented this in a9dc2ee. It's technically a breaking change though if someone was using As for the true underlying issue, if it's a Rust or Cargo bug we should open an issue in the appropriate place, if one hasn't been made. |
I'm not well versed enough in linker intricacies to file proper bug report with reproducible example, I'm just going off Nvidia engineer's analysis in the rust-lang forum thread I linked above. That thread just got closed for inactivity, sadly. If it helps, I believe the whole investigation started from this webkitgtk bug report https://bugs.webkit.org/show_bug.cgi?id=261874#c57 (link to nvidia driver dev's comment explaining crash in my app) |
I've released |
Please note that with the new version, the program will only render properly when started WITHOUT the environment variable contained in the .desktop file. |
@username227 please open an issue for that on TrguiNG issue tracker, it is not relevant to this repo. |
I am using this lib in my multiplatform app and I got a report from one of my linux users that the app started segfaulting once I started using the reveal feature. Note that the app crashes on start, not when the opener code is called. The crash is in cpp land, not in rust too, there is no rust papnic message or backtrace on crash. Here is gdb backtrace
Original bug report openscopeproject/TrguiNG#105 has more info
User has this issue on their arch system. I can not reproduce on debian.
Any clue why this may be happening? Can it be a bug in dbus-rs package?
The text was updated successfully, but these errors were encountered: