Comment 4 for bug 297831

Revision history for this message
Harry Hirsch (bzr-unbunt) wrote :

Got the same bug under SunOS 5.10 Generic_127112-11 i86pc i386 i86pc with Python 2.6 and version 1.9 of bzr.

Moving _readdir_pyx.so out of the way as suggested fixes the problem for me.

A chdir() syscall with an empty string as argument (directory name) seems to cause the error.

Here is the relevant bzr.log snippet:

-----------
Wed 2008-11-19 14:16:27 +0100
0.060 bzr arguments: [u'st']
0.060 looking for plugins in /home/xxxx/.bazaar/plugins
0.060 looking for plugins in /home/xxxx/opt/bzr1.9/lib/python/bzrlib/plugins
0.139 looking for plugins in /home/xxxx/opt/python2.6/lib/python2.6/site-packages/bzrlib/plugins
0.145 encoding stdout as sys.stdin encoding 'UTF-8'
0.217 opening working tree '/var.local/home/xxxx/repo'
0.224 check paths: None
0.234 Traceback (most recent call last):
  File "/home/xxxx/opt/bzr1.9/lib/python/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/xxxx/opt/bzr1.9/lib/python/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/home/xxxx/opt/bzr1.9/lib/python/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/xxxx/opt/bzr1.9/lib/python/bzrlib/commands.py", line 853, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/xxxx/opt/bzr1.9/lib/python/bzrlib/builtins.py", line 217, in run
    show_pending=(not no_pending))
  File "/home/xxxx/opt/bzr1.9/lib/python/bzrlib/status.py", line 114, in show_tree_status
    want_unversioned=want_unversioned)
  File "/home/xxxx/opt/bzr1.9/lib/python/bzrlib/tree.py", line 95, in changes_from
    want_unversioned=want_unversioned,
  File "/home/xxxx/opt/bzr1.9/lib/python/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/xxxx/opt/bzr1.9/lib/python/bzrlib/tree.py", line 814, in compare
    want_unversioned=want_unversioned)
  File "/home/xxxx/opt/bzr1.9/lib/python/bzrlib/delta.py", line 217, in _compare_trees
    want_unversioned=want_unversioned):
  File "_dirstate_helpers_c.pyx", line 1347, in _dirstate_helpers_c.ProcessEntryC.__next__
  File "_dirstate_helpers_c.pyx", line 1511, in _dirstate_helpers_c.ProcessEntryC._iter_next
  File "_dirstate_helpers_c.pyx", line 1488, in _dirstate_helpers_c._iter_next
  File "/home/xxxx/opt/bzr1.9/lib/python/bzrlib/osutils.py", line 1313, in _walkdirs_utf8
    dirblock = sorted(read_dir(relroot, top))
  File "_readdir_pyx.pyx", line 229, in _readdir_pyx.UTF8DirReader.read_dir
  File "_readdir_pyx.pyx", line 339, in _readdir_pyx._read_dir
OSError: [Errno 14] Bad address

0.235 return code 3
-----------

Attached you can find the corresponding truss log.

Regards,
Harry