[Users] [Bug 4365] New: On pure Wayland, running a second instance of Claws Mail kills the first

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Sat Jul 18 04:09:55 CEST 2020


https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4365

            Bug ID: 4365
           Summary: On pure Wayland, running a second instance of Claws
                    Mail kills the first
           Product: Claws Mail (GTK3)
           Version: GIT
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Other
          Assignee: users at lists.claws-mail.org
          Reporter: thewildbeast at mstoeckl.com

Run Claws Mail on a Wayland compositor (like sway or Weston) which does not
have XWayland enabled, so that the environment variable DISPLAY is unset. Then
run a second copy of Claws Mail; the first copy will segfault. The segfault
occurs because the second instance sends a `get_display` IPC request to the
first; when trying to handle this request, the first instance references the
variable `x_display`, which is null if DISPLAY is not set.

I've attached a patch which does the minimum to prevent this crash. (Ideally,
the get_display logic would detect which mechanism GTK used to connect to the
display server; but I don't know how to do that, and this patch worksforme.)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Users mailing list