unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Christian Albrecht via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 49877@debbugs.gnu.org
Subject: bug#49877: [Emacs 28.0.50 Trunk] *ERROR*: No applicable method: frame-creation-function
Date: Mon, 09 Aug 2021 17:44:48 +0200	[thread overview]
Message-ID: <87eeb2vcxm.fsf@mayflower.de> (raw)
In-Reply-To: <1DD4A5FD-DB2F-4780-AA3F-8E3D656FFB7B@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2232 bytes --]

Hello Emacs,

Here is one way to reliably produce the behavior, please excuse
if you think the method or tools that are used are inappropriate,
this is the best i could come up with.

Unfortunatly, for me it isn't reproducible on a docker silex/emacs
image based on Debian. It hit me on my NixOS machine, so i wanted
to create a setup that could be shared to this list.

Bisecting the Github mirror source results in the already mentioned
commit with the message header "Evaluate eql specializers"
> 6535fd1fa9ac21238a168916249ac59677a6118e is the first bad commit

The eval string "(prog1 'counsel (require 'counsel))" is the minimum
piece of code that triggers the bug. This is the stripped down expansion
of the form that is generated by the package leaf.el.

Note that counsel is not the only package that produces the error.
Consequently, some package, e.g. 'package does not invoke it.

Edebugging the scenario leads to frame.el at
    (setq frame (let ((window-system w)) ; Hack attack!
                  (frame-creation-function params)))
where the crash happens.

Maybe the attached Dockerfile and brief usage info is of help for
someone to debug it, i do lack the knowledge to make sense of the behavior.

Also a diff of the config.status from my experiments with the debian
image is available, and if requested or needed, i might provide more
information.

Following command lines might be handy to inspect and observe what
is happening.

To create the image
% docker build -t emacs-49877 .

To run the drafted crash
% docker run --rm -it emacs-49877

To inspect in a shell or run emacs inside the container
% docker run --rm -it --entrypoint /bin/sh --name emacs emacs-49877

To show the build log
# source .env && nix log $BINPATH

To inspect the state of build environment
# source .env && nix show-derivation $BINPATH

To observe the bug while running in an emacsclient in one terminal
% docker run --rm -it --entrypoint /bin/sh --name emacs emacs-49877
# result/bin/emacs -Q --daemon
# result/bin/emacsclient -t

And in another terminal, two times, the second will crash
% docker exec -it emacs /emacs-overlay-master/result/bin/emacsclient -t --eval "(prog1 'counsel (require 'counsel))"
C-x 5 0

Cheers,
Christian


[-- Attachment #2: Dockerfile --]
[-- Type: plain/text, Size: 1660 bytes --]

  parent reply	other threads:[~2021-08-09 15:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04 16:03 bug#49877: [Emacs 28.0.50 Trunk] *ERROR*: No applicable method: frame-creation-function Jacob Faibussowitsch
2021-08-05 11:12 ` Lars Ingebrigtsen
2021-08-05 12:39   ` Jacob Faibussowitsch
2021-08-06  9:45     ` Lars Ingebrigtsen
2021-08-06 12:55       ` Jacob Faibussowitsch
2021-08-09 23:07       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-10  5:53         ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-10  6:00           ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-10  6:14             ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-10 13:43               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-10 14:25                 ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-09 15:44 ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-08-09 15:57   ` Christian Albrecht via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eeb2vcxm.fsf@mayflower.de \
    --to=bug-gnu-emacs@gnu.org \
    --cc=49877@debbugs.gnu.org \
    --cc=christian.albrecht@mayflower.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).