From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.bugs Subject: bug#74535: 30.0.92; partial hang, esp. keyboard events Date: Mon, 25 Nov 2024 11:13:00 -0800 Message-ID: <22277.1732561980@alto.camomileplus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40062"; mail-complaints-to="usenet@ciao.gmane.io" To: 74535@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 25 20:14:27 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tFeXS-000AGg-Ve for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Nov 2024 20:14:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFeXI-0000H5-6E; Mon, 25 Nov 2024 14:14:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFeX6-00008F-23 for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:14:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFeX4-0005uK-Sk for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:14:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:From:To:Subject; bh=E15Lyvh/11cEnbjIDm11eNrPS/7uxwJ6q4nhSksZzSE=; b=FiSMJ5wu+7IqLw3uatyjf9m6bBpOJZeosRmPfqhaCnI8H0ZxA7B1WeGBhVpJx8R0O/GMUoDwpr1DXgUQf7qpiwnqnFvNfoEPjs+DvW5PoewTJfc9bqkGVh7CEwIBgZL768VhU8JdImHeV3QUEJzoUUtSPqcv0bVCbmLlv9n1Tj5UPpAkz7f5tvMjoT33Ih1se4pmw1RUwTvtMDgKJiOOCmeiAhBJ7wrBS+P0vKGNJBytIenyHUcYg1Tj7/7o9LqQNAC0WlaE4wNUhlrT5XukTKaAHFj6ShWnf1k3Yxwin9W7D25S22v9Lg1yFXTIa0eHBxXHzK5EhqUEYVTKBSOqqQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFeX4-0007gQ-JQ for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Nov 2024 19:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74535 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173256200229465 (code B ref -1); Mon, 25 Nov 2024 19:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Nov 2024 19:13:22 +0000 Original-Received: from localhost ([127.0.0.1]:40778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFeWP-0007fA-Ft for submit@debbugs.gnu.org; Mon, 25 Nov 2024 14:13:22 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFeWN-0007f1-2z for submit@debbugs.gnu.org; Mon, 25 Nov 2024 14:13:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFeWM-00088M-EU for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:13:18 -0500 Original-Received: from shell1.rawbw.com ([198.144.192.42]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFeWJ-0005k1-CS for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:13:18 -0500 Original-Received: from alto.camomileplus.org (135-180-174-211.dsl.dynamic.sonic.net [135.180.174.211] (may be forged)) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 4APJD1Oj068103 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 25 Nov 2024 11:13:07 -0800 (PST) (envelope-from kupfer@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host 135-180-174-211.dsl.dynamic.sonic.net [135.180.174.211] (may be forged) claimed to be alto.camomileplus.org X-Mailer: MH-E 8.6+git; nmh 1.8-RC2; Emacs 30.0.92 Content-ID: <22276.1732561980.1@alto.camomileplus.org> Received-SPF: pass client-ip=198.144.192.42; envelope-from=kupfer@rawbw.com; helo=shell1.rawbw.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295955 Archived-At: I've been getting occasional Emacs hangs, under both Xfce and MATE. I haven't seen the problem (so far) with i3. Emacs seems to handle mouse events okay, e.g., it looks like point is moving in response to a mouse click. And I can create new frames using emacsclient. But keyboard events don't seem to be processed--there's no response to C-g, M-x, C-p, C-n, simple text, F10. I tried troubleshooting the problem using strace (simple "strace -p "), but there's so much output I've been unable to make sense of it. I don't have a reliable recipe for reproducing the problem. It *might* be related to closing a frame. I did not see this problem with 30.0.91. My current plan for troubleshooting (the next time it happens) is to attach gdb, dump the last 10 items in recent_keys (using the instructions in etc/DEBUG), resume the process, type a few keys, go back into gdb, and see if recent_keys and recent_keys_index have changed. Is there a better approach? thanks, mike (gdb) bt #0 pselect64_syscall (sigmask=3D, timeout=3D, exceptfds=3D0x0= , writefds=3D0x7ffcfde93cb0, readfds=3D0x7ffcfde93c30, nfds=3D18) at ../sysdeps/unix/sysv/linux/pselect.c:34 #1 __pselect (nfds=3D18, readfds=3D0x7ffcfde93c30, writefds=3D0x7ffcfde93cb0, excep= tfds=3D0x0, timeout=3D, sigmask=3D) at ../sysdeps/unix/sysv/linux/pselect.c:56 #2 0x000055bb705d9dee in really_call_select (arg=3D0x7ffcfde93b40) at thread.c:624 #3 0x000055bb705da510 in flush_stack_call_func (arg=3D0x7ffcfde93b40, func=3D0x55bb705d9d90 ) at /home/kupfer/src/emacs-30.0.92/src/lisp.h:4509 #4 thread_select (func=3D, max_fds=3Dmax_fds@entry=3D18, rfds=3Drfds@ent= ry=3D0x7ffcfde93c30, wfds=3Dwfds@entry=3D0x7ffcfde93cb0, efds=3Defds@entry= =3D0x0, timeout=3Dtimeout@entry=3D0x7ffcfde94270, sigmask=3D) at thread.c:656 #5 0x000055bb70601b4d in xg_select (fds_lim=3D18, rfds=3Drfds@entry=3D0x7ffcfde943a0, wfds=3D0x7ffcfde944= 20, efds=3D0x0, timeout=3D, sigmask=3D0x0) at xgselect.c:18= 4 #6 0x000055bb705b6bd7 in wait_reading_process_output (time_limit=3Dtime_limit@entry=3D30, nsecs=3Dnsecs@entry=3D0, read_kbd= =3Dread_kbd@entry=3D-1, do_display=3Ddo_display@entry=3Dtrue, wait_for_cel= l=3Dwait_for_cell@entry=3DXIL(0)--Type for more, q to quit, c to con= tinue without paging-- , wait_proc=3Dwait_proc@entry=3D0x0, just_wait_proc=3D0) at process.c:5747 #7 0x000055bb703d3810 in sit_for (timeout=3Dtimeout@entry=3Dmake_fixnum(30), reading=3Dreading@entry=3D= true, display_option=3Ddisplay_option@entry=3D1) at dispnew.c:6335 #8 0x000055bb704e66bc in read_char (commandflag=3D1, map=3Dmap@entry=3DXIL(0x55bb73d90b73), prev_event=3D= XIL(0), used_mouse_menu=3Dused_mouse_menu@entry=3D0x7ffcfde94c9b, end_time= =3Dend_time@entry=3D0x0) at /home/kupfer/src/emacs-30.0.92/src/lisp.h:746 #9 0x000055bb704e6e8f in read_key_sequence (keybuf=3Dkeybuf@entry=3D0x7ffcfde94de0, prompt=3Dprompt@entry=3DXIL(0= ), dont_downcase_last=3Ddont_downcase_last@entry=3Dfalse, can_return_switc= h_frame=3Dcan_return_switch_frame@entry=3Dtrue, fix_current_buffer=3Dfix_c= urrent_buffer@entry=3Dtrue, prevent_redisplay=3Dprevent_redisplay@entry=3D= false, disable_text_conversion_p=3Dfalse) at keyboard.c:10743 #10 0x000055bb704e8e94 in command_loop_1 () at keyboard.c:1429 #11 0x000055bb7055ffc7 in internal_condition_case (bfun=3Dbfun@entry=3D0x55bb704e8ce0 , handlers=3Dhandl= ers@entry=3DXIL(0x90), hfun=3Dhfun@entry=3D0x55bb704dca90 ) at = eval.c:1613 #12 0x000055bb704d4f66 in command_loop_2 (handlers=3Dhandlers@entry=3DXIL(= 0x90)) at keyboard.c:1168 #13 0x000055bb7055ff21 in internal_catch (tag=3Dtag@entry=3DXIL(0x11d30), func=3Dfunc@entry=3D0x55bb704d4f40 , arg=3Darg@entry=3DXIL(0x90)) at eval.c:1292 --Type for more, q to quit, c to continue without paging--c #14 0x000055bb704d4f01 in command_loop () at keyboard.c:1146 #15 0x000055bb704dc653 in recursive_edit_1 () at keyboard.c:754 #16 0x000055bb704dc9c0 in Frecursive_edit () at keyboard.c:837 #17 0x000055bb703c88c3 in main (argc=3D1, argv=3D0x7ffcfde95268) at emacs.= c:2635 (gdb) xbacktrace (gdb) In GNU Emacs 30.0.92 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2024-10-28 built on alto Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --prefix=3D/usr/local --with-native-compilation=3Dno' Configured features: CAIRO FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XPM LUCID ZLIB Important settings: value of $LC_TIME: C value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: delete-selection-mode: t display-time-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t minibuffer-regexp-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow mh-identity mh-tool-bar mh-letter mh-show goto-addr gnus-cite mh-mime mh-acros mh-xface mh-utils emacsbug mule-util display-line-numbers rect gud pulse color compile etags fileloop xref project vc-hg diff-mode track-changes easy-mmode bug-reference dired-aux dired-x oc-basic ol-eww eww url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect ol-docview doc-view filenotify jka-compr image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi face-remap org-agenda org-element org-persist xdg org-id org-element-ast inline avl-tree generator org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie treesit executable ob-comint org-pcomplete org-list org-footnote org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-compat org-macs format-spec misearch multi-isearch crm thingatpt cus-edit pp cus-start cus-load cl-extra help-mode mdk-mail gnus-mh gnus-msg mh-comp mh-scan mh-gnus gnus-dup nnmh gnus-score score-mode gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs json map byte-opt gv bytecomp byte-compile url-vars mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus nnheader range wid-edit mh-e mh-buffers mh-loaddefs message sendmail mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader warnings server timeclock noutline outline icons cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs advice shell pcomplete comint subr-x ansi-osc ansi-color ring xcscope delsel time vc cl-loaddefs cl-lib vc-dispatcher mdk-hacks rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty move-toolbar make-network-process emacs) Memory information: ((conses 16 491649 89875) (symbols 48 30489 0) (strings 32 104582 3918) (string-bytes 1 2859977) (vectors 16 64239) (vector-slots 8 1424223 110136) (floats 8 540 756) (intervals 56 9625 661) (buffers 984 73))