From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Chris Hecker" Newsgroups: gmane.emacs.bugs Subject: bug#58954: 28.2; ibuffer.el out of range error on lots of buffers? Date: Tue, 01 Nov 2022 22:39:16 +0000 Message-ID: Reply-To: Chris Hecker Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20653"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: eM_Client/8.2.1721.0 To: 58954@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 01 23:40:30 2022 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 1opzvq-0005EI-6R for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Nov 2022 23:40:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opzvP-0008TR-Pp; Tue, 01 Nov 2022 18:40:03 -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 1opzvO-0008SY-JS for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 18:40:02 -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 1opzvO-0004Ov-B2 for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 18:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opzvO-00061l-5y for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 18:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Chris Hecker" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Nov 2022 22:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58954 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.166734237323113 (code B ref -1); Tue, 01 Nov 2022 22:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Nov 2022 22:39:33 +0000 Original-Received: from localhost ([127.0.0.1]:44401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opzuu-00060h-Ex for submit@debbugs.gnu.org; Tue, 01 Nov 2022 18:39:33 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opzus-00060Z-RV for submit@debbugs.gnu.org; Tue, 01 Nov 2022 18:39:31 -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 1opzus-0008Nw-M5 for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 18:39:30 -0400 Original-Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opzul-00043C-SY for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 18:39:26 -0400 Original-Received: by mail-pf1-x42a.google.com with SMTP id 192so14783066pfx.5 for ; Tue, 01 Nov 2022 15:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=d6-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=W/wVAs6L03tytvxkHJ9+fRAMp9yiHT70h9GNXYHjCqg=; b=5D9vcKp/RwO+n2a9p6Vqdi2zyu7/SeJm90XE2GACUQqPyB0RDni9zMi0KfcmPxClKi IlT0ZXNIpENNrjMKODd679AuvuFuyw3kvNSXygKa5AJtkPMYeZCbLFshp5iDyQ2cmrJG /pe1w84u0jKaRoj05n41MeUISua48oT2vfIjRB60/Ori02wGpHqiFzWsiwkUHZlX49vW 5x/8etIasM8qxG6Egm9Fi/uIN+qPU+8U+qYy14LdQo0XyFzsoXJpZRJqjZXbkOG/5DT2 ZzUXJSMAXrD0Tm2kImSn/JXXtFmxNtioMAErTb3mMvN4TkT6B10BQ4Px/u1d9l8U9M4g 1MyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W/wVAs6L03tytvxkHJ9+fRAMp9yiHT70h9GNXYHjCqg=; b=TWFWcZ7Ba4EWn23g/73/TQNBY75DXZZVxDk14tbnwapv7w5wlyazwviU59TVUlI3Ib kA1er3Sexd1Uw5wjOs8JfAsioPDLN0ZvEGAj5oJwxP05NqxGLzdl3Dncvbe2tWbN+Vue xPQmK3fIo83fBHtSQEZnOHZ7Z5yXke2iTr/u9RDXV3tJ4CsHg78sjvZGGh5ztL/jnha3 ayubn6d2zLUH791xuPwT3Q9IGWdeXLIn2lW9tFjt1WOJW7BXuC8ZxBEY0cAyICTmsDmj zgRdfrSM6Vkxsy2kDSDl0EWs6ZPpgNZSyU36o/zLIMD+InUUJSOUNXPfYbD/RSJhXZ2r vsLA== X-Gm-Message-State: ACrzQf3xiZ3EM6VXdzK2w9v+G/Mv/03bg33Sw4QVYM/LRakNLMGGT8UH 3rvDA7DLML+TUZsvsdhaJuc5kJvBD+vNxg== X-Google-Smtp-Source: AMsMyM5CtXRnqUR+TBbRB9H5nXNRWop7q8+1/obxlZQVv3XoV4WiYMfnCtaI6U2EWWg/E6D/ZOWcdA== X-Received: by 2002:a05:6a00:24d0:b0:56c:fa97:a91c with SMTP id d16-20020a056a0024d000b0056cfa97a91cmr21980927pfv.23.1667342360329; Tue, 01 Nov 2022 15:39:20 -0700 (PDT) Original-Received: from [192.168.1.129] (157-131-207-86.fiber.dynamic.sonic.net. [157.131.207.86]) by smtp.gmail.com with ESMTPSA id j8-20020a17090a738800b0020d39ffe987sm14604pjg.50.2022.11.01.15.39.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Nov 2022 15:39:19 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=checker@d6.com; helo=mail-pf1-x42a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246818 Archived-At: I was getting Args out of range: #, 51267, 51313 when hitting C-x C-b with a ton of buffers open, lots of tramp buffers, some eww buffers, etc. 722 buffers 86533321 669 files, 2 processes It's too much for me to try to repro for me right now with emacs -Q, but hopefully this will help: I debugged it to line 1980 in release 28.2 ibuffer.el in function ibuffer-map-lines: (delete-region (line-beginning-position) (1+ (line-end-position))) (line-end-position) evaluated to the end of the buffer, so 1+'ing it made delete-region error. Changing it to: (delete-region (line-beginning-position) (min (point-max) (1+ (line-end-position)))) made ibuffer work again. I didn't look to closely to know if this was the result of some logic error earlier in the function, or if this=20 should have a min guard on it normally or what. Thanks, Chris In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13 built on AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.19044 System Description: Microsoft Windows 10 Home (v10.0.2009.19044.2130) Configured using: 'configure --with-modules --without-dbus --with-native-compilation --without-compress-install CFLAGS=3D-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: IBuffer Minor modes in effect: minibuffer-depth-indicate-mode: t icicle-mode: t which-function-mode: t shell-dirtrack-mode: t winner-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t Load-path shadows: ~/emacs/lisp/json hides=20 c:/apps/emacs/emacs-28.2/share/emacs/28.2/lisp/json ~/emacs/lisp/css-mode hides=20 c:/apps/emacs/emacs-28.2/share/emacs/28.2/lisp/textmodes/css-mode Features: (shadow sort emacsbug cl apropos frameset macros profiler ediff-ptch ediff-vers po tar-mode term ehelp align arc-mode archive-mode nroff-mode mode-local color completion find-cmd find-dired loadhist reporter gud autoconf autoconf-mode cus-start ibuf-ext sh-script executable pcmpl-unix novice tramp-adb tramp-archive tramp-ftp tramp-gvfs dbus tramp-cmds rfc2104 tramp-cache make-mode edebug vc-filewise eieio-opt speedbar ezimage dframe shortdoc cl-print debug backtrace find-func asm-mode hl-line epa-file noutline outline calccomp calc-bin calc-alg calc-menu help-fns radix-tree ld-script find-file js vc-annotate filecache rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode nxml-util nxml-enc xmltok log-view log-edit pcvs-util smerge-mode diff vc-mtn vc-hg vc-dir ewoc mule-util mail-extr dabbrev conf-mode bat-mode python tramp-sh vc-git diff-mode ninja-mode jka-compr lpr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc meson-mode smie vc-bzr vc-dispatcher gnutls network-stream url-http url-gw nsm url-cache url-auth eww xdg url-queue shr kinsoku svg xml dom mm-url gnus nnheader misearch multi-isearch add-log cap-words superword subword face-remap etags-select etags fileloop generator xref project mb-depth two-column bookmark icicles icicles-mode comp comp-cstr cl-extra icicles-cmd2 icicles-cmd1 icicles-mcmd doremi icicles-fn icicles-var icicles-opt edmacro ffap kmacro cus-theme thingatpt icicles-face hexrgb calc-vec calc-forms calc-misc calc-aent calc-prog calc-ext calc calc-loaddefs rect calc-macs vcl-mode cc-langs mel-mode prop-mode pfx-mode message rmc puny help-mode easy-mmode dired+ image-dired image-mode exif image-file image-converter dired-aux dired-x dired dired-loaddefs rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader smtpmail sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils ibuffer ibuffer-loaddefs ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util caml-font 7z-arc-mode cperl-mode rx facemenu fakecygpty matlab derived tempo which-func cus-edit pp wid-edit grep cus-load cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs compile text-property-search imenu browse-kill-ring view checker-allout checker-outline hex-util hmac-sha1 tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color parse-time iso8601 time-date format-spec web-mode advice tex-site warnings server info winner ring yaml-mode ispell finder-inf package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars 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 cl-generic 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 simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 7324264 558950) (symbols 48 73599 22) (strings 32 391231 65833) (string-bytes 1 18333786) (vectors 16 291582) (vector-slots 8 6987527 568250) (floats 8 3204 1878) (intervals 56 852060 17750) (buffers 992 794))