From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christian Albrecht via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#49877: [Emacs 28.0.50 Trunk] *ERROR*: No applicable method: frame-creation-function Date: Mon, 09 Aug 2021 17:44:48 +0200 Message-ID: <87eeb2vcxm.fsf@mayflower.de> References: <1DD4A5FD-DB2F-4780-AA3F-8E3D656FFB7B@gmail.com> Reply-To: Christian Albrecht Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9174"; mail-complaints-to="usenet@ciao.gmane.io" To: 49877@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 09 17:54:10 2021 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 1mD7bO-00029A-57 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Aug 2021 17:54:10 +0200 Original-Received: from localhost ([::1]:38748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mD7bM-00005C-Up for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Aug 2021 11:54:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD7bG-000051-Di for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 11:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mD7bG-0000dE-4M for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 11:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mD7bG-0005aK-3j for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 11:54:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <1DD4A5FD-DB2F-4780-AA3F-8E3D656FFB7B@gmail.com> Resent-From: Christian Albrecht Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Aug 2021 15:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49877 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162852440821420 (code B ref -1); Mon, 09 Aug 2021 15:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Aug 2021 15:53:28 +0000 Original-Received: from localhost ([127.0.0.1]:57581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD7ah-0005ZP-05 for submit@debbugs.gnu.org; Mon, 09 Aug 2021 11:53:27 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD7Tn-0005P1-CX for submit@debbugs.gnu.org; Mon, 09 Aug 2021 11:46:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD7Tm-0004zJ-SO for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 11:46:19 -0400 Original-Received: from mx23.mayflower.de ([2a01:4f8:10a:b0e::1]:32848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD7Tk-0003eE-IR for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 11:46:18 -0400 Original-Received: from localhost (localhost [IPv6:::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx23.mayflower.de (Postfix) with ESMTPSA id D0BF120EBDA for ; Mon, 9 Aug 2021 15:46:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mayflower.de; s=m1; t=1628523973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=yqzM+OPRqBRMEhJmKZURfl9AXiXubFXT82pDnJE0NNY=; b=1WAwYtjKQj7lOcTvE82M9lf7eOXHwN/j4XD2kmvya4E0vBzoQSP1OUI0C0Az/l6DXLrUeZ ffKpj+x5m3FXWaBB1hWTnUBJBuiBzmED7UiE7UjGq2SMYQhxoYYPu/qvcYPmdxu4OGbfd5 8P1tRFZj9eLObLmxeKEoayl3DjRDTDQm7gBxquJlj0O5rAdJ8u5W3iKH1N9wBznv5+MeKT bDCulZhvxHld9r87+JBqmPoZTfNdabE13aDu7HZZq23SIqaz+wKLnKKm4IRwGdmpD6B+B+ EHDRel2dI27eYduNVyI3grtPpQ0XdTprofxmtJ4ADoqR/eqtdwFLW1QbQ8BqTw== Received-SPF: pass client-ip=2a01:4f8:10a:b0e::1; envelope-from=christian.albrecht@mayflower.de; helo=mx23.mayflower.de 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 09 Aug 2021 11:53:26 -0400 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" Xref: news.gmane.io gmane.emacs.bugs:211448 Archived-At: --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: plain/text Content-Disposition: attachment; filename=Dockerfile Content-Transfer-Encoding: base64 RlJPTSBuaXhvcy9uaXgKClJVTiBuaXgtY2hhbm5lbCAtLWFkZCBodHRwczovL25peG9zLm9yZy9j aGFubmVscy9uaXhwa2dzLXVuc3RhYmxlIG5peHBrZ3MKUlVOIG5peC1jaGFubmVsIC0tdXBkYXRl ClJVTiBuaXgtZW52IC1pIGJhc2gKClJVTiB3Z2V0IGh0dHBzOi8vZ2l0aHViLmNvbS9uaXgtY29t bXVuaXR5L2VtYWNzLW92ZXJsYXkvYXJjaGl2ZS9tYXN0ZXIudGFyLmd6IFwKICAmJiB0YXIgeGYg bWFzdGVyLnRhci5negoKV09SS0RJUiAvZW1hY3Mtb3ZlcmxheS1tYXN0ZXIKClJVTiBlY2hvIC1l ICJ7IHBrZ3MgPyAoaW1wb3J0IDxuaXhwa2dzPiB7IG92ZXJsYXlzID0gWyAoaW1wb3J0IC4vLikg XTsgfSkgfTpcblxuXAogIGxldFxuXAogICAgZW1hY3NXaXRoUGFja2FnZXMgPSAocGtncy5lbWFj c1BhY2thZ2VzRm9yIHBrZ3MuZW1hY3NHaXQtbm94KS5lbWFjc1dpdGhQYWNrYWdlcztcblwKICBp blxuXAogICAgZW1hY3NXaXRoUGFja2FnZXMgKGVwa2dzOiAod2l0aCBlcGtncy5lbHBhUGFja2Fn ZXM7IFsgY291bnNlbCBdKSlcblwKIiA+PiBlbWFjcy5uaXgKClJVTiBuaXgtYnVpbGQgLi9lbWFj cy5uaXgKClJVTiBlY2hvIC1lICJcCiAgZXhwb3J0IEVNQUNTPSQoYXdrICcvZXhlYy8ge3ByaW50 ICQyfScgcmVzdWx0L2Jpbi9lbWFjcylcblwKICBleHBvcnQgRU1BQ1NDTElFTlQ9JChhd2sgJy9l eGVjLyB7cHJpbnQgJDJ9JyByZXN1bHQvYmluL2VtYWNzY2xp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