download hangs with too small timeout

Bug #2013125 reported by clayg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

I think the cli used to require timeouts to be integers, so maybe this got worse recently, but with small enough timeouts values python-swiftclient seems to hang on download

vagrant@saio:~/python-swiftclient$ time swift download ec-disconnect-test liarliar -o killme --timeout 1
liarliar [auth 0.006s, headers 0.099s, total 0.343s, 31.151 MB/s]

real 0m1.206s
user 0m0.347s
sys 0m0.521s
vagrant@saio:~/python-swiftclient$ time swift download ec-disconnect-test liarliar -o killme --timeout 0.1
liarliar [auth 0.006s, headers 0.089s, total 0.391s, 27.268 MB/s]

real 0m1.252s
user 0m0.337s
sys 0m0.531s
vagrant@saio:~/python-swiftclient$ time swift download ec-disconnect-test liarliar -o killme --timeout 0.01
^C Aborted

real 0m6.048s
user 0m0.326s
sys 0m0.423s

Revision history for this message
Tim Burke (1-tim-z) wrote :

Trying to get the stacks for a hung process with https://github.com/tipabu/python-stack-xray/blob/master/python-stack-xray, I triggered a segfault:

[New LWP 49621]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
__futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x7fff04f845d0, op=137, expected=0, futex_word=0x55a4dda7d760) at ./nptl/futex-internal.c:57
57 ./nptl/futex-internal.c: No such file or directory.
No symbol "PyGILState_STATE" in current context.

Thread 1 "swift" received signal SIGSEGV, Segmentation fault.
0x000055a4dc0dd13f in ?? ()
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(PyRun_SimpleString) will be abandoned.
When the function is done executing, GDB will silently stop.
History has not yet reached $1.
[Inferior 1 (process 49620) detached]

Might take a bit to figure out what we're actually waiting on :-/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.