UnicodeDecodeError in remote Branch.set_last_revision_info pushing a large merge to a remote repository

Bug #522909 reported by Jakub Jermar on 2010-02-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Low
Unassigned
Breezy
Low
Unassigned

Bug Description

In both cases, Bazaar crashed when I was pushing the resulting commit of a large merge to a remote repository over bzr+http.
The error I got read:

bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 9: ordinal not in range(128)

The crash apparently happened after the change made it to the destination repository.

The first crash happened when I pushed revision 264 of bzr://bzr.helenos.org/head.
The second happened when I pushed revision 279 of bzr://bzr.helenos.org/head.
Between these two pushes I was able to successfully push without getting the error.

I am attaching a crash file produced by Bazaar on the second crash.

Jakub Jermar (jakub) wrote :

Hi,

Thanks for reporting this. It probably means that the remote server
is sending an error containing a unicode character and we're not
correctly decoding it. Perhaps it's running out of memory. That's a
bug in itself but it's also hiding the lower level error.

Could you please try running the push again with "BZR_PDB=1 bzr push
..."; that should put you in a debugger, then type

 p err

and that should show us the actual message.

Also, bzr 2.1 has many memory usage improvements so it may help to
upgrade to that on both client and server.

--
Martin <http://launchpad.net/~mbp/>

summary: - Bazaar crashes when pushing a large merge to a remote repository
+ UnicodeDecodeError in remote _translate_error pushing a large merge to a
+ remote repository
tags: added: hpss unicode
tags: added: easy

easy: this could be improved by doing the unicode conversion with errors=replace.

Martin Pool (mbp) on 2010-02-17
Changed in bzr:
importance: Undecided → Low
status: New → Confirmed

Hello,

On 02/17/10 12:53 AM, Martin Pool wrote:
> Could you please try running the push again with "BZR_PDB=1 bzr push
> ..."; that should put you in a debugger, then type
>
> p err
>
> and that should show us the actual message.

That would be quite difficult now that the change has been integrated.
But I will remember that for future large integrations.

Thanks,
Jakub

Jelmer Vernooij (jelmer) on 2011-11-24
summary: - UnicodeDecodeError in remote _translate_error pushing a large merge to a
- remote repository
+ UnicodeDecodeError in remote Branch.set_last_revision_info pushing a
+ large merge to a remote repository
Jelmer Vernooij (jelmer) on 2017-11-09
tags: added: check-for-breezy
Jelmer Vernooij (jelmer) on 2018-11-11
Changed in brz:
importance: Undecided → Low
tags: removed: check-for-breezy
Jelmer Vernooij (jelmer) on 2018-11-16
Changed in brz:
status: New → Triaged
Jelmer Vernooij (jelmer) on 2018-11-17
Changed in brz:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers