After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 699434 - Tinderbox crashes with UnicodeDecodeError on Fedora 19
Tinderbox crashes with UnicodeDecodeError on Fedora 19
Status: RESOLVED OBSOLETE
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other Linux
: Normal critical
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2013-05-02 01:16 UTC by Jiro Matsuzawa
Modified: 2021-05-17 15:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Decode lsb_release output using preferred encoding (1.68 KB, patch)
2013-08-01 08:20 UTC, Jiro Matsuzawa
committed Details | Review
Decode release file using preferred encoding (1.31 KB, patch)
2013-08-18 13:04 UTC, Dieter Verfaillie
none Details | Review

Description Jiro Matsuzawa 2013-05-02 01:16:56 UTC
The tinderbox command crashes with UnicodeDecodeError on Fedora 19 (Schrödinger’s Cat).

Here is a traceback:
% jhbuild tinderbox -o ~/log
Traceback (most recent call last):
  • File "/usr/local/bin/jhbuild", line 32 in <module>
    jhbuild.main.main(sys.argv[1:])
  • File "/usr/local/lib/python2.7/site-packages/jhbuild/main.py", line 148 in main
    rc = jhbuild.commands.run(command, config, args, help=lambda: print_help(parser))
  • File "/usr/local/lib/python2.7/site-packages/jhbuild/commands/__init__.py", line 183 in run
    return cmd.execute(config, args, help)
  • File "/usr/local/lib/python2.7/site-packages/jhbuild/commands/__init__.py", line 52 in execute
    return self.run(config, options, args, help)
  • File "/usr/local/lib/python2.7/site-packages/jhbuild/commands/tinderbox.py", line 108 in run
    return build.build()
  • File "/usr/local/lib/python2.7/site-packages/jhbuild/frontends/buildscript.py", line 99 in build
    self.start_build()
  • File "/usr/local/lib/python2.7/site-packages/jhbuild/frontends/tinderbox.py", line 327 in start_build
    'charset': self.charset })
  • File "/usr/lib64/python2.7/codecs.py", line 691 in write
    return self.writer.write(data)
  • File "/usr/lib64/python2.7/codecs.py", line 351 in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 710: ordinal not in range(128)


The code name, "Schrödinger’s Cat", may cause this error. It has a non-ascii character "ö" (UTF-8: 0xC3 0xB6).

[JHBuild Version]
e019ec0 (Wed May 1 16:13:50 2013 +0100) of the master branch on the git.gnome.org/jhbuild.

[Other Info]
% cat /etc/issue              
Fedora release 19 (Schrödinger’s Cat)
Kernel \r on an \m (\l)

% python --version
Python 2.7.4
Comment 1 Jiro Matsuzawa 2013-08-01 08:20:20 UTC
Created attachment 250590 [details] [review]
Decode lsb_release output using preferred encoding

lsb_release may output non-ascii characters. For example, it prints
"Schrödinger’sCat" for the codename of Fedora 19. It caused jhbuild to
crash with UnicodeDecodeError in writing a tinderbox log.

Could you please review the patch?
Comment 2 Colin Walters 2013-08-01 09:53:53 UTC
Review of attachment 250590 [details] [review]:

Looks OK.
Comment 4 Dieter Verfaillie 2013-08-18 13:04:10 UTC
Created attachment 252110 [details] [review]
Decode release file using preferred encoding

Reopening this as my newly installed Fedora 19 machine does
not have the lsb_release tool installed, leading to another
UnicodeDecodeError in start_build:

  • File "/home/dieterv/.local/bin/jhbuild", line 32 in <module>
    jhbuild.main.main(sys.argv[1:])
  • File "/home/dieterv/.local/lib/python2.7/site-packages/jhbuild/main.py", line 148 in main
    rc = jhbuild.commands.run(command, config, args, help=lambda: print_help(parser))
  • File "/home/dieterv/.local/lib/python2.7/site-packages/jhbuild/commands/__init__.py", line 183 in run
    return cmd.execute(config, args, help)
  • File "/home/dieterv/.local/lib/python2.7/site-packages/jhbuild/commands/__init__.py", line 52 in execute
    return self.run(config, options, args, help)
  • File "/home/dieterv/.local/lib/python2.7/site-packages/jhbuild/commands/tinderbox.py", line 108 in run
    return build.build()
  • File "/home/dieterv/.local/lib/python2.7/site-packages/jhbuild/frontends/buildscript.py", line 99 in build
    self.start_build()
  • File "/home/dieterv/.local/lib/python2.7/site-packages/jhbuild/frontends/tinderbox.py", line 323 in start_build
    'charset': self.charset })
  • File "/usr/lib/python2.7/codecs.py", line 691 in write
    return self.writer.write(data)
  • File "/usr/lib/python2.7/codecs.py", line 351 in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 701: ordinal not in range(128)

Comment 5 GNOME Infrastructure Team 2021-05-17 15:57:10 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/jhbuild/-/issues/169.