GNU bug report logs - #55687
29.0.50; make-frame chid frame crash/regression from dfa3e6f424

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Sat, 28 May 2022 03:41:02 UTC

Severity: normal

Merged with 55684

Found in version 29.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55687 in the body.
You can then email your comments to 55687 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#55687; Package emacs. (Sat, 28 May 2022 03:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Aaron Jensen <aaronjensen <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 28 May 2022 03:41:02 GMT) Full text and rfc822 format available.

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

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: acm <at> muc.de
Subject: 29.0.50; make-frame chid frame crash/regression from dfa3e6f424
Date: Fri, 27 May 2022 23:40:13 -0400
After dfa3e6f424, the following crashes/hangs Emacs (on my machine it
actually causes a debug window to pop up, Emacs to become unresponsive,
and a sound to play continually)

(make-frame `((minibuffer . only) (parent-frame . ,(selected-frame))))

This just crashes Emacs immediately, even prior to the mentioned commit:

(make-frame `((parent-frame . ,(selected-frame))))

The following shows an error rather than crashing with the commit, but
not without it:

(make-frame `(
              (minibuffer . only)
              (parent-frame . ,(selected-frame))
              (top . 378)
              (width . 0.7)
              (left . 0.5)
              (left-fringe . 16)
              (right-fringe . 16)
              (background-color . "#FAFAFA")
              (child-frame-border-width . 2)
              (visibility)
              (user-position . t)
              (user-size . t)
              (keep-ratio . t)
              (undecorated . t)
              (desktop-dont-save . t)
              (child-frame-border-width . 3)
              (internal-border-width . 3)
              (drag-internal-border . t)
              (z-group . above)))

Debugger entered--Lisp error: (wrong-type-argument window-live-p nil)
  normal-erase-is-backspace-setup-frame(#<frame emacs 0x16a00d268>)
  make-frame(((minibuffer . only) (parent-frame . #<frame *scratch*
0x149031030>) (top . 378) (width . 0.7) (left . 0.5) (left-fringe .
16) (right-fringe . 16) (background-color . "#FAFAFA")
(child-frame-border-width . 2) (visibility) (user-position . t)
(user-size . t) (keep-ratio . t) (undecorated . t) (desktop-dont-save
. t) (child-frame-border-width . 3) (internal-border-width . 3)
(drag-internal-border . t) (z-group . above)))
  (progn (make-frame (cons '(minibuffer . only) (cons (cons
'parent-frame (selected-frame)) '((top . 378) (width . 0.7) (left .
0.5) (left-fringe . 16) (right-fringe . 16) (background-color .
"#FAFAFA") (child-frame-border-width . 2) (visibility) (user-position
. t) (user-size . t) (keep-ratio . t) (undecorated . t)
(desktop-dont-save . t) (child-frame-border-width . 3)
(internal-border-width . 3) (drag-internal-border . t) (z-group .
above))))))
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  command-execute(eval-last-sexp)



In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.5.0, NS
appkit-2113.50 Version 12.4 (Build 21F79))
 of 2022-05-26 built on aaron-m1.local
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.4

Configured using:
 'configure --disable-dependency-tracking --disable-silent-rules
 --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp
 --infodir=/opt/homebrew/Cellar/emacs-plus <at> 29/29.0.50/share/info/emacs
 --prefix=/opt/homebrew/Cellar/emacs-plus <at> 29/29.0.50 --with-xml2
 --with-gnutls --with-native-compilation --without-dbus
 --without-imagemagick --with-modules --with-rsvg --with-ns
 --disable-ns-self-contained 'CFLAGS=-Os -w -pipe
 -mmacosx-version-min=12
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
 -I/opt/homebrew/opt/gcc/include -I/opt/homebrew/opt/libgccjit/include
 -I/opt/homebrew/opt/gmp/include -I/opt/homebrew/opt/jpeg/include'
 'CPPFLAGS=-I/opt/homebrew/opt/zlib/include
 -I/opt/homebrew/opt/icu4c/include -I/opt/homebrew/opt/sqlite/include
 -I/opt/homebrew/opt/openssl <at> 1.1/include
 -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/libffi/include
 -isystem/opt/homebrew/include -F/opt/homebrew/Frameworks
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
 'LDFLAGS=-L/opt/homebrew/opt/zlib/lib -L/opt/homebrew/opt/icu4c/lib
 -L/opt/homebrew/opt/sqlite/lib -L/opt/homebrew/opt/openssl <at> 1.1/lib
 -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/libffi/lib
 -L/opt/homebrew/lib -F/opt/homebrew/Frameworks
 -Wl,-headerpad_max_install_names
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
 -L/opt/homebrew/lib/gcc/11 -I/opt/homebrew/opt/gcc/include
 -I/opt/homebrew/opt/libgccjit/include -I/opt/homebrew/opt/gmp/include
 -I/opt/homebrew/opt/jpeg/include''

Configured features:
ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS WEBP XIM ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Magit

Minor modes in effect:
  global-evil-mc-mode: t
  magit-delta-mode: t
  global-git-commit-mode: t
  transient-posframe-mode: t
  global-flycheck-mode: t
  corfu-history-mode: t
  eval-sexp-fu-flash-mode: t
  eros-mode: t
  speed-of-thought-mode: t
  global-evil-surround-mode: t
  evil-surround-mode: t
  global-auto-revert-mode: t
  global-anzu-mode: t
  anzu-mode: t
  save-place-mode: t
  tabspaces-mode: t
  winner-mode: t
  org-roam-db-autosync-mode: t
  gcmh-mode: t
  global-undo-fu-session-mode: t
  global-so-long-mode: t
  ws-butler-global-mode: t
  which-key-posframe-mode: t
  which-key-mode: t
  savehist-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  mini-frame-mode: t
  recentf-mode: t
  better-jumper-mode: t
  repeat-mode: t
  vertico-mouse-mode: t
  vertico-mode: t
  +popup-mode: t
  shell-dirtrack-mode: t
  evil-mode: t
  evil-local-mode: t
  windmove-mode: t
  ns-auto-titlebar-mode: t
  nano-modeline-mode: t
  leader-key-leader-override-mode: t
  global-leader-key-leader-override-mode: t
  delete-selection-mode: t
  pixel-scroll-precision-mode: t
  xterm-mouse-mode: t
  override-global-mode: t
  straight-use-package-mode: t
  straight-package-neutering-mode: t
  global-display-line-numbers-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tab-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  window-divider-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t


Features:
(evil-collection-help shadow mail-extr emacsbug web-mode magit-patch
magit-subtree magit-gitignore magit-ediff ediff ediff-merg ediff-mult
ediff-wind ediff-diff ediff-help ediff-init ediff-util all-the-icons
all-the-icons-faces data-material data-weathericons data-octicons
data-fileicons data-faicons data-alltheicons tramp-cache prettier nvm
iter2 typescript-mode haml-mode js css-mode evil-numbers speeddating
image-file image-converter org-drill persist lua-mode diary-lib
diary-loaddefs lsp-diagnostics lsp-modeline lsp-lens lsp-ui
lsp-ui-flycheck lsp-ui-doc lsp-ui-imenu lsp-ui-peek lsp-ui-sideline
lsp-ui-util lsp-zig lsp-steep lsp-svelte lsp-sqls lsp-yaml lsp-xml
lsp-vimscript lsp-vhdl lsp-volar lsp-vetur lsp-html lsp-verilog lsp-vala
lsp-v lsp-typeprof lsp-ttcn3 lsp-toml lsp-terraform lsp-tex lsp-sorbet
lsp-solargraph lsp-rust lsp-rf lsp-remark lsp-r lsp-purescript lsp-pylsp
lsp-pyls lsp-pwsh lsp-php lsp-perlnavigator lsp-perl lsp-openscad
lsp-ocaml lsp-magik lsp-nix lsp-nim lsp-nginx lsp-markdown lsp-lua
lsp-kotlin lsp-json lsp-javascript lsp-idris lsp-haxe lsp-groovy
lsp-hack lsp-graphql lsp-gleam lsp-go lsp-completion lsp-gdscript
lsp-fsharp lsp-fortran lsp-eslint lsp-erlang lsp-emmet lsp-elixir
lsp-elm lsp-dockerfile lsp-dhall lsp-d lsp-css lsp-csharp lsp-crystal
lsp-cmake lsp-clojure lsp-semantic-tokens lsp-clangd lsp-beancount
lsp-bash lsp-ansible lsp-angular lsp-ada lsp-actionscript lsp-mode
lsp-protocol spinner network-stream inline ht yaml-mode hippie-exp
make-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs wgrep grep embark-consult embark ffap wdired
evil-collection-dired lpr sort sh-script drag-stuff magit-extras view
org-journal org-crypt cal-iso evil-collection-vundo vundo markdown-mode
tabify consult-xref consult-vertico consult compat-28 dumb-jump popup
semantic/ia semantic/analyze/refs semantic/db-find semantic/db-ref
semantic/senator semantic/decorate pulse semantic/analyze semantic/sort
semantic/scope semantic/analyze/fcn semantic/db eieio-base semantic/ctxt
semantic/format ezimage semantic/tag-ls semantic/find
semantic/util-modes semantic/util semantic semantic/tag cedet dabbrev
company-rg company evil-matchit-ruby evil-matchit-simple
evil-matchit-prog evil-matchit evil-matchit-sdk semantic/lex semantic/fw
evil-nerd-commenter evil-nerd-commenter-operator evil-nerd-commenter-sdk
sgml-mode facemenu tramp-cmds executable multi-vterm
evil-collection-vterm vterm magit-bookmark bookmark tramp tramp-loaddefs
trampver tramp-integration files-x tree-sitter-langs
tree-sitter-langs-build tar-mode evil-collection-arc-mode arc-mode
archive-mode tree-sitter-hl tree-sitter tree-sitter-load tree-sitter-cli
tsc tsc-dyn tsc-dyn-get dired-aux tsc-obsolete evil-ruby-text-objects
rspec-mode ruby-refactor bundler inf-ruby ruby-mode smie enh-ruby-mode
tramp-compat ls-lisp compile term ehelp vterm-module term/xterm xterm
goto-addr bug-reference cl-print evil-mc evil-mc-command-execute
evil-mc-command-record evil-mc-cursor-make evil-mc-region
evil-mc-cursor-state evil-mc-undo evil-mc-vars evil-mc-known-commands
evil-mc-common magit-delta xterm-color evil-collection-magit
magit-submodule magit-obsolete magit-blame magit-stash magit-reflog
magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-tag
magit-merge magit-branch magit-reset magit-files magit-refs magit-status
magit package url-handlers magit-repos magit-apply magit-wip magit-log
which-func magit-diff smerge-mode diff git-commit log-edit add-log
magit-core magit-autorevert magit-margin magit-transient magit-process
with-editor magit-mode transient-posframe transient magit-git magit-base
crm evil-terminal-cursor-changer color flycheck hide-mode-line
popup-mode-core cus-start cape corfu-history corfu eval-sexp-fu eros
lispyville lispy lispy-inline avy etags fileloop evil-collection-edebug
edebug help-fns radix-tree lispy-tags mode-local elisp-def ert ewoc
evil-collection-debug debug backtrace evil-collection-xref xref sotlisp
vertico-directory skeleton envrc inheritenv evil-surround
evil-matchit-evil-setup evil-vimish-fold vimish-fold f dtrt-indent
elec-pair org-eldoc org-appear orgonomic org-indent org-superstar
form-feed oc-basic ol-eww eww url-queue mm-url ol-rmail ol-mhe ol-irc
ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime
gnutls dig gnus-sum shr pixel-fill kinsoku url-file url-dired svg dom
browse-url gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud
nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int
gnus-range message sendmail yank-media rfc822 mml mml-sec epa epg
rfc6068 epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils
mailheader gnus-win gnus nnheader gnus-util text-property-search
mail-utils range ol-docview doc-view jka-compr image-mode exif ol-bibtex
bibtex iso8601 ol-bbdb ol-w3m ol-doi org-link-doi autorevert filenotify
evil-anzu anzu saveplace tabspaces dired-x dired dired-loaddefs winner
cursor-sensor imenu ox-odt rng-loc rng-uri rng-parse rng-match rng-dt
rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex
ox-icalendar org-agenda ox-ascii ox-gfm ox-md ox-html table ox-publish
ox org-download async vulpea vulpea-meta vulpea-select vulpea-buffer
vulpea-db s vulpea-utils vulpea-note org-roam-migrate org-roam-log
org-roam-mode org-roam-capture org-roam-id org-roam-node org-roam-db
org-roam-utils org-roam-compat org-roam org-mac-link org-capture
org-attach emacsql-sqlite url-http url-auth mail-parse rfc2231 rfc2047
rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util url-parse auth-source password-cache json map url-vars mailcap
emacsql emacsql-compiler magit-section eieio eieio-core eieio-loaddefs
compat-27 compat-26 dash org-tempo tempo evil-org-agenda evil-org
org-element org-persist xdg org-id org-refile avl-tree generator
ob-shell org time-date ob ob-tangle ob-ref ob-lob ob-table ob-exp
org-macro org-footnote org-src ob-comint org-pcomplete org-list
org-faces org-entities noutline outline org-version ob-emacs-lisp
ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys
oc org-compat org-macs org-loaddefs format-spec find-func cal-menu
calendar cal-loaddefs gcmh undo-fu-session so-long ws-butler
popup-mode-hacks which-key-posframe posframe evil-collection-which-key
which-key savehist yasnippet mini-frame recentf tree-widget
better-jumper repeat vc-mtn vc-hg vc-git diff-mode vc-bzr vc-src vc-sccs
vc-svn vc-cvs vc-rcs log-view pcvs-util vc vc-dispatcher project server
gcmh-autoloads elisp-benchmarks-autoloads pcase pdf-tools-autoloads
tablist-autoloads restclient-autoloads multi-vterm-autoloads
vterm-autoloads dumb-jump-autoloads popup-autoloads haml-mode-autoloads
emmet-mode-autoloads terraform-mode-autoloads hcl-mode-autoloads
dockerfile-mode-autoloads yaml-mode-autoloads json-snatcher-autoloads
lua-mode-autoloads bundler-autoloads inf-ruby-autoloads
ruby-refactor-autoloads rspec-mode-autoloads
evil-ruby-text-objects-autoloads enh-ruby-mode-autoloads
sotlisp-autoloads elisp-def-autoloads lispyville-autoloads
lispy-autoloads zoutline-autoloads swiper-autoloads ivy-autoloads
iedit-autoloads eros-autoloads eval-sexp-fu-autoloads
eslintd-fix-autoloads web-mode-autoloads typescript-mode-autoloads
company-rg-autoloads company-autoloads git-link-autoloads
consult-git-commit-autoloads git-timemachine-autoloads
magit-delta-autoloads xterm-color-autoloads prettier-autoloads
nvm-autoloads iter2-autoloads flycheck-autoloads let-alist-autoloads
pkg-info-autoloads epl-autoloads tree-sitter-langs-autoloads
tree-sitter-autoloads tsc-autoloads lsp-ui-autoloads lsp-mode-autoloads
markdown-mode-autoloads spinner-autoloads imenu-list-autoloads
org-superstar-autoloads ox-gfm-autoloads org-pandoc-import-autoloads
gnuplot-autoloads org-download-autoloads async-autoloads
org-journal-autoloads deft-autoloads vulpea-autoloads org-roam-autoloads
emacsql-sqlite-autoloads emacsql-autoloads orgonomic-autoloads
org-drill-autoloads persist-autoloads org-appear-autoloads
org-contrib-autoloads evil-org-autoloads
evil-terminal-cursor-changer-autoloads transient-posframe-autoloads
better-jumper-autoloads hydra lv buffer-move-autoloads rotate-autoloads
mini-frame-autoloads embark-consult-autoloads embark-autoloads
consult-autoloads orderless orderless-autoloads cape-autoloads
corfu-autoloads vertico-mouse vertico vertico-autoloads
tabspaces-autoloads which-key-posframe-autoloads which-key-autoloads
popup-mode popup-mode-settings popup-mode-autoloads
hide-mode-line-autoloads evil-anzu-autoloads anzu-autoloads
titlecase-autoloads wgrep-autoloads yasnippet-autoloads
form-feed-autoloads drag-stuff-autoloads dtrt-indent-autoloads
ws-butler-autoloads evil-vimish-fold-autoloads vimish-fold-autoloads
evil-collection annalist evil-collection-autoloads annalist-autoloads
evil-mc-autoloads evil-numbers-autoloads speeddating-autoloads
evil-matchit-autoloads evil-nerd-commenter-autoloads
evil-visualstar-autoloads evil-surround-autoloads cus-edit cus-load
wid-edit evil evil-integration evil-maps evil-commands reveal flyspell
ispell evil-jumps evil-command-window evil-search evil-ex shell
pcomplete comint ansi-color evil-types evil-macros evil-repeat
evil-states evil-core advice evil-common windmove calc calc-loaddefs
calc-macs thingatpt rect evil-digraphs evil-vars pp vundo-autoloads
undo-fu-session-autoloads treemacs-tab-bar-autoloads
treemacs-magit-autoloads magit-autoloads magit-section-autoloads
git-commit-autoloads with-editor-autoloads transient-autoloads
treemacs-all-the-icons-autoloads all-the-icons-autoloads
treemacs-evil-autoloads evil-autoloads goto-chg-autoloads
treemacs-autoloads cfrs-autoloads ht-autoloads pfuture-autoloads
ace-window-autoloads avy-autoloads rainbow-mode-autoloads
posframe-autoloads ns-auto-titlebar ns-auto-titlebar-autoloads
nano-modeline memoize nano-modeline-autoloads memoize-autoloads
nano-light-theme face-remap nano-theme disp-table nano-theme-autoloads
envrc-autoloads inheritenv-autoloads compdef derived compdef-autoloads
edmacro kmacro helpful-autoloads elisp-refs-autoloads f-autoloads
s-autoloads use-package-bind-key dired-subtree-autoloads
dired-hacks-utils-autoloads dash-autoloads hydra-autoloads lv-autoloads
finder-inf leader-key bind-map leader-key-autoloads bind-map-autoloads
delsel pixel-scroll cua-base ring xt-mouse no-littering compat
no-littering-autoloads compat-autoloads bind-key easy-mmode
use-package-core use-package-autoloads bind-key-autoloads
straight-autoloads info straight comp comp-cstr warnings rx cl-seq
cl-macs cl-extra help-mode seq gv subr-x byte-opt cl-loaddefs cl-lib
bytecomp byte-compile cconv display-line-numbers iso-transl tooltip
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 simple cl-generic 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 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 kqueue
cocoa ns lcms2 multi-tty make-network-process native-compile emacs)

Memory information:
((conses 16 3263669 1699173)
 (symbols 48 75430 69)
 (strings 32 393490 192069)
 (string-bytes 1 14276348)
 (vectors 16 444279)
 (vector-slots 8 8645831 514923)
 (floats 8 2473 3994)
 (intervals 56 190415 18022)
 (buffers 992 460))


Aaron




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55687; Package emacs. (Sat, 28 May 2022 06:30:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 55687 <at> debbugs.gnu.org, acm <at> muc.de
Subject: Re: bug#55687: 29.0.50;
 make-frame chid frame crash/regression from dfa3e6f424
Date: Sat, 28 May 2022 09:29:36 +0300
merge 55687 55684
thanks

> Cc: acm <at> muc.de
> From: Aaron Jensen <aaronjensen <at> gmail.com>
> Date: Fri, 27 May 2022 23:40:13 -0400
> 
> After dfa3e6f424, the following crashes/hangs Emacs (on my machine it
> actually causes a debug window to pop up, Emacs to become unresponsive,
> and a sound to play continually)
> 
> (make-frame `((minibuffer . only) (parent-frame . ,(selected-frame))))

