GNU bug report logs - #79343
Hung after xinput remove-master

Previous Next

Package: emacs;

Reported by: Fake Baka <spoof1024 <at> gmail.com>

Date: Sat, 30 Aug 2025 01:30:03 UTC

Severity: normal

Done: Po Lu <luangruo <at> yahoo.com>

Full log


Message #23 received at 79343 <at> debbugs.gnu.org (full text, mbox):

From: Fake Baka <spoof1024 <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 79343 <at> debbugs.gnu.org
Subject: Re: bug#79343: Hung after xinput remove-master
Date: Wed, 3 Sep 2025 17:53:56 +0300
[Message part 1 (text/plain, inline)]
The patch seems to fix the problem. Thanks.

On Wed, Sep 3, 2025 at 4:39 AM Po Lu <luangruo <at> yahoo.com> wrote:

> Fake Baka <spoof1024 <at> gmail.com> writes:
>
> > (gdb) frame 10
> > #10 0x0000555555705a0d in xi_disable_devices (dpyinfo=0x55555649d8d0,
> to_disable=0x7fffffffbbc0, n_disabled=4) at xterm.c:13966
> > 13966     xfree (dpyinfo->devices);
> > (gdb) list
> > 13961             continue;
> > 13962           }
> > 13963       }
> > 13964
> > 13965     /* Free the old devices array and replace it with ndevices.  */
> > 13966     xfree (dpyinfo->devices);
> > 13967
> > 13968     dpyinfo->devices = devices;
> > 13969     dpyinfo->num_devices = ndevices;
> > 13970   }
>
> Please test this patch and ack:
>
> diff --git a/src/xterm.c b/src/xterm.c
> index 02151fd2ced..e56d1d5f11d 100644
> --- a/src/xterm.c
> +++ b/src/xterm.c
> @@ -13945,12 +13945,11 @@ xi_disable_devices (struct x_display_info
> *dpyinfo,
>
>               goto out;
>             }
> -
> -         devices[ndevices++] = dpyinfo->devices[i];
> -
> -       out:
> -         continue;
>         }
> +
> +      devices[ndevices++] = dpyinfo->devices[i];
> +    out:
> +      continue;
>      }
>
>    /* Free the old devices array and replace it with ndevices.  */
>
[Message part 2 (text/html, inline)]

This bug report was last modified 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.