g_error invoked from gnome-builder-clang should not cause Builder to crash/trap
Affected version
- Nightly flatpak: Can't test it because I don't have flatpak and the function in quested stayed unchanged to master
- Other: gnome-builder-45.0-1.1.x86_64 (openSUSE TW)
Steps to reproduce
- Open a C project in Builder (possibly C++ aswell)
- Let auto-completion complete a function call
- Attempt to let auto-complete complete parameters of the previously completed function call
- sometimes it crashes, I'm unable to deduce if there is a specific series of inputs that can trigger this repeatedly
I fear this is something only happening to me, as I can't imagine nobody having raised an issue of this yet if this were to happen for a more wide variety of users.
Current behavior
at some point a "Task failed due to stream failure" error occurs in handle_reply_cb, resulting in g_error being invoked and causing a SIGTRAP. I believe this to be similar to #2102 (closed) (596cad4f).
Expected behavior
Either avoid crashing the process by replacing g_error, or figure out how to avoid causing this "Task failed due to stream failure" error from gnome-builder-clang.
Additional information
Attached coredump. Debuginfo should be available by adding https://debuginfod.opensuse.org/
to DEBUGINFOD_URLS