-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[gtk3] Paste text into Entry buffer causes Segmentation fault #13258
Comments
Where can I find the gtk3-demo code? |
It is part of the gtk3 package. if you have gtk3 installed just type "gtk3-demo" $ pacman -Qo gtk3-demo.exe Crashing gtk-demo in gdb Get me this info.
To me it looks like I am writing to uninitialized memory. |
Found something in gdb
The issue only occurs with glib2 package version 2.74.0-1. If I downgrade glib2 to 2.72.3-3 version things are fine. @lb90 Would you like to share any hint about this issue? |
Hi @Biswa96! Don't know much currently, but looks related to https://gitlab.gnome.org/GNOME/gimp/-/issues/8576. I will try to debug this tomorrow! |
Mmh actually the stack traces look pretty different... |
Ok, I have tried bisecting this. Looks like the first bad commit is https://gitlab.gnome.org/GNOME/glib/-/commit/9444ace2c8 🤷♂️ |
Should be fixed with this patch: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2921 Someone validated that it works on Linux, I welcome people testing on Windows too. :-) |
Hi @Jehan! That GLib MR fixes the issue in GIMP with NULL GParamSpecs. However, there's also another issue with pasting content from the clipboard on Windows, which is has to be fixed in GTK3. See https://gitlab.gnome.org/GNOME/gtk/-/issues/5207 |
Fixes msys2#13258
I see that lots of work has been done. from @lb90 s work on https://gitlab.gnome.org/GNOME/gtk/-/issues/5207. Will test as soon as the next version comes out. In the mean while I will close this issue. |
Thanks @lb90 for the quick investigation and fix! 👍 |
Description
Originally I have issue with a gtkmm application that seg faults when anything is pasted into Gtk::Entry. I was looking around trying to find the issue. Issue came up after a resent upgrade.
Now I am able to get seg fault if I run gtk3-demo, Open Entry Buffer and paste into the widget. Every 3-4 tries will cause a segmentation fault. I assume this is the same fault as in my gtkmm applications.
I don't get anything from debugger. So fault seems to come from inside the kit. I am still humble to suspect that I made some mistake and relying on undefined behavior.
Verification
Windows Version
Microsoft Windows [Version 10.0.19044.2006]
MINGW environments affected
Expected behavior
No seg fault.
Actual behavior
Application crashes with segfault. from libglib2
Repro steps
$ gtk3-demo
Segmentation fault
Are you willing to submit a PR?
Not right now.
The text was updated successfully, but these errors were encountered: