Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99391 > unrolled thread

Re: Futex hang when running event loop on a separated thread

Started byZachary Ware <zachary.ware+pylist@gmail.com>
First post2015-11-24 13:41 -0600
Last post2015-11-24 13:41 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Futex hang when running event loop on a separated thread Zachary Ware <zachary.ware+pylist@gmail.com> - 2015-11-24 13:41 -0600

#99391 — Re: Futex hang when running event loop on a separated thread

FromZachary Ware <zachary.ware+pylist@gmail.com>
Date2015-11-24 13:41 -0600
SubjectRe: Futex hang when running event loop on a separated thread
Message-ID<mailman.30.1448394133.20593.python-list@python.org>
On Tue, Nov 24, 2015 at 12:37 PM, Marc Aymerich <glicerinu@gmail.com> wrote:
> still it appears to work only if the main thread is in the foreground
> (as of calling Thread() with deamon=True), I don't get why it behaves
> differently :( maybe it is waiting for other stuff, but no idea how to
> confirm this with strace of other means.. i always see the same
> 'futex(0x7f9a70000c10, FUTEX_WAIT_PRIVATE, 0, NULL'

What's your exact version of Python?  asyncio is still evolving
rapidly, and may behave differently between patch releases (say,
between 3.4.1 and 3.4.3).

I have tried out your reproducer with my fix, and I can't provoke a
hang using Python 3.4.3 on either OSX or Ubuntu Trusty.  Can you give
some more specific directions to reproduce?

-- 
Zach

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web