Looks like Emacs tries to enter the Lisp debugger, and gets stuck in
some loop.

Alan, this also affects the release branch, so please fix it there
first.

The patch Stefan posted earlier in bug#55684 fixes this problem as
well, AFAICT.

Thanks.




Merged 55684 55687. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 28 May 2022 06:30:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55687; Package emacs. (Sat, 28 May 2022 20:12:02 GMT) Full text and rfc822 format available.

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

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55687 <at> debbugs.gnu.org, acm <at> muc.de
Subject: Re: bug#55687: 29.0.50;
 make-frame chid frame crash/regression from dfa3e6f424
Date: Sat, 28 May 2022 16:11:03 -0400
On Sat, May 28, 2022 at 2:29 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> The patch Stefan posted earlier in bug#55684 fixes this problem as
> well, AFAICT.

I can confirm that this fixes one of the issues I reported, but not this one:

(make-frame `((parent-frame . ,(selected-frame))))

I don't know if there's something else invalid about this, but it
crashes Emacs, at least on macOS.

2022-05-28 16:10:15.834 Emacs[6287:10639499] -[_NSViewBackingLayer
getContext]: unrecognized selector sent to instance 0x600000339e30
2022-05-28 16:10:15.836 Emacs[6287:10639499] *** Terminating app due
to uncaught exception 'NSInvalidArgumentException', reason:
'-[_NSViewBackingLayer getContext]: unrecognized selector sent to
instance 0x600000339e30'
*** First throw call stack:
(
        0   CoreFoundation                      0x000000019e3e5198
__exceptionPreprocess + 240
        1   libobjc.A.dylib                     0x000000019e12fe04
objc_exception_throw + 60
        2   CoreFoundation                      0x000000019e478f40
-[NSObject(NSObject) __retain_OA] + 0
        3   CoreFoundation                      0x000000019e344544
___forwarding___ + 1764
        4   CoreFoundation                      0x000000019e343da0
_CF_forwarding_prep_0 + 96
        5   Emacs                               0x0000000100453c80
-[EmacsView lockFocus] + 36
        6   Emacs                               0x000000010044b3ac ns_focus + 56
        7   Emacs                               0x0000000100454164
ns_clear_frame_area + 156
        8   Emacs                               0x0000000100454074
-[EmacsView drawRect:] + 84
        9   AppKit                              0x00000001a1023a80
_NSViewDrawRect + 148
        10  AppKit                              0x00000001a175c1dc
-[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]
+ 1308
        11  AppKit                              0x00000001a10231f4
-[NSView(NSLayerKitGlue)
_drawViewBackingLayer:inContext:drawingHandler:] + 688
        12  AppKit                              0x00000001a1022e88
-[NSView(NSLayerKitGlue) drawLayer:inContext:] + 344
        13  QuartzCore                          0x00000001a51fdbf4
CABackingStoreUpdate_ + 484
        14  QuartzCore                          0x00000001a525bee0
___ZN2CA5Layer8display_Ev_block_invoke + 64
        15  QuartzCore                          0x00000001a51fcbf8
-[CALayer _display] + 1948
        16  AppKit                              0x00000001a1022c40
-[_NSBackingLayer display] + 372
        17  AppKit                              0x00000001a0f9be48
-[_NSViewBackingLayer display] + 644
        18  QuartzCore                          0x00000001a51fbc4c
_ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 780
        19  QuartzCore                          0x00000001a5347728
_ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 464
        20  QuartzCore                          0x00000001a51dd44c
_ZN2CA11Transaction6commitEv + 704
        21  AppKit                              0x00000001a0f1c5d4
-[NSWindow _setFrameCommon:display:fromServer:] + 3632
        22  Emacs                               0x000000010045640c
-[EmacsWindow setFrame:display:animate:] + 40
        23  AppKit                              0x00000001a0fe14cc
-[NSThemeFrame _growWindowReshapeContentAndToolbarView:withOldToolbarFrameSize:animate:]
+ 1232
        24  AppKit                              0x00000001a0fe0ddc
-[NSThemeFrame _reshapeContentAndToolbarView:withOldToolbarFrameSize:resizeWindow:animate:]
+ 300
        25  AppKit                              0x00000001a0fc16b0
-[NSThemeFrame _showHideToolbar:resizeWindow:animate:] + 284
        26  AppKit                              0x00000001a0fb06c0
-[NSWindow _showToolbar:animate:] + 216
        27  AppKit                              0x00000001a0fb05c0
-[NSToolbar _show:animate:] + 48
        28  AppKit                              0x00000001a0fae054
-[NSWindow setToolbar:] + 644
        29  Emacs                               0x00000001004551c0
-[EmacsWindow createToolbar:] + 168
        30  Emacs                               0x00000001004550c4
-[EmacsWindow initWithEmacsFrame:fullscreen:screen:] + 1868
        31  Emacs                               0x0000000100452650
-[EmacsView initFrameFromEmacs:] + 464
        32  Emacs                               0x0000000100460858
Fx_create_frame + 4388
        33  faces-b9447c93-57cd3aa1.eln         0x000000010487e7e0
F782d6372656174652d6672616d652d776974682d6661636573_x_create_frame_with_faces_0
+ 304
        34  Emacs                               0x00000001003fcb3c
exec_byte_code + 3232
        35  Emacs                               0x00000001003b9b28
Ffuncall + 316
        36  Emacs                               0x00000001003fcb3c
exec_byte_code + 3232
        37  Emacs                               0x00000001003b9b28
Ffuncall + 316
        38  frame-b40fc590-c0f95a84.eln         0x00000001045b0db8
F6d616b652d6672616d65_make_frame_0 + 1832
        39  Emacs                               0x00000001003b7ca8
eval_sub + 1520
        40  Emacs                               0x00000001003b811c Fprogn + 48
        41  Emacs                               0x00000001003b7dc0
eval_sub + 1800
        42  Emacs                               0x00000001003bbc80 Feval + 88
        43  elisp-mode-90dbfe40-b5ded1c4.eln    0x0000000146cc39f0
F656c6973702d2d6576616c2d6c6173742d73657870_elisp__eval_last_sexp_0 +
320
        44  Emacs                               0x00000001003b9b28
Ffuncall + 316
        45  elisp-mode-90dbfe40-b5ded1c4.eln    0x0000000146cc3f10
F6576616c2d6c6173742d73657870_eval_last_sexp_0 + 112
        46  Emacs                               0x00000001003b9b28
Ffuncall + 316
        47  Emacs                               0x00000001003b53dc
Ffuncall_interactively + 68
        48  Emacs                               0x00000001003b9b28
Ffuncall + 316
        49  Emacs                               0x00000001003b6498
Fcall_interactively + 4260
        50  simple-fab5b0cf-be7a6de0.eln        0x00000001047d0810
F636f6d6d616e642d65786563757465_command_execute_0 + 800
        51  Emacs                               0x00000001003b9b28
Ffuncall + 316
        52  Emacs                               0x000000010033dcec
command_loop_1 + 988
        53  Emacs                               0x00000001003ba6f0
internal_condition_case + 96
        54  Emacs                               0x000000010033d8fc
command_loop_2 + 52
        55  Emacs                               0x00000001003ba16c
internal_catch + 88
        56  Emacs                               0x0000000100480690
command_loop.cold.1 + 80
        57  Emacs                               0x000000010033d28c
record_auto_save + 0
        58  Emacs                               0x000000010033d144
recursive_edit_1 + 148
        59  Emacs                               0x000000010033d3b0
Frecursive_edit + 268
        60  Emacs                               0x000000010033c6e4 main + 7164
        61  dyld                                0x0000000100bf508c start + 520
)
libc++abi: terminating with uncaught exception of type NSException




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55687; Package emacs. (Sun, 29 May 2022 05:37:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 55687 <at> debbugs.gnu.org, acm <at> muc.de
Subject: Re: bug#55687: 29.0.50;
 make-frame chid frame crash/regression from dfa3e6f424
Date: Sun, 29 May 2022 08:36:03 +0300
> From: Aaron Jensen <aaronjensen <at> gmail.com>
> Date: Sat, 28 May 2022 16:11:03 -0400
> Cc: 55687 <at> debbugs.gnu.org, acm <at> muc.de
> 
> On Sat, May 28, 2022 at 2:29 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
> >
> > The patch Stefan posted earlier in bug#55684 fixes this problem as
> > well, AFAICT.
> 
> I can confirm that this fixes one of the issues I reported, but not this one:
> 
> (make-frame `((parent-frame . ,(selected-frame))))
> 
> I don't know if there's something else invalid about this, but it
> crashes Emacs, at least on macOS.

