crash on unicode decode error

Bug #1430773 reported by Zygmunt Krynicki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
Low
Martin Pitt

Bug Description

autopackagetest crashed for me while working on the update to the twine package:

adt-run --changes /home/zyga/Dropbox/Debian/twine/build-area/twine_1.5.0-1_amd64.changes --- schroot sid-amd64-sbuild
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

adt-run [13:30:53]: version 3.11.1
adt-run [13:30:58]: testbed dpkg architecture: amd64
adt-run [13:30:58]: ERROR: unexpected error:
Traceback (most recent call last):
  File "/usr/bin/adt-run", line 1837, in main
    process_actions()
  File "/usr/bin/adt-run", line 1748, in process_actions
    pkg = deb_package_name(arg)
  File "/usr/bin/adt-run", line 1499, in deb_package_name
    (rc, output) = script_out(cmd, stdout=subprocess.PIPE)
  File "/usr/bin/adt-run", line 136, in script_out
    output = process.communicate()[0]
  File "/usr/lib/python3.4/subprocess.py", line 947, in communicate
    stdout = _eintr_retry_call(self.stdout.read)
  File "/usr/lib/python3.4/subprocess.py", line 491, in _eintr_retry_call
    return func(*args)
  File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 902: ordinal not in range(128)

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

13:53 < pitti> zyga: is that anything secret? if not, perhaps you could just attach the .debs to the bug (or give
               a pointer to them)
13:54 < zyga> pitti: no, nothing secret at all, just work-in-progress
13:54 < zyga> pitti: oh and that package doesn't have autopkgtests either, it's just a part of my standard
              .sbuildrc run

Revision history for this message
Martin Pitt (pitti) wrote :

Indeed there's nothing special about that twine.deb. I can run "adt-run /tmp/twine_1.5.0-1_all.deb -B ~/ubuntu/tmp/testpkg// --- schroot sid" just fine here.

I do get this crash if I run adt-run under the C locale, though. The package description indeed contains an unicode character ("you’ve", it's not the ASCII apostrophe but a fancy one).

Changed in autopkgtest (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in autopkgtest (Ubuntu):
status: Triaged → Fix Committed
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 3.12

---------------
autopkgtest (3.12) unstable; urgency=medium

  * ssh-setup/adb: Re-enable ssh after reboot, in case an upgrade disables it.
  * ssh-setup/adb: Try to create /userdata/.adb_onlock, to get adb after
    rebooting without human interaction.
  * Fix apt-get install --simulate version parsing with third-party sources.
    (LP: #1430017)
  * ssh-setup-nova: Add --security-groups option. (LP: #1429862)
  * adt-buildvm-ubuntu-cloud: Avoid non-blocking reads from the socket in
    verbose mode, this sometimes causes hangs. Go back to blocking reads, but
    don't wait between them.
  * Fix UnicodeDecodeError on .deb package name reading. (LP: #1430773)
  * adt-virt-ssh: Export $SUDO_ASKPASS to tests if sudo is available.
    (LP: #1431421)

 -- Martin Pitt <email address hidden> Fri, 13 Mar 2015 12:52:49 +0100

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.