From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#52169: 28.0.60; "Args out of range" when completing shell command Date: Sun, 28 Nov 2021 22:38:27 +0100 Message-ID: <87wnksx8oc.fsf@gmail.com> 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="21983"; mail-complaints-to="usenet@ciao.gmane.io" To: 52169@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 28 22:39: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 1mrRt8-0005X5-JC for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Nov 2021 22:39:10 +0100 Original-Received: from localhost ([::1]:42498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrRt6-0001fR-RB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Nov 2021 16:39:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrRt0-0001fH-9F for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 16:39:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53154) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrRt0-0001pW-0d for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 16:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mrRsz-00058q-OA for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 16:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Nov 2021 21:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52169 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.163813551819734 (code B ref -1); Sun, 28 Nov 2021 21:39:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Nov 2021 21:38:38 +0000 Original-Received: from localhost ([127.0.0.1]:36467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrRsc-00058D-CK for submit@debbugs.gnu.org; Sun, 28 Nov 2021 16:38:38 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrRsZ-000585-A8 for submit@debbugs.gnu.org; Sun, 28 Nov 2021 16:38:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrRsZ-0001db-49 for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 16:38:35 -0500 Original-Received: from [2a00:1450:4864:20::331] (port=33713 helo=mail-wm1-x331.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrRsW-0001oX-Ui for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 16:38:34 -0500 Original-Received: by mail-wm1-x331.google.com with SMTP id r9-20020a7bc089000000b00332f4abf43fso10062014wmh.0 for ; Sun, 28 Nov 2021 13:38:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=IW/vihWWz2Or2jp2Njc/MORQhrZkgNQ6byisbszMmPo=; b=YCHYvsi09BHi0lapmlOb7RC8waFmHTZ/ZlBWdLIT+UkOIgXxbjx2VBToI8YoxSemom I7JO5KSa/ufJlqyFkhJkrPry2YSg1+4ZSQXeKm/rxT7ZvE35VofiDlu6pIS86WTAbyuL XHyxWt9aJrNLg1gLNbEAcsPT2y/8xGX4QPFdQFdp8cNBJktvtrG7DoXuy1BNcS9lSLyy 82SYhVXClAa7c9Lfj3X/6bPX65EFMy/IKXLUOyhq9jWzKaO/qk4NiWaMeT4g87X2fPID npUTDzzVXlOwZkYuf0s2jHVXD90jpxUI9Rh7T9m4N5znbmnpXGKmpgCESXDn+C6Gf6nB cFOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=IW/vihWWz2Or2jp2Njc/MORQhrZkgNQ6byisbszMmPo=; b=0jLQKqd47rEWIwgMEx210klGedVa0qkZ4N82gtrKxxiO/DRWiqJMDFpnQzIMc9URfN BVjO2S/mLyhMHzmwhi4fdvt99E+kZyw/eVeqXI2FsefTfW/+ajA2z287xYqFg8oA4l27 GDR5P7i+aAqUhF3zI86wf2+pyRGRCcamNOFmwXNIbzoGDlWdRpSiai86SQf5p5Me4F1Z s/PEBAZ5/VKVgb9TuY5KwaQxY+oWq3k0iEePlTfx/78Vn2Hxw7BREW/NJINHaz0VqZh/ 03GRRgmNhlaEaofVBDIM60pn5VPZR2DNqCfkkWX1XOBU1SDzBMkf4moUYAJav/wYzETq GkjA== X-Gm-Message-State: AOAM532zXOoiiXV4OtKOtVxjFV0Pkmmxk5SJq7sLrLDZ4E+2FhbMKoRg PsCHPp1r7mki6Cowkz/hJbVgU9a/oyQ= X-Google-Smtp-Source: ABdhPJxUuZ4UV4OM+6wWrOLpOmwmhCsBRK2YyWn7a1D7BeDEcdM9kmiQN9b9x/QSR9vU9rxcmxMArA== X-Received: by 2002:a1c:6a04:: with SMTP id f4mr31716964wmc.56.1638135511174; Sun, 28 Nov 2021 13:38:31 -0800 (PST) Original-Received: from hirondell ([109.190.253.16]) by smtp.gmail.com with ESMTPSA id l5sm18983897wms.16.2021.11.28.13.38.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Nov 2021 13:38:30 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::331 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" Xref: news.gmane.io gmane.emacs.bugs:220980 Archived-At: --=-=-= Content-Type: text/plain Hello, This is sort of a garbage-in, garbage-out situation, so I'll just let the reproducer speak for itself: $ emacs -Q M-! ./nosuchcommand C-b TAB - In Emacs 27.1, this simply says "[No match]". - In Emacs 28.0.60, this errors out: > completion--some: Args out of range: "./nosuchcomma", 0, 14 I'm attaching the backtrace obtained with M-x toggle-debug-on-error. I'm not on the most ideal setup for compiling ATM, so I apologize for not bisecting this (and for not trying with 27.2; Debian stable only has 27.1); I'll get to it eventually if no-one beats me. AFAICT it's not a very impactful issue; however, since Emacs now throws an error where it didn't use to, I figure there's a somewhat subtle bug here with consequences I can't quite evaluate. Thanks for your time. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=args-out-of-range.bt Content-Transfer-Encoding: quoted-printable Debugger entered--Lisp error: (args-out-of-range "./nosuchcomma" 0 14) completion-pcm--find-all-completions("./nosuchcomma" #f(compiled-function= (string pred action) #) nil 13 identity) completion-pcm--find-all-completions("./nosuchcomman" #f(compiled-functio= n (string pred action) #) nil 14 nil) completion-pcm-try-completion("./nosuchcomman" #f(compiled-function (stri= ng pred action) #) nil 14) #f(compiled-function (style) #)(partial-compl= etion) completion--some(#f(compiled-function (style) #) (basic partial-completion emacs22)) completion--nth-completion(1 "./nosuchcomman" #f(compiled-function (strin= g pred action) #) nil 14 (metadata (cycle-sort= -function . #f(compiled-function (comps) #)) (= category . file) (completion--unquote-requote . t))) completion-try-completion("./nosuchcomman" #f(compiled-function (string p= red action) #) nil 14 (metadata (cycle-sort-fu= nction . #f(compiled-function (comps) #)) (cat= egory . file) (completion--unquote-requote . t))) completion--do-completion(# 30) completion--in-region-1(# 30) #f(compiled-function (start end collection predicate) #)(# 30 #f(compiled-function (strin= g pred action) #) nil) apply(#f(compiled-function (start end collection predicate) #) (# 30 #f(compiled-function= (string pred action) #) nil)) #f(compiled-function (funs global args) #)(ni= l nil (# 30 #f(compiled-function (string pred= action) #) nil)) completion--in-region(# 30 #f(compiled-func= tion (string pred action) #) nil) completion-in-region(# 30 #f(compiled-funct= ion (string pred action) #) nil) completion-at-point() funcall-interactively(completion-at-point) call-interactively(completion-at-point nil nil) command-execute(completion-at-point) read-from-minibuffer("Shell command: " nil (keymap (9 . completion-at-poi= nt) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "= Previous History Item" previous-history-element :help "Put previous minibuf= fer history element in the min...") (next menu-item "Next History Item" nex= t-history-element :help "Put next minibuffer history element in the minibuf= ...") (isearch-backward menu-item "Isearch History Backward" isearch-backwa= rd :help "Incrementally search minibuffer history backward") (isearch-forwa= rd menu-item "Isearch History Forward" isearch-forward :help "Incrementally= search minibuffer history forward") (return menu-item "Enter" exit-minibuf= fer :key-sequence "\15" :help "Terminate input and exit minibuffer") (quit = menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffe= r") "Minibuf")) (13 . exit-minibuffer) (10 . exit-minibuffer) (7 . abort-mi= nibuffers) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-comman= d) (XF86Back . previous-history-element) (up . previous-line-or-history-ele= ment) (prior . previous-history-element) (XF86Forward . next-history-elemen= t) (down . next-line-or-history-element) (next . next-history-element) (27 = keymap (60 . minibuffer-beginning-of-buffer) (114 . previous-matching-histo= ry-element) (115 . next-matching-history-element) (112 . previous-history-e= lement) (110 . next-history-element))) nil shell-command-history nil) apply(read-from-minibuffer "Shell command: " nil (keymap (9 . completion-= at-point) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-= item "Previous History Item" previous-history-element :help "Put previous m= inibuffer history element in the min...") (next menu-item "Next History Ite= m" next-history-element :help "Put next minibuffer history element in the m= inibuf...") (isearch-backward menu-item "Isearch History Backward" isearch-= backward :help "Incrementally search minibuffer history backward") (isearch= -forward menu-item "Isearch History Forward" isearch-forward :help "Increme= ntally search minibuffer history forward") (return menu-item "Enter" exit-m= inibuffer :key-sequence "\15" :help "Terminate input and exit minibuffer") = (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit min= ibuffer") "Minibuf")) (13 . exit-minibuffer) (10 . exit-minibuffer) (7 . ab= ort-minibuffers) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-= command) (XF86Back . previous-history-element) (up . previous-line-or-histo= ry-element) (prior . previous-history-element) (XF86Forward . next-history-= element) (down . next-line-or-history-element) (next . next-history-element= ) (27 keymap (60 . minibuffer-beginning-of-buffer) (114 . previous-matching= -history-element) (115 . next-matching-history-element) (112 . previous-his= tory-element) (110 . next-history-element))) nil shell-command-history nil) read-shell-command("Shell command: " nil nil nil) byte-code("\306\10\203\16\0\307\310\311\11!\"\202\17\0\312\313\211\n\206\= 37\0\13\314=3D\205\37\0\315\313\316\"\211\205&\0\317\1!\262\1$\f\15E\207" [= shell-command-prompt-show-cwd default-directory buffer-file-name major-mode= current-prefix-arg shell-command-default-error-buffer read-shell-command f= ormat-message "Shell command in `%s': " abbreviate-file-name "Shell command= : " nil dired-mode dired-get-filename t file-relative-name] 7) call-interactively(shell-command nil nil) command-execute(shell-command) --=-=-= Content-Type: text/plain In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-11-26 built on hirondell Repository revision: 11860f89a593a8cfe7efb94e86370bbbe4318fba Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure --with-xwidgets --with-cairo --with-gconf --with-xinput2' Configured features: ACL CAIRO DBUS FREETYPE GCONF GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix --=-=-=--