g_main_context_acquire bug?
Good day.
I have been fighting the Lazarus people for a long time for one bug.
And they have long argued that GLib is to blame for the error.
The bug shows up on many Linux with GTK2, for example:
- On the latest Ubuntu with all updates;
- On the latest Fedora with all updates.
When using the PeekMessage function in Lazarus, the program often exits with a SIGABRT error, pointing to a GLib function.
The call stack shows that there is an error in the g_main_context_acquire function of the libglib-2.0.so library.
Lazarus PeekMessage implementation:
I attach a project for Lazarus, which makes PeekMessage in an infinite loop and the program crashes with a call stack to your function.
MomError.rar
I don’t know the error is in your function or the programmers from Lazarus use it crookedly, I ask you to check this function in particular with threads.