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


View this message in rfc822 format

From: Po Lu <luangruo <at> yahoo.com>
To: Fake Baka <spoof1024 <at> gmail.com>
Cc: 79343 <at> debbugs.gnu.org
Subject: bug#79343: Hung after xinput remove-master
Date: Wed, 03 Sep 2025 09:39:27 +0800
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.  */




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.