GNU bug report logs -
#79080
31.0.50; report-emacs-bug-check-org errors with args-out-range
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 79080 in the body.
You can then email your comments to 79080 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#79080
; Package
emacs
.
(Wed, 23 Jul 2025 10:01:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Daniel Mendler <mail <at> daniel-mendler.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 23 Jul 2025 10:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
While sending my last bug report I observed the following issue, where
`report-emacs-bug-check-org' throws an `args-out-of-range' error. I've
got the following stack trace:
Debugger entered--Lisp error: (args-out-of-range "From: Daniel Mendler <mail <at> daniel-mendler.de>\nTo: bug-gnu-emacs <at> gnu.org\nSubject: 31.0.50; Piped command output is sometimes lost in Eshell\nGcc: nnimap+privat:sent\nX-Debbugs-Cc: Jim Porter <jporterbugs <at> gmail.com>\n--text follows this line--\nHello,\n\nsometimes when executing commands in Eshell with pipes the output seems\nto get lost, for example:\n\ngit log | head -n 10 | cat\n\nInstead of the expected ten lines of output, there is no output. This\nproblem does not happen always, but from time to time, so maybe there is\nsome timing issue regarding the process handling? In case the issue does\nnot occur immediately one can try this:\n\nwhile true { echo \"test\"; git log | head -n 1 | cat }\n\nFor such loops the following error might occur:\n\nCreating pipe: Too many open files\nCannot redirect stderr: Too many open files, /dev/null\n\nI tested this with emacs -Q on Emacs 31 with a relatively recent commit\nfrom a few days ago (1e3d76af5a7a16682e71f9df46f6788c0880cccd).\n\nCan someone confirm these problems? Thanks!\n\nIn GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version\n 3.24.49, cairo version 1.18.4) of 2025-07-15\nWindowing system distributor 'The X.Org Foundation', version 11.0.12101016\nSystem Description: Debian GNU/Linux 13 (trixie)\n\nConfigured using:\n 'configure --prefix=$HOME/.local/share/emacs\n --without-compress-install --with-tree-sitter --with-native-compilation\n --with-dbus --without-selinux --without-threads --disable-gc-mark-trace\n --without-gsettings --without-gpm --with-cairo --with-cairo-xcb\n --with-xinput2 --with-x-toolkit=gtk3 --without-toolkit-scroll-bars\n 'CFLAGS=-O3 -mtune=native -march=native''\n\nConfigured features:\nCAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF LIBSYSTEMD\nLIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP\nSOUND SQLITE3 TIFF TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM\nXRANDR GTK3 ZLIB" 0 7762)
(report-emacs-bug-check-org)
(report-emacs-bug-hook)
(message-send nil)
(message-send-and-exit nil)
(funcall-interactively message-send-and-exit nil)
(command-execute message-send-and-exit)
In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.49, cairo version 1.18.4) of 2025-07-15
Windowing system distributor 'The X.Org Foundation', version 11.0.12101016
System Description: Debian GNU/Linux 13 (trixie)
Configured using:
'configure --prefix=$HOME/.local/share/emacs
--without-compress-install --with-tree-sitter --with-native-compilation
--with-dbus --without-selinux --without-threads --disable-gc-mark-trace
--without-gsettings --without-gpm --with-cairo --with-cairo-xcb
--with-xinput2 --with-x-toolkit=gtk3 --without-toolkit-scroll-bars
'CFLAGS=-O3 -mtune=native -march=native''
Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF LIBSYSTEMD
LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP
SOUND SQLITE3 TIFF TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM
XRANDR GTK3 ZLIB
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#79080
; Package
emacs
.
(Sat, 26 Jul 2025 09:58:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 79080 <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 23 Jul 2025 11:59:48 +0200
> From: Daniel Mendler via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> While sending my last bug report I observed the following issue, where
> `report-emacs-bug-check-org' throws an `args-out-of-range' error. I've
> got the following stack trace:
>
> Debugger entered--Lisp error: (args-out-of-range "From: Daniel Mendler <mail <at> daniel-mendler.de>\nTo: bug-gnu-emacs <at> gnu.org\nSubject: 31.0.50; Piped command output is sometimes lost in Eshell\nGcc: nnimap+privat:sent\nX-Debbugs-Cc: Jim Porter <jporterbugs <at> gmail.com>\n--text follows this line--\nHello,\n\nsometimes when executing commands in Eshell with pipes the output seems\nto get lost, for example:\n\ngit log | head -n 10 | cat\n\nInstead of the expected ten lines of output, there is no output. This\nproblem does not happen always, but from time to time, so maybe there is\nsome timing issue regarding the process handling? In case the issue does\nnot occur immediately one can try this:\n\nwhile true { echo \"test\"; git log | head -n 1 | cat }\n\nFor such loops the following error might occur:\n\nCreating pipe: Too many open files\nCannot redirect stderr: Too many open files, /dev/null\n\nI tested this with emacs -Q on Emacs 31 with a relatively recent commit\nfrom a few days ago (1e3d76af5a7a16682e71f9df46f6788c0880cccd).\n\nCan someone confirm these problems? Thanks!\n\nIn GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version\n 3.24.49, cairo version 1.18.4) of 2025-07-15\nWindowing system distributor 'The X.Org Foundation', version 11.0.12101016\nSystem Description: Debian GNU/Linux 13 (trixie)\n\nConfigured using:\n 'configure --prefix=$HOME/.local/share/emacs\n --without-compress-install --with-tree-sitter --with-native-compilation\n --with-dbus --without-selinux --without-threads --disable-gc-mark-trace\n --without-gsettings --without-gpm --with-cairo --with-cairo-xcb\n --with-xinput2 --with-x-toolkit=gtk3 --without-toolkit-scroll-bars\n 'CFLAGS=-O3 -mtune=native -march=native''\n\nConfigured features:\nCAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF LIBSYSTEMD\nLIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP\nSOUND SQLITE3 TIFF TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM\nXRANDR GTK3 ZLIB" 0 7762)
> (report-emacs-bug-check-org)
Thanks. I added the author of that function to the discussion.
Antero, I think the bug here is in the assumption that the user edits
the original text inserted by report-emacs-bug only to _add_ text.
But that might not be true: users could remove some of the original
text as well. So something like the below is in order. But I also
wonder why we should look for the regular expression only in part of
the message to be sent. Can you explain why you did that?
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 5ffb86e..51954a1 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -430,8 +430,11 @@ report-emacs-bug-check-org
(goto-char (point-max))
(skip-chars-backward " \t\n")
(let* ((text (buffer-substring-no-properties (point-min) (point)))
- (l (length report-emacs-bug-orig-text))
- (text (substring text 0 l))
+ (ltext (length text))
+ (lorig (length report-emacs-bug-orig-text))
+ (text (if (< lorig ltext)
+ (substring text 0 lorig)
+ text))
(org-regex "\\b[Oo]rg\\(-mode\\)?\\b"))
(when (string-match-p org-regex text)
(when (yes-or-no-p "Is this bug about org-mode?")
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#79080
; Package
emacs
.
(Sat, 26 Jul 2025 10:05:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 79080 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Date: Wed, 23 Jul 2025 11:59:48 +0200
>> From: Daniel Mendler via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>> While sending my last bug report I observed the following issue, where
>> `report-emacs-bug-check-org' throws an `args-out-of-range' error. I've
>> got the following stack trace:
>>
>> Debugger entered--Lisp error: (args-out-of-range "From: Daniel Mendler <mail <at> daniel-mendler.de>\nTo: bug-gnu-emacs <at> gnu.org\nSubject: 31.0.50; Piped command output is sometimes lost in Eshell\nGcc: nnimap+privat:sent\nX-Debbugs-Cc: Jim Porter <jporterbugs <at> gmail.com>\n--text follows this line--\nHello,\n\nsometimes when executing commands in Eshell with pipes the output seems\nto get lost, for example:\n\ngit log | head -n 10 | cat\n\nInstead of the expected ten lines of output, there is no output. This\nproblem does not happen always, but from time to time, so maybe there is\nsome timing issue regarding the process handling? In case the issue does\nnot occur immediately one can try this:\n\nwhile true { echo \"test\"; git log | head -n 1 | cat }\n\nFor such loops the following error might occur:\n\nCreating pipe: Too many open files\nCannot redirect stderr: Too many open files, /dev/null\n\nI tested this with emacs -Q on Emacs 31 with a relatively recent commit\nfrom a few days ago (1e3d76af5a7a16682e71f9df46f6788c0880cccd).\n\nCan someone confirm these problems? Thanks!\n\nIn GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version\n 3.24.49, cairo version 1.18.4) of 2025-07-15\nWindowing system distributor 'The X.Org Foundation', version 11.0.12101016\nSystem Description: Debian GNU/Linux 13 (trixie)\n\nConfigured using:\n 'configure --prefix=$HOME/.local/share/emacs\n --without-compress-install --with-tree-sitter --with-native-compilation\n --with-dbus --without-selinux --without-threads --disable-gc-mark-trace\n --without-gsettings --without-gpm --with-cairo --with-cairo-xcb\n --with-xinput2 --with-x-toolkit=gtk3 --without-toolkit-scroll-bars\n 'CFLAGS=-O3 -mtune=native -march=native''\n\nConfigured features:\nCAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF LIBSYSTEMD\nLIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP\nSOUND SQLITE3 TIFF TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM\nXRANDR GTK3 ZLIB" 0 7762)
>> (report-emacs-bug-check-org)
>
> Thanks. I added the author of that function to the discussion.
>
> Antero, I think the bug here is in the assumption that the user edits
> the original text inserted by report-emacs-bug only to _add_ text.
Yes, I can confirm that this is the problem. I edited the original text.
Daniel
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#79080
; Package
emacs
.
(Sat, 26 Jul 2025 15:24:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 79080 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Date: Wed, 23 Jul 2025 11:59:48 +0200
>> From: Daniel Mendler via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>> While sending my last bug report I observed the following issue, where
>> `report-emacs-bug-check-org' throws an `args-out-of-range' error. I've
>> got the following stack trace:
>>
> Antero, I think the bug here is in the assumption that the user edits
> the original text inserted by report-emacs-bug only to _add_ text.
> But that might not be true: users could remove some of the original
> text as well. So something like the below is in order. But I also
> wonder why we should look for the regular expression only in part of
> the message to be sent. Can you explain why you did that?
The Features: section of the original text contains the string " org ",
which will match the regex and always flag a false positive.
The snippet you posted works but I think it will match that " org "
feature if the user removes any of the original text.
I attached a patch that compares the number of matches in the original
text to the edited text. This should avoid false positives unless the
user deletes the " org " strings from the original text. And it will fix
the error.
[0001-Fix-index-error-when-checking-edited-bug-reports.patch (text/x-diff, attachment)]
Merged 79080 79138.
Request was from
Eli Zaretskii <eliz <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 01 Aug 2025 06:47:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 02 Aug 2025 13:32:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Daniel Mendler <mail <at> daniel-mendler.de>
:
bug acknowledged by developer.
(Sat, 02 Aug 2025 13:32:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 79080-done <at> debbugs.gnu.org (full text, mbox):
> From: Antero Mejr <mail <at> antr.me>
> Cc: Daniel Mendler <mail <at> daniel-mendler.de>, 79080 <at> debbugs.gnu.org
> Date: Sat, 26 Jul 2025 15:23:16 +0000
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> Date: Wed, 23 Jul 2025 11:59:48 +0200
> >> From: Daniel Mendler via "Bug reports for GNU Emacs,
> >> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >>
> >> While sending my last bug report I observed the following issue, where
> >> `report-emacs-bug-check-org' throws an `args-out-of-range' error. I've
> >> got the following stack trace:
> >>
> > Antero, I think the bug here is in the assumption that the user edits
> > the original text inserted by report-emacs-bug only to _add_ text.
> > But that might not be true: users could remove some of the original
> > text as well. So something like the below is in order. But I also
> > wonder why we should look for the regular expression only in part of
> > the message to be sent. Can you explain why you did that?
>
> The Features: section of the original text contains the string " org ",
> which will match the regex and always flag a false positive.
>
> The snippet you posted works but I think it will match that " org "
> feature if the user removes any of the original text.
>
> I attached a patch that compares the number of matches in the original
> text to the edited text. This should avoid false positives unless the
> user deletes the " org " strings from the original text. And it will fix
> the error.
Thanks, now installed on the master branch, and closing the bug.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 02 Aug 2025 13:32:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Dima Kogan <dima <at> secretsauce.net>
:
bug acknowledged by developer.
(Sat, 02 Aug 2025 13:32:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 31 Aug 2025 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 18 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.