{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/WSL/issues/3695","repository_url":"https://api.github.com/repos/Microsoft/WSL","labels_url":"https://api.github.com/repos/Microsoft/WSL/issues/3695/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/WSL/issues/3695/comments","events_url":"https://api.github.com/repos/Microsoft/WSL/issues/3695/events","html_url":"https://github.com/Microsoft/WSL/issues/3695","id":386475625,"node_id":"MDU6SXNzdWUzODY0NzU2MjU=","number":3695,"title":"strace causing certain program to exit on WSL","user":{"login":"wangqr","id":8182182,"node_id":"MDQ6VXNlcjgxODIxODI=","avatar_url":"https://avatars0.githubusercontent.com/u/8182182?v=4","gravatar_id":"","url":"https://api.github.com/users/wangqr","html_url":"https://github.com/wangqr","followers_url":"https://api.github.com/users/wangqr/followers","following_url":"https://api.github.com/users/wangqr/following{/other_user}","gists_url":"https://api.github.com/users/wangqr/gists{/gist_id}","starred_url":"https://api.github.com/users/wangqr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangqr/subscriptions","organizations_url":"https://api.github.com/users/wangqr/orgs","repos_url":"https://api.github.com/users/wangqr/repos","events_url":"https://api.github.com/users/wangqr/events{/privacy}","received_events_url":"https://api.github.com/users/wangqr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-01T16:59:10Z","updated_at":"2018-12-02T15:08:46Z","closed_at":null,"author_association":"NONE","body":"* Your Windows build number:  (Type `ver` at a Windows Command Prompt)\r\nMicrosoft Windows [Version 10.0.17763.134]\r\n\r\n* What you're doing and what's happening:  (Copy&paste specific commands and their output, or include screen shots)\r\nI am `strace`ing some command and the command behaves differently under strace. This happens only under WSL.\r\n\r\n* What's wrong / what should be happening instead:\r\nThe command should behave the same with and without strace.\r\n\r\n* How to reproduce:\r\nSave the following script as `test.py`\r\n```python\r\n#! /usr/bin/env python3\r\n\r\nimport time\r\nfrom multiprocessing.pool import ThreadPool\r\nimport subprocess\r\n\r\ndef dummy():\r\n    subprocess.run(['true'])\r\n    time.sleep(100000)\r\n\r\n\r\nwith ThreadPool(processes=1) as tp:\r\n    r = tp.apply_async(dummy, ())\r\n    tp.close()\r\n    r.get()\r\n```\r\nDirectly run `./test.py` (on either WSL or linux machine) should output nothing.\r\nWhen running under strace using `strace -f -o /dev/null ./test.py` on a linux machine, the command behaves the same as without strace. On WSL, the the script exits immediately with\r\n```\r\nsem_wait: Connection timed out\r\nTraceback (most recent call last):\r\n  File \"./test.py\", line 15, in <module>\r\n    r.get()\r\n  File \"/usr/lib/python3.6/multiprocessing/pool.py\", line 640, in get\r\n    raise TimeoutError\r\nmultiprocessing.context.TimeoutError\r\n```\r\nHere is the strace output on WSL: https://gist.github.com/wangqr/a76d369b572a413e31b0d3f5dbd0fa82"},"comment":{"url":"https://api.github.com/repos/Microsoft/WSL/issues/comments/443514683","html_url":"https://github.com/Microsoft/WSL/issues/3695#issuecomment-443514683","issue_url":"https://api.github.com/repos/Microsoft/WSL/issues/3695","id":443514683,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzUxNDY4Mw==","user":{"login":"wangqr","id":8182182,"node_id":"MDQ6VXNlcjgxODIxODI=","avatar_url":"https://avatars0.githubusercontent.com/u/8182182?v=4","gravatar_id":"","url":"https://api.github.com/users/wangqr","html_url":"https://github.com/wangqr","followers_url":"https://api.github.com/users/wangqr/followers","following_url":"https://api.github.com/users/wangqr/following{/other_user}","gists_url":"https://api.github.com/users/wangqr/gists{/gist_id}","starred_url":"https://api.github.com/users/wangqr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangqr/subscriptions","organizations_url":"https://api.github.com/users/wangqr/orgs","repos_url":"https://api.github.com/users/wangqr/repos","events_url":"https://api.github.com/users/wangqr/events{/privacy}","received_events_url":"https://api.github.com/users/wangqr/received_events","type":"User","site_admin":false},"created_at":"2018-12-02T15:08:46Z","updated_at":"2018-12-02T15:08:46Z","author_association":"NONE","body":"The pikaur's high CPU usage / slow lock issue still persists on 18290. I think that might be a different issue."}}
{"actor":{"display_login":"wangqr"}}