Comment 4 for bug 516829

Revision history for this message
Sven Oostenbrink (so-oostenbrink) wrote : Re: [Bug 516829] Re: bzr add ../../.. crashes

Notice: The filename in question is UTF because its actually a test file to
see if some webdav system would be able to manage utf filenames.. For the
rest there are NO UTF file names in the entire tree

Cheers,

Sven

On Wed, Feb 3, 2010 at 11:54 PM, Andrew Bennetts <
<email address hidden>> wrote:

> Possibly a duplicate of an existing bug report?
>
> The problem here appears to be that the locale is "C", i.e. plain ASCII,
> but the tree on disk includes a UTF-8 filename. We should at least give
> a much better error in this case.
>
> ** Description changed:
>
> bzr add ../../.. suddenly crashes with this message:
>
> bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode
> byte 0xcf in position 23: ordinal not in range(128)
>
> *** Bazaar has encountered an internal error. This probably indicates a
> - bug in Bazaar. You can help us fix it by filing a bug report at
> - https://bugs.launchpad.net/bzr/+filebug
> - attaching the crash file
> - /home/sven/.cache/crash/bzr-20100203234934-4222.crash
> - and including a description of the problem.
> + bug in Bazaar. You can help us fix it by filing a bug report at
> + https://bugs.launchpad.net/bzr/+filebug
> + attaching the crash file
> + /home/sven/.cache/crash/bzr-20100203234934-4222.crash
> + and including a description of the problem.
>
> - The crash file is plain text and you can inspect or edit it to remove
> - private information.
> + The crash file is plain text and you can inspect or edit it to remove
> + private information.
>
> Searching for clues, I found that the directory ../../../bin/symantec
> has a symlink that points to a file that does not exist. Maybe this is
> related?
> +
> + Traceback:
> + Traceback (most recent call last):
> + File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 842,
> in exception_to_return_code
> + return the_callable(*args, **kwargs)
> + File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1037,
> in run_bzr
> + ret = run(*run_argv)
> + File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 654,
> in run_argv_aliases
> + return self.run(**all_cmd_args)
> + File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 659,
> in run
> + no_recurse, action=action, save=not dry_run)
> + File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line
> 53, in tree_write_locked
> + return unbound(self, *args, **kwargs)
> + File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line
> 504, in smart_add
> + for subf in sorted(os.listdir(abspath)):
> + UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 23:
> ordinal not in range(128)
>
> ** Description changed:
>
> bzr add ../../.. suddenly crashes with this message:
>
> bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode
> byte 0xcf in position 23: ordinal not in range(128)
>
> *** Bazaar has encountered an internal error. This probably indicates a
> bug in Bazaar. You can help us fix it by filing a bug report at
> https://bugs.launchpad.net/bzr/+filebug
> attaching the crash file
> /home/sven/.cache/crash/bzr-20100203234934-4222.crash
> and including a description of the problem.
>
> The crash file is plain text and you can inspect or edit it to remove
> private information.
>
> Searching for clues, I found that the directory ../../../bin/symantec
> has a symlink that points to a file that does not exist. Maybe this is
> related?
>
> Traceback:
> - Traceback (most recent call last):
> - File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 842,
> in exception_to_return_code
> - return the_callable(*args, **kwargs)
> - File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1037,
> in run_bzr
> - ret = run(*run_argv)
> - File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 654,
> in run_argv_aliases
> - return self.run(**all_cmd_args)
> - File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 659,
> in run
> - no_recurse, action=action, save=not dry_run)
> - File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line
> 53, in tree_write_locked
> - return unbound(self, *args, **kwargs)
> - File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line
> 504, in smart_add
> - for subf in sorted(os.listdir(abspath)):
> - UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 23:
> ordinal not in range(128)
> + Traceback (most recent call last):
> + File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 842,
> in exception_to_return_code
> + return the_callable(*args, **kwargs)
> + File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1037,
> in run_bzr
> + ret = run(*run_argv)
> + File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 654,
> in run_argv_aliases
> + return self.run(**all_cmd_args)
> + File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 659,
> in run
> + no_recurse, action=action, save=not dry_run)
> + File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line
> 53, in tree_write_locked
> + return unbound(self, *args, **kwargs)
> + File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line
> 504, in smart_add
> + for subf in sorted(os.listdir(abspath)):
> + UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 23:
> ordinal not in range(128)
> +
> + BzrVersion: 2.0.3
>
> ** Changed in: bzr
> Importance: Undecided => Medium
>
> ** Changed in: bzr
> Status: New => Confirmed
>
> --
> bzr add ../../.. crashes
> https://bugs.launchpad.net/bugs/516829
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bazaar Version Control System: Confirmed
>
> Bug description:
> bzr add ../../.. suddenly crashes with this message:
>
> bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte
> 0xcf in position 23: ordinal not in range(128)
>
> *** Bazaar has encountered an internal error. This probably indicates a
> bug in Bazaar. You can help us fix it by filing a bug report at
> https://bugs.launchpad.net/bzr/+filebug
> attaching the crash file
> /home/sven/.cache/crash/bzr-20100203234934-4222.crash
> and including a description of the problem.
>
> The crash file is plain text and you can inspect or edit it to remove
> private information.
>
> Searching for clues, I found that the directory ../../../bin/symantec has a
> symlink that points to a file that does not exist. Maybe this is related?
>
> Traceback:
> Traceback (most recent call last):
> File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 842, in
> exception_to_return_code
> return the_callable(*args, **kwargs)
> File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1037,
> in run_bzr
> ret = run(*run_argv)
> File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 654, in
> run_argv_aliases
> return self.run(**all_cmd_args)
> File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 659, in
> run
> no_recurse, action=action, save=not dry_run)
> File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line 53,
> in tree_write_locked
> return unbound(self, *args, **kwargs)
> File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line 504,
> in smart_add
> for subf in sorted(os.listdir(abspath)):
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 23:
> ordinal not in range(128)
>
> BzrVersion: 2.0.3
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/bzr/+bug/516829/+subscribe
>

--
Sven Oostenbrink
Coordinador KIO-Labs, KIO Networks

NOC: 01-800-5 CALL-KIO

www.kionetworks.com
www.trustmeitsnotmagic.com

Este mensaje es confidencial. Si usted no es el destinatario de este
mensaje, le suplicamos se lo notifique al remitente mediante un correo
electrónico y que borre el presente mensaje y sus anexos de su computadora
sin retener una copia de los mismos. No debe copiar este mensaje o usarlo
para cualquier propósito ni divulgar su contenido. KIO Networks se reserva
el derecho de monitorear todas las comunicaciones de correo electrónico
(relacionadas o no con KIO Networks) que se transmitan a través de su
sistema. Muchas gracias.

This email is confidential and may also be privileged. If you are not the
intended recipient please immediately advise the sender by reply e-mail and
delete this message and its attachments from your computer without retaining
a copy. You should not copy it or use it for any purpose nor disclose its
contents to any other person. KIO Networks reserves the right to monitor all
email communications (whether related to the business of KIO Networks or
not) through its networks. Thank you.