EBADF in paramiko during parallel selftest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
John A Meinel |
Bug Description
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
n = self.sock.send(out)
File "/home/
return self.__
File "/usr/lib/
raise error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor
I suspect this indicates a bad timing dependency in tearing down the server. I have seen this a couple of times with parallel tests and never otherwise.
Related branches
- Martin Pool: Needs Fixing
- Martin Packman (community): Abstain
- Jelmer Vernooij (community): Approve
-
Diff: 227 lines (+71/-44)7 files modifiedbzr (+2/-2)
bzrlib/tests/per_transport.py (+13/-4)
bzrlib/transport/__init__.py (+34/-31)
bzrlib/transport/sftp.py (+2/-5)
doc/en/release-notes/bzr-2.4.txt (+9/-0)
doc/en/whats-new/whats-new-in-2.4.txt (+9/-0)
setup.py (+2/-2)
- bzr-core: Pending requested
-
Diff: 176 lines (+52/-41)5 files modifiedbzrlib/tests/per_transport.py (+13/-4)
bzrlib/tests/test_sftp_transport.py (+4/-1)
bzrlib/transport/__init__.py (+29/-31)
bzrlib/transport/sftp.py (+2/-5)
doc/en/release-notes/bzr-2.4.txt (+4/-0)
Changed in bzr: | |
assignee: | nobody → John A Meinel (jameinel) |
status: | Confirmed → In Progress |
Changed in bzr: | |
milestone: | none → 2.4b3 |
status: | In Progress → Fix Released |
For me, this consistently happens when I run parallel tests, and never otherwise.
But on pqm, which is not running parallel tests (afaik), it does occur:
Exception in thread Thread-3071: python2. 6/threading. py", line 532, in __bootstrap_inner python2. 6/threading. py", line 484, in run __target( *self._ _args, **self.__kwargs) pymodules/ python2. 6/paramiko/ sftp_file. py", line 453, in _prefetch_thread sftp._async_ request( self, CMD_READ, self.handle, long(offset), int(length)) pymodules/ python2. 6/paramiko/ sftp_client. py", line 649, in _async_request _send_packet( t, str(msg)) pymodules/ python2. 6/paramiko/ sftp.py" , line 172, in _send_packet _write_ all(out) pymodules/ python2. 6/paramiko/ sftp.py" , line 136, in _write_all pqm/bzr- pqm-workdir/ home/+trunk/ bzrlib/ transport/ ssh.py" , line 200, in send socket. send(data) python2. 6/socket. py", line 165, in _dummy
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
n = self.sock.send(out)
File "/home/
return self.__
File "/usr/lib/
raise error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor
Exception in thread Thread-3077: python2. 6/threading. py", line 532, in __bootstrap_inner python2. 6/threading. py", line 484, in run __target( *self._ _args, **self.__kwargs) pymodules/ python2. 6/paramiko/ sftp_file. py", line 453, in _prefetch_thread sftp._async_ request( self, CMD_READ, self.handle, long(offset), int(length)) pymodules/ python2. 6/paramiko/ sftp_client. py", line 649, in _async_request _send_packet( t, str(msg)) pymodules/ python2. 6/paramiko/ sftp.py" , line 172, in _send_packet _write_ all(out) pymodules/ python2. 6/paramiko/ sftp.py" , line 136, in _write_all pqm/bzr- pqm-workdir/ home/+trunk/ bzrlib/ transport/ ssh.py" , line 200, in send socket. send(data) python2. 6/socket. py", line 165, in _dummy
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
n = self.sock.send(out)
File "/home/
return self.__
File "/usr/lib/
raise error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor
Exception in thread Thread-3083: python2. 6/threading. py", line 532, in __bootstrap_inner python2. 6/threading. py", line 484, in run __target( *self._ _args, **self.__kwargs) pymodules/ python2. 6/paramiko/ sftp_file. py", line 453, in _prefetch_thread sftp._async_ request( self, CMD_READ, self.handle, long(offset), int(length)) pymodules/ python2. 6/paramiko/ sftp_client. py", line 649, in _async_request _send_packet( t, str(msg)) pymodules/ python2. 6/paramiko/ sftp.py" , line 172, in _send_packet _write_ all(out) pymodules/ python2. 6/paramiko/ sftp.py" , line 136, in _write_all pqm/bzr- pqm-workdir/ home/+trunk/ bzrlib/ transport/ ssh.py" , line 200, in send socket. send(data) python2. 6/socket. py", line 165, in _dummy
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
n = self.sock.send(out)
File "/home/
return self.__
File "/usr/lib/
raise error(EBADF, 'Ba...