{"action":"created","issue":{"url":"https://api.github.com/repos/BOINC/boinc/issues/1356","labels_url":"https://api.github.com/repos/BOINC/boinc/issues/1356/labels{/name}","comments_url":"https://api.github.com/repos/BOINC/boinc/issues/1356/comments","events_url":"https://api.github.com/repos/BOINC/boinc/issues/1356/events","html_url":"https://github.com/BOINC/boinc/pull/1356","id":59761489,"number":1356,"title":"BoincAPI Windows static CRT leak","user":{"login":"JasonGroothuis","id":11306956,"avatar_url":"https://avatars.githubusercontent.com/u/11306956?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonGroothuis","html_url":"https://github.com/JasonGroothuis","followers_url":"https://api.github.com/users/JasonGroothuis/followers","following_url":"https://api.github.com/users/JasonGroothuis/following{/other_user}","gists_url":"https://api.github.com/users/JasonGroothuis/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonGroothuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonGroothuis/subscriptions","organizations_url":"https://api.github.com/users/JasonGroothuis/orgs","repos_url":"https://api.github.com/users/JasonGroothuis/repos","events_url":"https://api.github.com/users/JasonGroothuis/events{/privacy}","received_events_url":"https://api.github.com/users/JasonGroothuis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T07:46:43Z","updated_at":"2015-03-04T11:08:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/BOINC/boinc/pulls/1356","html_url":"https://github.com/BOINC/boinc/pull/1356","diff_url":"https://github.com/BOINC/boinc/pull/1356.diff","patch_url":"https://github.com/BOINC/boinc/pull/1356.patch"},"body":"Handle and resource leakage corrected for main application timer thread\r\n(first cut).  This covers the ordinary boinc_finish() run to completion\r\nsituation only. Medium speed XP 32 bit host estimated at 2-6 weeks\r\nbetween needing a reboot due to low kernel resources.  One actual host\r\nunder observation exhibited the 'reboot to clear'  issue after 7 weeks,\r\n\r\nThe API will need further attention to what happens to the timer thread\r\nhandle and resources under various unusual exit conditions, perhaps\r\nmoving cleanup  to boinc_exit(), however since the timer thread calls\r\nboinc_exit(), that's problematic. Cases of client shutdown, abort and\r\nerror exits, will need investigation, along with API review for the\r\ndynamic C Runtime  with respect to handles.;  A Test Protocol should be\r\ndevised once applicable other areas are identified.\r\n\r\nSee MSDN documentation for _beignthreadex() and CreateThread() for\r\nVisual Studio 2008/2010/2013, for details."},"comment":{"url":"https://api.github.com/repos/BOINC/boinc/issues/comments/77139475","html_url":"https://github.com/BOINC/boinc/pull/1356#issuecomment-77139475","issue_url":"https://api.github.com/repos/BOINC/boinc/issues/1356","id":77139475,"user":{"login":"ChristianBeer","id":997210,"avatar_url":"https://avatars.githubusercontent.com/u/997210?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianBeer","html_url":"https://github.com/ChristianBeer","followers_url":"https://api.github.com/users/ChristianBeer/followers","following_url":"https://api.github.com/users/ChristianBeer/following{/other_user}","gists_url":"https://api.github.com/users/ChristianBeer/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianBeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianBeer/subscriptions","organizations_url":"https://api.github.com/users/ChristianBeer/orgs","repos_url":"https://api.github.com/users/ChristianBeer/repos","events_url":"https://api.github.com/users/ChristianBeer/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianBeer/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T11:08:18Z","updated_at":"2015-03-04T11:08:18Z","body":"This fails to build on Linux. Is this an XP only leak? I've never heard of users having to reboot with windows 7 because of low kernel ressources."}}