Is this in "emacs -Q"?  It doesn't crash for me here, neither with
today's master nor with the emacs-28 branch.  So maybe it is
macOS-specific, or some customizations are needed to trigger it.

> -[EmacsWindow setFrame:display:animate:] + 40
>         23  AppKit                              0x00000001a0fe14cc
> -[NSThemeFrame _growWindowReshapeContentAndToolbarView:withOldToolbarFrameSize:animate:]
> + 1232
>         24  AppKit                              0x00000001a0fe0ddc
> -[NSThemeFrame _reshapeContentAndToolbarView:withOldToolbarFrameSize:resizeWindow:animate:]
> + 300
>         25  AppKit                              0x00000001a0fc16b0
> -[NSThemeFrame _showHideToolbar:resizeWindow:animate:] + 284
>         26  AppKit                              0x00000001a0fb06c0
> -[NSWindow _showToolbar:animate:] + 216
>         27  AppKit                              0x00000001a0fb05c0
> -[NSToolbar _show:animate:] + 48
>         28  AppKit                              0x00000001a0fae054
> -[NSWindow setToolbar:] + 644
>         29  Emacs                               0x00000001004551c0
> -[EmacsWindow createToolbar:] + 168
>         30  Emacs                               0x00000001004550c4
> -[EmacsWindow initWithEmacsFrame:fullscreen:screen:] + 1868
>         31  Emacs                               0x0000000100452650
> -[EmacsView initFrameFromEmacs:] + 464
>         32  Emacs                               0x0000000100460858
> Fx_create_frame + 4388
>         33  faces-b9447c93-57cd3aa1.eln         0x000000010487e7e0
> F782d6372656174652d6672616d652d776974682d6661636573_x_create_frame_with_faces_0
> + 304

