bzr crashed with UnicodeDecodeError in write()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned | ||
Breezy |
Fix Released
|
Medium
|
Jelmer Vernooij | ||
bzr (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: bzr
This happened when running 'bzr unshelve --preview'. The shelved patch includes at least one file that contains non-ASCIIi characters encoded in UTF-8. The patch is listed up to line that contains the non-ASCII character and then the exception occurs.
ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: bzr 2.2.0-1
ProcVersionSign
Uname: Linux 2.6.35-19-generic i686
Architecture: i386
BzrDebugFlags: set()
BzrVersion: 2.2.0
CommandLine: ['/usr/bin/bzr', 'unshelve', '--preview']
CrashDb: bzr
Date: Tue Sep 7 23:09:17 2010
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InterpreterPath: /usr/bin/python2.6
Locale: en_US.utf8
Platform: Linux-2.
ProcCmdline: /usr/bin/python /usr/bin/bzr unshelve --preview
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.utf8
LANGUAGE=en_US:en
PythonVersion: 2.6.6
SourcePackage: bzr
Title: bzr crashed with UnicodeDecodeError in write()
UserEncoding: UTF-8
UserGroups: adm admin audio cdrom dialout floppy lpadmin plugdev scanner src video
tags: | removed: need-duplicate-check |
visibility: | private → public |
Changed in bzr (Ubuntu): | |
status: | New → Confirmed |
Changed in bzr: | |
status: | New → Confirmed |
Changed in bzr: | |
importance: | Undecided → Medium |
Changed in bzr (Ubuntu): | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
tags: | added: terminal-encoding |
tags: | added: check-for-breezy |
Changed in brz: | |
milestone: | none → 3.0.0 |
assignee: | nobody → Jelmer Vernooij (jelmer) |
status: | New → Fix Released |
importance: | Undecided → Medium |
tags: | removed: check-for-breezy |
$ bzr unshelve --preview www.example. com/$1 [R=301,L] perl5/lib/ perl5/i486- linux-gnu- thread- multi:/ home/perang/ perl5/lib/ perl5 UnicodeDecodeEr ror: 'ascii' codec can't decode byte 0xa7 in position 5: ordinal not in range(128)
Using changes with id "1".
M gensite.rb
Text conflict in gensite.rb
=== modified file 'gensite.rb'
--- a/gensite.rb 2010-11-25 15:07:48 +0000
+++ b/gensite.rb 2011-04-17 05:57:55 +0000
@@ -236,7 +236,12 @@
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule (.*) http://
+<<<<<<< TREE
`)
+=======
+SetEnv PERL5LIB /home/perang/
bzr: failed to report crash using apport:
OSError(13, 'Permission denied')
bzr: ERROR: exceptions.
Traceback (most recent call last): python2. 6/dist- packages/ bzrlib/ commands. py", line 912, in exception_ to_return_ code python2. 6/dist- packages/ bzrlib/ commands. py", line 1112, in run_bzr python2. 6/dist- packages/ bzrlib/ commands. py", line 690, in run_argv_aliases **all_cmd_ args) python2. 6/dist- packages/ bzrlib/ commands. py", line 705, in run .run_simple( *args, **kwargs) python2. 6/dist- packages/ bzrlib/ cleanup. py", line 135, in run_simple python2. 6/dist- packages/ bzrlib/ cleanup. py", line 165, in _do_with_cleanups python2. 6/dist- packages/ bzrlib/ builtins. py", line 5923, in run python2. 6/dist- packages/ bzrlib/ shelf_ui. py", line 480, in run write_diff( merger) python2. 6/dist- packages/ bzrlib/ shelf_ui. py", line 499, in write_diff encoding= path_encoding) python2. 6/dist- packages/ bzrlib/ diff.py" , line 493, in show_diff_trees show_diff( specific_ files, extra_trees) python2. 6/dist- packages/ bzrlib/ diff.py" , line 942, in show_diff diff(specific_ files, extra_trees) python2. 6/dist- packages/ bzrlib/ diff.py" , line 1002, in _show_diff _diff(file_ id, oldpath, newpath, kind[0], kind[1]) python2. 6/dist- packages/ bzrlib/ diff.py" , line 1028, in _diff python2. 6/dist- packages/ bzrlib/ diff.py" , line 555, in _diff_many python2. 6/dist- packages/ bzrlib/ diff.py" , line 693, in diff python2. 6/dist- packages/ bzrlib/ diff.py" , line 716, in diff_text self.path_ encoding) python2. 6/dist- packages/ bzrlib/ diff.py" , line 117, in internal_diff file.write( line) python2. 6/dist- packages/ bzrlib/ ui/text. py", line 538, in write wrapped_ stream. write(to_ write) python2. 6/codecs. py", line 351, in write
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
unshelver.run()
File "/usr/lib/
self.
File "/usr/lib/
path_
File "/usr/lib/
return differ.
File "/usr/lib/
return self._show_
File "/usr/lib/
self.
File "/usr/lib/
new_path, old_kind, new_kind)
File "/usr/lib/
new_kind)
File "/usr/lib/
old_path, new_path)
File "/usr/lib/
self.to_file, path_encoding=
File "/usr/lib/
to_
File "/usr/lib/
self.
File "/usr/lib/
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa7 in position 5: ordinal not in range(128)
bzr 2.2.1 on...