Bazaar crashes with 'Too many open files' error when removing a directory with many children
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
I have a project with a top-level src/ directory. All the code in
the project is in a package called 'canonical'. We have a mix of
4414 files and folders in src/canonical. I want to make 'canonical'
a top-level directory and get rid of 'src'. I did the following the
from the top-level directory:
bzr mv src/canonical canonical
bzr rm src
When running the rm command I ran into the following issue:
0.026 bazaar version: 2.1.1
0.026 bzr arguments: [u'rm', u'src/']
0.036 looking for plugins in /home/jkakar/
0.066 looking for plugins in /usr/lib/
0.081 encoding stdout as sys.stdout encoding 'UTF-8'
0.122 opening working tree '/home/
3.326 Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run_
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
force=
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
want_
File "_dirstate_
File "_dirstate_
File "_dirstate_
File "/usr/lib/
dirblock = sorted(
File "_readdir_pyx.pyx", line 238, in bzrlib.
File "_readdir_pyx.pyx", line 308, in bzrlib.
File "_readdir_pyx.pyx", line 278, in bzrlib.
OSError: [Errno 24] open: Too many open files: '.'
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jamu Kakar wrote:
> Public bug reported:
>
> I have a project with a top-level src/ directory. All the code in
> the project is in a package called 'canonical'. We have a mix of
> 4414 files and folders in src/canonical. I want to make 'canonical'
> a top-level directory and get rid of 'src'. I did the following the
> from the top-level directory:
>
> bzr mv src/canonical canonical
> bzr rm src
>
> When running the rm command I ran into the following issue:
I think this is a side effect of bug #582656. I'll mark it as such.
In the short term, you could 'rm _readdir_pyx.so', or apply the one line
patch and rebuild.
The next release of 2.0, 2.1 and 2.2 will all have this fixed.
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
5SIcACgkQJdeBCY SNAANBlwCgiTq78 bOa0uTG+ GJDZiJYJUrN ZFd544cMnSHz93s yR
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkv
sRgAn2heHy9Pc7N
=JUpd
-----END PGP SIGNATURE-----