network blip can cause offlineimp to hang

Justus Winter 4winter at informatik.uni-hamburg.de
Wed Jan 25 09:29:29 GMT 2012


Quoting Rafael Ávila de Espíndola (2012-01-24 17:15:34)
>I had a network blip while syncing my account. I tried Control-C, and
>offlineimap printed:
>
>Terminating NOW (this may take a few seconds)...
>
>But never finished. Running strace shows

Yes, I've been running into this every now and then.

>....
>select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
>select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
>select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
>select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
>select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
>select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
>select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
>select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
>....

iirc this is python joining threads.

>gdb shows
>
>#0  0x0000003717ee8933 in select () from /lib64/libc.so.6
>#1  0x00007f93b8a21e9d in ?? ()
>   from /usr/lib64/python2.7/lib-dynload/timemodule.so
>#2  0x000000371eadffbb in PyEval_EvalFrameEx ()
>...
>
>Not sure how to print a python backtrace from it...

me neither, but you should be able to switch to the thread that the
main thread is trying to join and do a bt there, this should give you
an idea what's going on.

Justus




More information about the OfflineIMAP-project mailing list