Bug#1113674: reportbug: crashes on piping to pager (Errono 32: broken pipe)
Package: reportbug
Version: 13.2.0
Severity: important
While reporting a separate bug, I elected to pipe my report message to a
pager to re-read it, and encoutnered a crash saying:
BrokenPipeError: [Errno 32] Broken pipe
To reach this state, I had attached a file (a), piped to pager (l),
deleted the attachment (d), included the file as a text file (i), and
attempted to pipe it to pager a second time (l). The full logs are
attached to this bug report.
-- Package-specific info:
** Environment settings:
EDITOR=vim
PAGER='less -R'
VISUAL=vim
INTERFACE=text
** /home/nightfirecat/.reportbugrc:
reportbug_version "13.2.0"
mode standard
ui text
realname "Jordan Atwood"
email "nightfirecat@nightfirec.at"
smtphost "mail.nightfirec.at:465"
smtpuser "nightfirecat@nightfirec.at"
smtppasswd <omitted>
smtptls
-- System Information:
Debian Release: 13.0
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.41+deb13-amd64 (SMP w/24 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages reportbug depends on:
ii apt 3.0.3
ii python3 3.13.5-1
ii python3-reportbug 13.2.0
ii sensible-utils 0.0.25
reportbug recommends no packages.
Versions of packages reportbug suggests:
pn claws-mail <none>
ii debconf 1.5.91
pn debsums <none>
pn dlocate <none>
ii emacs-bin-common 1:30.1+1-6
ii exim4-daemon-light [mail-transport-agent] 4.98.2-1
ii file 1:5.46-5
ii gnupg 2.4.7-21
pn python3-urwid <none>
pn reportbug-gtk <none>
ii xdg-utils 1.2.1-2
Versions of packages python3-reportbug depends on:
ii apt 3.0.3
ii file 1:5.46-5
ii python3 3.13.5-1
ii python3-apt 3.0.0
ii python3-debian 1.0.1
ii python3-debianbts 4.1.1
ii python3-requests 2.32.3+dfsg-5
ii sensible-utils 0.0.25
python3-reportbug suggests no packages.
-- no debconf information
Submit this report on mesa-libgallium (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|?]? ?
Y - (default) Submit the bug report via email.
n - Don't submit the bug report; instead, save it in a temporary file (exits reportbug).
a - Attach a file.
c - Change editor and re-edit.
e - Re-edit the bug report.
i - Include a text file.
l - Pipe the message through the pager.
m - Choose a mailer to edit the report.
p - Print message to stdout.
q - Save it in a temporary file and quit.
d - Detach an attachment file.
t - Add and or remove tags.
? - Display this help.
Submit this report on mesa-libgallium (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|?]? a
Choose a file to attach: /home/nightfirecat/gdb.txt
Report will be sent to Debian Bug Tracking System <submit@bugs.debian.org>
Attachments:
/home/nightfirecat/gdb.txt
Submit this report on mesa-libgallium (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|?]? ?
Y - (default) Submit the bug report via email.
n - Don't submit the bug report; instead, save it in a temporary file (exits reportbug).
a - Attach a file.
c - Change editor and re-edit.
e - Re-edit the bug report.
i - Include a text file.
l - Pipe the message through the pager.
m - Choose a mailer to edit the report.
p - Print message to stdout.
q - Save it in a temporary file and quit.
d - Detach an attachment file.
t - Add and or remove tags.
? - Display this help.
Submit this report on mesa-libgallium (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|?]? l
Report will be sent to Debian Bug Tracking System <submit@bugs.debian.org>
Attachments:
/home/nightfirecat/gdb.txt
Submit this report on mesa-libgallium (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|?]? ?
Y - (default) Submit the bug report via email.
n - Don't submit the bug report; instead, save it in a temporary file (exits reportbug).
a - Attach a file.
c - Change editor and re-edit.
e - Re-edit the bug report.
i - Include a text file.
l - Pipe the message through the pager.
m - Choose a mailer to edit the report.
p - Print message to stdout.
q - Save it in a temporary file and quit.
d - Detach an attachment file.
t - Add and or remove tags.
? - Display this help.
Submit this report on mesa-libgallium (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|?]? d
Choose an attachment file to detach (an empty line will exit):
1 /home/nightfirecat/gdb.txt
Select the file:1
Attachment file "/home/nightfirecat/gdb.txt" successfully detached.
Report will be sent to Debian Bug Tracking System <submit@bugs.debian.org>
Submit this report on mesa-libgallium (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|?]? i
Choose a text file to include: /home/nightfirecat/gdb.txt
Spawning vim...
No changes were made in the editor.
Report will be sent to Debian Bug Tracking System <submit@bugs.debian.org>
Submit this report on mesa-libgallium (e to edit) [y|n|a|c|E|i|l|m|p|q|d|t|?]? ?
y - Submit the bug report via email.
n - Don't submit the bug report; instead, save it in a temporary file (exits reportbug).
a - Attach a file.
c - Change editor and re-edit.
E - (default) Re-edit the bug report.
i - Include a text file.
l - Pipe the message through the pager.
m - Choose a mailer to edit the report.
p - Print message to stdout.
q - Save it in a temporary file and quit.
d - Detach an attachment file.
t - Add and or remove tags.
? - Display this help.
Submit this report on mesa-libgallium (e to edit) [y|n|a|c|E|i|l|m|p|q|d|t|?]? l
Traceback (most recent call last):
File "/usr/bin/reportbug", line 2419, in <module>
main()
~~~~^^
File "/usr/bin/reportbug", line 1110, in main
return iface.user_interface()
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/bin/reportbug", line 2328, in user_interface
message, haspatch, justsave = handle_editing(
~~~~~~~~~~~~~~^
filename, message, self.options, sendto, attachments,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
package, severity, mode, bool(exinfo), issource,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
charset=charset, tags=tags,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
resumed=bool(self.options.resume_saved))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/reportbug", line 305, in handle_editing
p.write(message)
~~~~~~~^^^^^^^^^
BrokenPipeError: [Errno 32] Broken pipe
Reply to: