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.
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:
----------- .bazaar/ plugins opt/bzr1. 9/lib/python/ bzrlib/ plugins opt/python2. 6/lib/python2. 6/site- packages/ bzrlib/ plugins home/xxxx/ repo' xxxx/opt/ bzr1.9/ lib/python/ bzrlib/ commands. py", line 893, in run_bzr_ catch_errors xxxx/opt/ bzr1.9/ lib/python/ bzrlib/ commands. py", line 839, in run_bzr xxxx/opt/ bzr1.9/ lib/python/ bzrlib/ commands. py", line 539, in run_argv_aliases **all_cmd_ args) xxxx/opt/ bzr1.9/ lib/python/ bzrlib/ commands. py", line 853, in ignore_pipe xxxx/opt/ bzr1.9/ lib/python/ bzrlib/ builtins. py", line 217, in run pending= (not no_pending)) xxxx/opt/ bzr1.9/ lib/python/ bzrlib/ status. py", line 114, in show_tree_status unversioned= want_unversione d) xxxx/opt/ bzr1.9/ lib/python/ bzrlib/ tree.py" , line 95, in changes_from unversioned= want_unversione d, xxxx/opt/ bzr1.9/ lib/python/ bzrlib/ decorators. py", line 138, in read_locked xxxx/opt/ bzr1.9/ lib/python/ bzrlib/ tree.py" , line 814, in compare unversioned= want_unversione d) xxxx/opt/ bzr1.9/ lib/python/ bzrlib/ delta.py" , line 217, in _compare_trees unversioned= want_unversione d): helpers_ c.pyx", line 1347, in _dirstate_ helpers_ c.ProcessEntryC .__next_ _ helpers_ c.pyx", line 1511, in _dirstate_ helpers_ c.ProcessEntryC ._iter_ next helpers_ c.pyx", line 1488, in _dirstate_ helpers_ c._iter_ next xxxx/opt/ bzr1.9/ lib/python/ bzrlib/ osutils. py", line 1313, in _walkdirs_utf8 read_dir( relroot, top)) pyx.UTF8DirRead er.read_ dir pyx._read_ dir
Wed 2008-11-19 14:16:27 +0100
0.060 bzr arguments: [u'st']
0.060 looking for plugins in /home/xxxx/
0.060 looking for plugins in /home/xxxx/
0.139 looking for plugins in /home/xxxx/
0.145 encoding stdout as sys.stdin encoding 'UTF-8'
0.217 opening working tree '/var.local/
0.224 check paths: None
0.234 Traceback (most recent call last):
File "/home/
return run_bzr(argv)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
result = func(*args, **kwargs)
File "/home/
show_
File "/home/
want_
File "/home/
want_
File "/home/
result = unbound(self, *args, **kwargs)
File "/home/
want_
File "/home/
want_
File "_dirstate_
File "_dirstate_
File "_dirstate_
File "/home/
dirblock = sorted(
File "_readdir_pyx.pyx", line 229, in _readdir_
File "_readdir_pyx.pyx", line 339, in _readdir_
OSError: [Errno 14] Bad address
0.235 return code 3
-----------
Attached you can find the corresponding truss log.
Regards,
Harry