From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62402: 30.0.50; Emacs crashes on popup menu selection Date: Thu, 23 Mar 2023 10:43:39 +0200 Message-ID: Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12554"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 62402@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 23 09:44:22 2023 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 1pfGYY-00030o-EW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Mar 2023 09:44:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfGYH-0001Y4-9E; Thu, 23 Mar 2023 04:44:05 -0400 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 1pfGYF-0001Xb-2n for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2023 04:44:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pfGYE-0002Uh-R9 for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2023 04:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pfGYE-0005YI-9J for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2023 04:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Mar 2023 08:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62402 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.167956102921311 (code B ref -1); Thu, 23 Mar 2023 08:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Mar 2023 08:43:49 +0000 Original-Received: from localhost ([127.0.0.1]:37311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfGY0-0005Xf-Uf for submit@debbugs.gnu.org; Thu, 23 Mar 2023 04:43:49 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfGXy-0005XX-UR for submit@debbugs.gnu.org; Thu, 23 Mar 2023 04:43:47 -0400 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 1pfGXy-0001Wf-Of for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2023 04:43:46 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfGXw-0002Sg-O6 for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2023 04:43:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1679561023; bh=sTj7MHlxfVBsLouwp1l8VtO5H6V6qvt5d6WEiFGgKQk=; h=From:To:Subject:Date:From; b=fqii5C8uI68KAJIm39cfoPX7Drqx5bMzKxIVt2eDfQfggogNwxArUwdPLY3nSROHP oDGZQEOI8D2c8cE4dDlNFwPz/xAUqHzXe2R/+Oy7yM+MOB3L487c0teBhhw4T0Xadc 5RD2JGgwhd0/HwoUMTu66N1yxRIXFIc5sfEWmmlbYoCdR3hS7qMpPL39qcpj5CLgWb WGWhjHeltNUEN/5hIKL9jfPw/ni81MvQYFhvKxjvLu1ezQ2sVhAa+Pf25nxwFFlLUK Gvinnjy/prrYaW0HCqsmRK7bMcVvzyKaFDxJP2yB7ixN8GMiz4phqF0+18GATdVqUp dCkv7X8sGLelQ== Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-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:258448 Archived-At: Hi, For some time now Emacs crashes whenever I try to select from a popup menu in EWW. This happens deterministically, and Emacs always crashes in the same way in a call to `x-popup-menu` from `eww-change-select`. Trying to isolate the issue, I came up with the following minimal example: 1. emacs -Q 2. evaluate the following form to create a popup menu: (x-popup-menu `((0 0) ,(get-buffer-window)) '(keymap (Bar menu-item "Bar" ignore :key-sequence nil) (Baz menu-item "Baz" ignore :key-sequence nil))) 3. select an option from the menu 4. Emacs crashes with the following backtrace: Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000003 Exception Codes: 0x0000000000000001, 0x0000000000000003 VM Region Info: 0x3 is not in any region. Bytes before following region: 140737486401533 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> shared memory 7fffffe23000-7fffffe24000 [ 4K] r-x/r-x SM=SHM Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x7ff8050b422a __pthread_kill + 10 1 libsystem_pthread.dylib 0x7ff8050ebf7b pthread_kill + 263 2 libsystem_c.dylib 0x7ff804ff8480 raise + 26 3 Emacs 0x10908b5f7 terminate_due_to_signal + 167 (emacs.c:464) 4 Emacs 0x10908bf8b emacs_abort + 15 (sysdep.c:2313) 5 Emacs 0x1090498a2 ns_term_shutdown + 162 (nsterm.m:5765) 6 Emacs 0x108ef32c8 shut_down_emacs + 344 (emacs.c:3017) 7 Emacs 0x10908b5c5 terminate_due_to_signal + 117 (emacs.c:447) 8 Emacs 0x108f1af9e handle_fatal_signal + 14 (sysdep.c:1783) 9 Emacs 0x108f1b021 deliver_thread_signal + 129 (sysdep.c:1775) 10 Emacs 0x108f19359 deliver_fatal_thread_signal + 9 (sysdep.c:1795) 11 Emacs 0x108f1b069 handle_sigsegv + 57 (sysdep.c:1888) 12 libsystem_platform.dylib 0x7ff805116c1d _sigtramp + 29 13 ??? 0x0 ??? 14 Emacs 0x10906c2be -[EmacsMenu runMenuAt:forFrame:keymaps:] + 318 (nsmenu.m:767) 15 Emacs 0x10906cb1b ns_menu_show + 1883 (nsmenu.m:1067) 16 Emacs 0x108e78c45 x_popup_menu_1 + 2325 (menu.c:1410) 17 Emacs 0x108f8e8af eval_sub + 2575 (eval.c:2503) 18 Emacs 0x108f8eadd Fprogn + 45 (eval.c:436) 19 Emacs 0x108f8e670 eval_sub + 2000 (eval.c:2451) 20 Emacs 0x108f933cd Feval + 77 (eval.c:2363) 21 elisp-mode-90dbfe40-cf3545f3.eln 0x10d39efef F656c6973702d2d6576616c2d6c6173742d73657870_elisp__eval_last_sexp_0 + 351 As a less contrived example, Emacs crashes (with a similar backtrace) when browsing https://search.marginalia.nu with EWW and trying to change one of the selections such as "Popular Sites" to another choice, e.g. "Academia". Thanks, Eshel In GNU Emacs 30.0.50 (build 25, x86_64-apple-darwin22.3.0, NS appkit-2299.40 Version 13.2.1 (Build 22D68)) of 2023-03-21 built on esmac.local Repository revision: 42fba8f36b19536964d6deb6a34f3fd1c02b43dd Repository branch: master Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.2.1 Configured using: 'configure --with-native-compilation --with-json --with-tree-sitter' Configured features: ACL DBUS GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-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 sort mail-extr emacsbug message 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 mailabbrev gmm-utils mailheader cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 77657 8466) (symbols 48 7093 0) (strings 32 18959 1997) (string-bytes 1 581298) (vectors 16 16146) (vector-slots 8 286623 12027) (floats 8 27 52) (intervals 56 219 0) (buffers 984 11))