{"action":"created","issue":{"url":"https://api.github.com/repos/TeaCI/tea-ci/issues/11","repository_url":"https://api.github.com/repos/TeaCI/tea-ci","labels_url":"https://api.github.com/repos/TeaCI/tea-ci/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/TeaCI/tea-ci/issues/11/comments","events_url":"https://api.github.com/repos/TeaCI/tea-ci/issues/11/events","html_url":"https://github.com/TeaCI/tea-ci/issues/11","id":162506165,"number":11,"title":"64 bit Msys2 python fails on Wine with sem_init: Invalid argument","user":{"login":"fracting","id":194342,"avatar_url":"https://avatars.githubusercontent.com/u/194342?v=3","gravatar_id":"","url":"https://api.github.com/users/fracting","html_url":"https://github.com/fracting","followers_url":"https://api.github.com/users/fracting/followers","following_url":"https://api.github.com/users/fracting/following{/other_user}","gists_url":"https://api.github.com/users/fracting/gists{/gist_id}","starred_url":"https://api.github.com/users/fracting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fracting/subscriptions","organizations_url":"https://api.github.com/users/fracting/orgs","repos_url":"https://api.github.com/users/fracting/repos","events_url":"https://api.github.com/users/fracting/events{/privacy}","received_events_url":"https://api.github.com/users/fracting/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-27T17:34:29Z","updated_at":"2016-07-03T18:57:58Z","closed_at":null,"body":"```\r\n==> Starting build()...\r\nsem_init: Invalid argument\r\nsem_wait: Invalid argument\r\nsem_wait: Invalid argument\r\nFatal Python error: PyEval_AcquireThread: non-NULL old thread state\r\n```\r\n\r\nReference:\r\n1. https://tea-ci.org/Alexpux/MINGW-packages/947\r\n2. https://github.com/Alexpux/MINGW-packages/pull/1510#issuecomment-228790905\r\n\r\nNot sure if it is related to https://cygwin.com/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=0aa738220bb9dea2ad479e484560767b36701947\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/TeaCI/tea-ci/issues/comments/230169246","html_url":"https://github.com/TeaCI/tea-ci/issues/11#issuecomment-230169246","issue_url":"https://api.github.com/repos/TeaCI/tea-ci/issues/11","id":230169246,"user":{"login":"fracting","id":194342,"avatar_url":"https://avatars.githubusercontent.com/u/194342?v=3","gravatar_id":"","url":"https://api.github.com/users/fracting","html_url":"https://github.com/fracting","followers_url":"https://api.github.com/users/fracting/followers","following_url":"https://api.github.com/users/fracting/following{/other_user}","gists_url":"https://api.github.com/users/fracting/gists{/gist_id}","starred_url":"https://api.github.com/users/fracting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fracting/subscriptions","organizations_url":"https://api.github.com/users/fracting/orgs","repos_url":"https://api.github.com/users/fracting/repos","events_url":"https://api.github.com/users/fracting/events{/privacy}","received_events_url":"https://api.github.com/users/fracting/received_events","type":"User","site_admin":false},"created_at":"2016-07-03T18:57:58Z","updated_at":"2016-07-03T18:57:58Z","body":"The below code reproduced a similar bug with Cygwin/Msys2 64bit on Wine, but works fine on 32bit:\r\n\r\n```\r\n#include <unistd.h>\r\n#include <stdlib.h>\r\n#include <string.h>\r\n#include <semaphore.h>\r\n#include <pthread.h>\r\n\r\n\r\nint\r\nmain(int argc, char *argv[])\r\n{\r\n    sem_t *p_sem = malloc(sizeof(sem_t));\r\n\r\n    memset(p_sem, 0xcc, sizeof(sem_t)); /* trigger exception handling code in Cygwin sem_init()-->verifyable_object_isvalid() */\r\n    sem_init(p_sem, 0, 1);\r\n\r\n    return 0;\r\n}\r\n```"}}
{"actor":{"display_login":"fracting"}}