[Reportbug-maint] Bug#857794: reportbug: crash when encountering some non-ASCII characters
Dima Kogan
dkogan at debian.org
Wed Mar 15 06:36:57 UTC 2017
Package: reportbug
Version: 7.1.5
Severity: grave
Dear Maintainer,
-- Package-specific info:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20170314/c9071772/attachment.ksh>
-------------- next part --------------
Hi. I just tried to send an unblock, and reportbug crashed. Session:
dima at scrawny:~$ sudo apt install reportbug
...
Setting up reportbug (7.1.5) ...
dima at scrawny:~$ reportbug
Please enter the name of the package in which you have found a problem, or type 'other' to report a more
general problem. If you don't know what package the bug is in, please contact debian-user at lists.debian.org for
assistance.
> release.debian.org
Are you sure you want to file a bug on release.debian.org? [y|N|q|?]? y
*** Welcome to reportbug. Use ? for help at prompts. ***
Note: bug reports are publicly archived (including the email address of the submitter).
Detected character set: us-ascii
Please change your locale if this is incorrect.
Using 'Dima Kogan <dkogan at debian.org>' as your from address.
Will send report to Debian (per lsb_release).
What sort of request is this? (If none of these things mean anything to you, or you are trying to report a bug
in an existing package, please press Enter to exit reportbug.)
1 binnmu binNMU requests
2 britney testing migration script bugs
3 jessie-pu jessie proposed updates requests
4 other None of the other options
5 rm Stable/Testing removal requests
6 transition transition tracking
7 unblock unblock requests
8 wheezy-pu wheezy proposed updates requests
Choose the request type: 7
Please enter the name of the package: geda-gaf
Checking status database...
Traceback (most recent call last):
File "/usr/bin/reportbug", line 2234, in <module>
main()
File "/usr/bin/reportbug", line 1107, in main
return iface.user_interface()
File "/usr/bin/reportbug", line 1698, in user_interface
self.options.http_proxy)
File "/usr/bin/reportbug", line 540, in special_prompts
return pkgprompts(package, bts, ui, fromaddr, timeout, online, http_proxy)
File "/usr/lib/python3/dist-packages/reportbug/debbugs.py", line 450, in handle_debian_release
info = utils.get_source_package(package)
File "/usr/lib/python3/dist-packages/reportbug/utils.py", line 540, in get_source_package
data = subprocess.getoutput('apt-cache showsrc ' + pipes.quote(package))
File "/usr/lib/python3.5/subprocess.py", line 514, in getoutput
return getstatusoutput(cmd)[1]
File "/usr/lib/python3.5/subprocess.py", line 495, in getstatusoutput
data = check_output(cmd, shell=True, universal_newlines=True, stderr=STDOUT)
File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 385, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "/usr/lib/python3.5/subprocess.py", line 788, in communicate
stdout = self.stdout.read()
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 327: ordinal not in range(128)
Presumably there's some non-ascii something somewhere that's tripping it
up. It is 100% reproducible, and as you can see I'm using the latest
available reportbug. Thanks.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages reportbug depends on:
ii apt 1.4~beta2
ii python3-reportbug 7.1.5
pn python3:any <none>
reportbug recommends no packages.
Versions of packages reportbug suggests:
pn claws-mail <none>
pn debconf-utils <none>
pn debsums <none>
ii dlocate 1.07
ii emacs24-bin-common 24.5+1-7.1
ii exim4 4.88-2
ii exim4-daemon-light [mail-transport-agent] 4.88-2
ii file 1:5.29-2
ii gir1.2-gtk-3.0 3.22.8-1
pn gir1.2-vte-2.91 <none>
ii gnupg 2.1.17-2
ii python3-gi 3.22.0-2
pn python3-gi-cairo <none>
pn python3-gtkspellcheck <none>
pn python3-urwid <none>
ii xdg-utils 1.1.1-1
Versions of packages python3-reportbug depends on:
ii apt 1.4~beta2
ii file 1:5.29-2
ii python3-debian 0.1.29
ii python3-debianbts 2.6.1
ii python3-requests 2.12.4-1
pn python3:any <none>
python3-reportbug suggests no packages.
-- no debconf information
More information about the Reportbug-maint
mailing list