Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99455
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Marc Aymerich <glicerinu@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Futex hang when running event loop on a separated thread |
| Date | Wed, 25 Nov 2015 15:10:31 +0100 |
| Lines | 35 |
| Message-ID | <mailman.74.1448460653.20593.python-list@python.org> (permalink) |
| References | <CA+DCN_s77howCh5ptdGwtsF9Z3-r0nRhu-q2t43jdXKTdqSMGw@mail.gmail.com> <CA+DCN_vp8nFS-gOrQMYYefhVt2W0oAP+rFcKQbQ7K+hOHwvuuQ@mail.gmail.com> <CAKJDb-MY9W518kKhFf8vbZAfFad=uGXefDePf1KLpUJV9H3Rpg@mail.gmail.com> <CA+DCN_uC2k=rJxmtfEideAhGj1=2XVq8VHGU=OUkB9yHxV7bPw@mail.gmail.com> <CAKJDb-N5WD_cN2k0kd_aXXyj_2Bsjxye8Q34_3awtw7bGPRx5w@mail.gmail.com> <CA+DCN_uNHNHrBOSmd0JE58Ltt6HzrDWU_DhW_1N3dFMAVNpVOQ@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de dlI54fMjLi92LyytorfiGgrJlfIpOF39GaeXPHKnyNiQ== |
| Return-Path | <glicerinu@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'differently': 0.07; 'implements': 0.07; 'cc:addr:python-list': 0.09; 'behave': 0.09; 'directions': 0.09; 'thread': 0.10; 'python': 0.10; '24,': 0.16; 'fix,': 0.16; 'fuse': 0.16; 'osx': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'reproduce': 0.16; 'stuff,': 0.16; 'subject:when': 0.16; 'threads': 0.16; 'wrote:': 0.16; 'python?': 0.18; '>>>': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'appears': 0.23; 'bit': 0.23; 'tried': 0.24; 'patch': 0.24; 'header:In-Reply-To:1': 0.24; 'message- id:@mail.gmail.com': 0.27; 'idea': 0.28; 'marc': 0.29; "i'm": 0.30; 'url:mailman': 0.30; "can't": 0.32; 'maybe': 0.33; 'run': 0.33; 'problem': 0.33; 'url:python': 0.33; 'evolving': 0.33; 'ubuntu': 0.33; 'url:listinfo': 0.34; "skip:' 20": 0.34; 'tue,': 0.34; 'received:google.com': 0.35; 'nov': 0.35; 'but': 0.36; 'should': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'version': 0.38; 'received:209': 0.38; 'why': 0.39; 'url:mail': 0.40; 'still': 0.40; 'some': 0.40; 'hang': 0.60; 'waiting': 0.60; 'your': 0.60; 'confirm': 0.62; 'more': 0.63; 'between': 0.65; '12:37': 0.84; 'to:none': 0.91; 'ware': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc :content-type; bh=EIn9TDf3knfDoJo4RiE6yp79qIXQRkx7cliIf9vHwU8=; b=iUuVEVGoI/dosNfsfyTEYgXRmm//p4YACkr+HllTFcGVNUW5jKjIVU2odCdJgjZU/p jGGiz5dNeQavD12LYqLz2vxLSdNiigWpTkFGc7/xjQbeAWVxkAJCxdtxFCnaN5Rtwx0U Q/QIEFImoq9GSUZI/SDyPZsZIbAr/hfvOxw7qoI6ER0jBBQY0UIMOLUhlZ688CS1d3XC 1LYQJ4oCfLzcrQSCpymA1KhKnb5NOuZ1y0VJU7wa/gcvdNGEEKGsJVPoJR65Xz7Vrd5w TayiNRklzuMVJj96sBZVvVAYp+SYLZQt1QwnlOe+n5fkfXPTd3/h9ZoVzTXPBF4qEWU8 6P3Q== |
| X-Received | by 10.50.182.7 with SMTP id ea7mr4352113igc.2.1448460650754; Wed, 25 Nov 2015 06:10:50 -0800 (PST) |
| In-Reply-To | <CA+DCN_uNHNHrBOSmd0JE58Ltt6HzrDWU_DhW_1N3dFMAVNpVOQ@mail.gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:99455 |
Show key headers only | View raw
On Tue, Nov 24, 2015 at 9:17 PM, Marc Aymerich <glicerinu@gmail.com> wrote: > On Tue, Nov 24, 2015 at 8:41 PM, Zachary Ware > <zachary.ware+pylist@gmail.com> wrote: >> 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 >> -- >> https://mail.python.org/mailman/listinfo/python-list > > > Yep, I'm a bit lost about how fuse implements going into background... > so the only way I have to reproduce this so far is by using fuse :( problem solved ! Just found out that threads should be started by fuse.init() in order to run when fuse is backgrounded. -- Marc
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Futex hang when running event loop on a separated thread Marc Aymerich <glicerinu@gmail.com> - 2015-11-25 15:10 +0100
csiph-web