AttributeError this_ie.children in MutableTree committing replacement of a file with a directory

Bug #303954 reported by Eric
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned

Bug Description

Our installation of Bazaar has been having problems getting hold of enough memory while branching or committing a large repository. I increased the heap size and that got rid of the earlier problems but other problems appeared. The next problem was worked around by removing _patiencediff_c.so which didn't handle failed mallocs correctly. However I just encontered another error while committing (see below). This time it appeared to continue despite the error message. Has the commit succeeded ? Is this error a problem ? Is there anything we can do to avoid the memory issues (perhaps by opting for a less performant option ?) ?

......
......
......
added c/lsa/incl/csw_sw1_setup_msg_ext.h
added c/lsa/incl/csw_sw1_setup_msg_int.h
added c/lsa/incl/csw_sw2_internal_field_ext.h
added c/lsa/incl/csw_sw2_internal_field_int.h
added c/lsa/inbzr: ERROR: exceptions.AttributeError: children

Traceback (most recent call last):
  File "/opt/freeware/lib/python2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_er
rors
    return run_bzr(argv)
  File "/opt/freeware/lib/python2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/opt/freeware/lib/python2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/opt/freeware/lib/python2.5/site-packages/bzrlib/builtins.py", line 499, in run
    no_recurse, action=action, save=not dry_run)
  File "/opt/freeware/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 52, in tree_write_loc
ked
    return unbound(self, *args, **kwargs)
  File "/opt/freeware/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 467, in smart_add
    elif subf in this_ie.children:
AttributeError: children

bzr 1.9rc1 on python 2.5.2 (aix5)
arguments: ['/opt/freeware/bin/bzr', 'add']
encoding: 'ISO8859-1', fsenc: 'ISO8859-1', lang: 'en_US'
plugins:
  bzrtools /opt/freeware/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.9.1]
  launchpad /opt/freeware/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
cl/csw_sw2_setup_msg_ext.h
added c/lsa/incl/csw_sw2_setup_msg_int.h
added c/lsa/incl/fal_defs.h
added c/lsa/incl/fal_fsm_ext.h
added c/lsa/incl/fal_fsm_int.h
added c/lsa/incl/fal_lnk_ext.h
......
......
......
added c/lsa/conf/lpf_template_cfc.cnf
added c/lsa/conf/lpf_template_fix.cnf
added c/lsa/conf/lpf_template_lmx.cnf
added c/lsa/conf/lpf_template_obg.cnf
added c/lsa/conf/lpf_template_pat.cnf
Committed revision 3.

Revision history for this message
Eric (eric-dangoor) wrote :

I found that as a result of this error the repository was indeed corrupted (some files didn't make it into the revision).

Revision history for this message
Eric (eric-dangoor) wrote :

I have discovered exactly what provoked this error. I was trying to do a commit in which a directory had replaced a file of the same name. This had apparently confused Bazaar.

Revision history for this message
Martin Pool (mbp) wrote :

This sounds like a dupe

summary: - Another crash during commit
+ AttributeError this_ie.children in MutableTree committing replacement of
+ a file with a directory
Changed in bzr:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

Might be related to bug 228234

Revision history for this message
Martin Packman (gz) wrote :

Fixed by bug 192859 but more specifically described in bug 205636 which was hard to find because it doesn't actually mention the error anywhere.

Revision history for this message
Martin Packman (gz) wrote :

Actually bug 251864 which is a subtle variation on bug bug 205636 and not in fact fixed yet, sorry for the noise.

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.