[issue24026] Python hangs forever in wait() of threading.py

2015-04-24 Thread appidman

appidman added the comment:

I created a issue for paramiko: https://github.com/paramiko/paramiko/issues/515

I'm trying to create a script which reproduces the bug, but it might be a bit 
tough, because as I said it's not happening all the time.

--

___
Python tracker 
<http://bugs.python.org/issue24026>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24026] Python hangs forever in wait() of threading.py

2015-04-22 Thread appidman

New submission from appidman:

I use paramiko to create SSH sessions to Linux machines, which works great 95% 
of the time. But sometimes, the Python process which creates the SSH session 
hangs forever in wait() of threading.py (see attachment 'gdb.txt' for full 
output).

{code}
(gdb) py-list
 239waiter.acquire()
 240self.__waiters.append(waiter)
 241saved_state = self._release_save()
 242try:# restore state no matter what (e.g., 
KeyboardInterrupt) 
 243if timeout is None:
>244waiter.acquire()
 245if __debug__:
 246self._note("%s.wait(): got it", self)
 247else:
 248# Balancing act:  We can't afford a pure busy loop, so 
we
 249# have to sleep; but if we sleep the whole timeout time,


(gdb) py-bt
#5 Frame 0xb459a5c, for file /usr/lib/python2.7/threading.py, line 244, in wait 
(self=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], 
release=) at 
remote 0xb73708c>, timeout=None, waiter=, 
saved_state=None)
waiter.acquire()
#9 Frame 0xb66118c, for file 
/usr/lib/python2.7/dist-packages/paramiko/buffered_pipe.py, line 137, in read 
(self=, 
_buffer=, _event=None, 
_cv=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], 
release=) at 
remote 0xb73708c>) at remote 0xb737a4c>, nbytes=8192, timeout=None, out='', 
then=)
self._cv.wait(timeout)
{code}

--
components: Library (Lib)
files: gdb.txt
messages: 241806
nosy: appidman
priority: normal
severity: normal
status: open
title: Python hangs forever in wait() of threading.py
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file39167/gdb.txt

___
Python tracker 
<http://bugs.python.org/issue24026>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com