This part seems to say that it crashes while working on the tool bar.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55687; Package emacs. (Sun, 29 May 2022 12:53:02 GMT) Full text and rfc822 format available.

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

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55687 <at> debbugs.gnu.org, Alan Third <alan <at> idiocy.org>
Subject: Re: bug#55687: 29.0.50;
 make-frame chid frame crash/regression from dfa3e6f424
Date: Sun, 29 May 2022 08:52:07 -0400
On Sun, May 29, 2022 at 1:36 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > From: Aaron Jensen <aaronjensen <at> gmail.com>
> > Date: Sat, 28 May 2022 16:11:03 -0400
> > Cc: 55687 <at> debbugs.gnu.org, acm <at> muc.de
> >
> > On Sat, May 28, 2022 at 2:29 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
> > >
> > > The patch Stefan posted earlier in bug#55684 fixes this problem as
> > > well, AFAICT.
> >
> > I can confirm that this fixes one of the issues I reported, but not this one:
> >
> > (make-frame `((parent-frame . ,(selected-frame))))
> >
> > I don't know if there's something else invalid about this, but it
> > crashes Emacs, at least on macOS.
>
> Is this in "emacs -Q"?  It doesn't crash for me here, neither with
> today's master nor with the emacs-28 branch.  So maybe it is
> macOS-specific, or some customizations are needed to trigger it.

Yes, it is with "emacs -Q".

> > -[EmacsWindow setFrame:display:animate:] + 40
> >         23  AppKit                              0x00000001a0fe14cc
> > -[NSThemeFrame _growWindowReshapeContentAndToolbarView:withOldToolbarFrameSize:animate:]
> > + 1232
> >         24  AppKit                              0x00000001a0fe0ddc
> > -[NSThemeFrame _reshapeContentAndToolbarView:withOldToolbarFrameSize:resizeWindow:animate:]
> > + 300
> >         25  AppKit                              0x00000001a0fc16b0
> > -[NSThemeFrame _showHideToolbar:resizeWindow:animate:] + 284
> >         26  AppKit                              0x00000001a0fb06c0
> > -[NSWindow _showToolbar:animate:] + 216
> >         27  AppKit                              0x00000001a0fb05c0
> > -[NSToolbar _show:animate:] + 48
> >         28  AppKit                              0x00000001a0fae054
> > -[NSWindow setToolbar:] + 644
> >         29  Emacs                               0x00000001004551c0
> > -[EmacsWindow createToolbar:] + 168
> >         30  Emacs                               0x00000001004550c4
> > -[EmacsWindow initWithEmacsFrame:fullscreen:screen:] + 1868
> >         31  Emacs                               0x0000000100452650
> > -[EmacsView initFrameFromEmacs:] + 464
> >         32  Emacs                               0x0000000100460858
> > Fx_create_frame + 4388
> >         33  faces-b9447c93-57cd3aa1.eln         0x000000010487e7e0
> > F782d6372656174652d6672616d652d776974682d6661636573_x_create_frame_with_faces_0
> > + 304
>
> This part seems to say that it crashes while working on the tool bar.

Interesting. Luckily, I have never run across this other then while
trying to repro the first bug I reported here. Alan, any ideas? Does
this crash for you?

Aaron




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55687; Package emacs. (Sun, 29 May 2022 16:09:02 GMT) Full text and rfc822 format available.

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

From: Alan Third <alan <at> idiocy.org>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 55687 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#55687: 29.0.50; make-frame chid frame crash/regression from
 dfa3e6f424
Date: Sun, 29 May 2022 17:08:45 +0100
On Sun, May 29, 2022 at 08:52:07AM -0400, Aaron Jensen wrote:
> Interesting. Luckily, I have never run across this other then while
> trying to repro the first bug I reported here. Alan, any ideas? Does
> this crash for you?

Works fine for me. You could maybe try something like this:

--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -7773,6 +7773,9 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f
   [self setLayerContentsPlacement:NSViewLayerContentsPlacementTopLeft];
 #endif
 
+  /* toolbar support */
+  [(EmacsWindow*)[self window] createToolbar:f];
+
   if (ns_drag_types)
     [self registerForDraggedTypes: ns_drag_types];
 
@@ -8934,9 +8937,6 @@ - (instancetype) initWithEmacsFrame: (struct frame *) f
       if ([col alphaComponent] != (EmacsCGFloat) 1.0)
         [self setOpaque:NO];
 
-      /* toolbar support */
-      [self createToolbar:f];
-
       /* macOS Sierra automatically enables tabbed windows.  We can't
          allow this to be enabled until it's available on a Free system.
          Currently it only happens by accident and is buggy anyway.  */

-- 
Alan Third




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55687; Package emacs. (Sun, 29 May 2022 17:47:01 GMT) Full text and rfc822 format available.

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

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Alan Third <alan <at> idiocy.org>, Aaron Jensen <aaronjensen <at> gmail.com>,
 Eli Zaretskii <eliz <at> gnu.org>, 55687 <at> debbugs.gnu.org
Subject: Re: bug#55687: 29.0.50;
 make-frame chid frame crash/regression from dfa3e6f424
Date: Sun, 29 May 2022 13:46:23 -0400
On Sun, May 29, 2022 at 12:08 PM Alan Third <alan <at> idiocy.org> wrote:
>
> On Sun, May 29, 2022 at 08:52:07AM -0400, Aaron Jensen wrote:
> > Interesting. Luckily, I have never run across this other then while
> > trying to repro the first bug I reported here. Alan, any ideas? Does
> > this crash for you?
>
> Works fine for me. You could maybe try something like this:

This fixes it for me.

> --- a/src/nsterm.m
> +++ b/src/nsterm.m
> @@ -7773,6 +7773,9 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f
>    [self setLayerContentsPlacement:NSViewLayerContentsPlacementTopLeft];
>  #endif
>
> +  /* toolbar support */
> +  [(EmacsWindow*)[self window] createToolbar:f];
> +
>    if (ns_drag_types)
>      [self registerForDraggedTypes: ns_drag_types];
>
> @@ -8934,9 +8937,6 @@ - (instancetype) initWithEmacsFrame: (struct frame *) f
>        if ([col alphaComponent] != (EmacsCGFloat) 1.0)
>          [self setOpaque:NO];
>
> -      /* toolbar support */
> -      [self createToolbar:f];
> -
>        /* macOS Sierra automatically enables tabbed windows.  We can't
>           allow this to be enabled until it's available on a Free system.
>           Currently it only happens by accident and is buggy anyway.  */
>
> --
> Alan Third




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 27 Jun 2022 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 301 days ago.

Previous Next


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