From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maks Newsgroups: gmane.emacs.bugs Subject: bug#63103: 30.0.50; nconc compiler optimization breaks user packages Date: Thu, 27 Apr 2023 01:50:42 +0300 Message-ID: <877cty45rx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2576"; mail-complaints-to="usenet@ciao.gmane.io" To: 63103@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 27 06:17:30 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 1prt4T-0000Tr-AW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Apr 2023 06:17:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prt46-0005DZ-6v; Thu, 27 Apr 2023 00:17:06 -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 1prt45-0005DM-Cp for bug-gnu-emacs@gnu.org; Thu, 27 Apr 2023 00:17:05 -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 1prt45-0002Vp-4T for bug-gnu-emacs@gnu.org; Thu, 27 Apr 2023 00:17:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1prt44-0004r5-W0 for bug-gnu-emacs@gnu.org; Thu, 27 Apr 2023 00:17:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Maks Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Apr 2023 04:17:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63103 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.168256898518551 (code B ref -1); Thu, 27 Apr 2023 04:17:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Apr 2023 04:16:25 +0000 Original-Received: from localhost ([127.0.0.1]:57315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prt3Q-0004p2-JQ for submit@debbugs.gnu.org; Thu, 27 Apr 2023 00:16:25 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:59654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prnyk-0003sk-28 for submit@debbugs.gnu.org; Wed, 26 Apr 2023 18:51:14 -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 1prnyj-0002GR-P8 for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 18:51:13 -0400 Original-Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1prnyi-00031o-2g for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 18:51:13 -0400 Original-Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-94f7a7a3351so1477953366b.2 for ; Wed, 26 Apr 2023 15:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682549470; x=1685141470; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=Tq0XU/LFG0aak2vhXo8Zc3NF7eIIEIJ2osCnVSRAItM=; b=WR0zw8W389SpcRrxXUnrZ/nzp1q4BpeWLIqL/FteBxtnsODMzdooOh/1lcxjwVctR8 6bl/feJvm0SlH4t94MhnqzFJNc4odIO8DZvkZwennES7bf7SeHitavTzNsC7mXr5Juxd 0gLPWLNPqy2SWvOifzNo/iziG0Tw8N7wmJ0/c9SlvT82291jpORzP28/7MYGZLy5BQjS 5S/kXEKKRUGUZW/C1ewpYHE3oLpvyjtpaqEA9hN+mn57yHUkaREZvvyWIRg4IHAAk3O1 USf2TcqH7qcrkCI/AU0AizHfn0x9pxnsswCl8Jh9Nlb99X6vtz8Llh4DY7KWEuKhtIty hw/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682549470; x=1685141470; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Tq0XU/LFG0aak2vhXo8Zc3NF7eIIEIJ2osCnVSRAItM=; b=mHM6UjvXdz7P4b62gkZ5eypyunjZnYNlZrsxACT1WQYW6uL5fW5lFiQGzXxdnYr8q8 hP4XVywIZ9qAPjbCPqlk4x2dja5B4liyRnjPVL4vwRW03a99Cjyw6D2j4oxqGW+BreKl YFs01TbdxLXwQ6/WHz4IZqGpgsFsVviKHlnsvXkYxB3zaoK0JGIRwedSB/Q0aCdFGbRJ q9xW7EgYYD0HkXROTWrf84lYUCSBx5QIv4s0EYxqJBi26ZrVZlZvm43oXT6727BHJqZs FOInOR15OFY9PeBf2X3rCDwbWth5PRuM2LN1adjGrdwwSce/cO7gQQIXCDN/qlGw6hl8 eSdQ== X-Gm-Message-State: AAQBX9fMyZl0lZYqhc+ejvz2yFL6lkVc9eV7w5pzz3q7dkYibDfPQH+F 3MfcnrbLnGVC8W9Gc0yeket/mCeTQoQ= X-Google-Smtp-Source: AKy350YHzXddnrDAeSrdeKgdN81JLBqfLfsgex1TXIuEwdr6ndIruHcqXf8fKmwLwJOOs3Up5Fwncg== X-Received: by 2002:a17:906:4915:b0:94a:5d16:a280 with SMTP id b21-20020a170906491500b0094a5d16a280mr19024892ejq.9.1682549470323; Wed, 26 Apr 2023 15:51:10 -0700 (PDT) Original-Received: from pop-os (78-152-187-146.pool.ic.km.ua. [78.152.187.146]) by smtp.gmail.com with ESMTPSA id mb20-20020a170906eb1400b0094f432f2429sm8782758ejb.109.2023.04.26.15.51.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 15:51:10 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=mvproton@gmail.com; helo=mail-ej1-x632.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 27 Apr 2023 00:16:18 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260695 Archived-At: Hello, I'm sorry if you received similar emails from me, there were problems with sending. Commit e6ca5834a6eab91023e9f968b65683d0a74db1e7 ('Improved nconc and append compiler optimisations') breaks vertico.el package. After very long debugging time I figured out that this commit affects behavior of `completion-hilit-commonality` function of minibuffer.el. I don't completely understand how it works buf try do describe some details. If I set breakpoint before breaking commit to 'vertico--affixate then I'll get next stacktrace ``` Debugger entered--entering a function: * vertico--affixate((#("report-emacs-bug" 0 1 (face (completions-first-difference))) #("cd" 0 1 (face (completions-first-difference))) #("5x5" 0 1 (face (completions-first-difference))) #("arp" 0 1 (face (completions-first-difference))) #("dbx" 0 1 (face (completions-first-difference))) #("dig" 0 1 (face (completions-first-difference))) #("erc" 0 1 (face (completions-first-difference))) #("ert" 0 1 (face (completions-first-difference))) #("eww" 0 1 (face (completions-first-difference))) #("ftp" 0 1 (face (completions-first-difference))))) vertico--arrange-candidates() vertico--exhibit() ... ``` buf if I do the same after breaking commit I'll get stacktrace ``` Debugger entered--entering a function: * vertico--affixate((#("report-emacs-bug" 0 1 (face (completions-first-difference))) #("cd" 0 1 (face (completions-first-difference))) #("5x5" 0 1 (face (completions-first-difference))) #("arp" 0 1 (face (completions-first-difference))) #("dbx" 0 1 (face (completions-first-difference))) #("dig" 0 1 (face (completions-first-difference))) #("erc" 0 1 (face (completions-first-difference))) #("ert" 0 1 (face (completions-first-difference))) #("eww" 0 1 (face (completions-first-difference))) #("ftp" 0 1 (face (completions-first-difference))) . 0)) vertico--arrange-candidates() vertico--exhibit() ... ``` As you can see, the difference is in the tail of the list. With the such tail vertico.el package crashed with error: ``` Error in post-command-hook (vertico--exhibit): (wrong-type-argument listp 0) ``` But testing `completion-hilit-commonality` in REPL separetely from vertico.el package give the same result (with 0 at the end of list). Before sending this report I have tried a lot of versions of the vertico.el package and have the same result. So I tend to think that problem is not directly related to package.