Fix Pidgin debug window with threaded logging

Review Request #1292 — Created Feb. 8, 2022 and submitted

Information

pidgin/pidgin
default

Reviewers

I was seeing several broken GtkTextIters which eventually caused a crash at random. This was due to TLS support, which writes its logs from a non-main thread. And there are probably other cases of threaded logging in GLib internals as well.

This change avoids calling GTK functions (which are not thread safe) from the log handler.

Connected to a local server with TLS, that previously caused guaranteed crashes.

Summary ID
Fix Pidgin debug window with threaded logging
I was seeing several broken `GtkTextIter`s which eventually caused a random crash. This was due to TLS support, which writes its logs from a non-main thread. And there are probably other cases of threaded logging in GLib internals as well.
63e33b3b486cb2ec30874a763471ea1fba5c1446
grim
  1. Ship It!
  2. Awesome work!! Thanks!!

  3. 
      
grim
Review request changed

Status: Closed (submitted)

Loading...