{"action":"opened","number":3799,"pull_request":{"url":"https://api.github.com/repos/Itseez/opencv/pulls/3799","id":30636567,"html_url":"https://github.com/Itseez/opencv/pull/3799","diff_url":"https://github.com/Itseez/opencv/pull/3799.diff","patch_url":"https://github.com/Itseez/opencv/pull/3799.patch","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/3799","number":3799,"state":"open","locked":false,"title":"Data race fix between oclCleanupCallback and Mat::GetUMat();","user":{"login":"lupustr3","id":6407682,"avatar_url":"https://avatars.githubusercontent.com/u/6407682?v=3","gravatar_id":"","url":"https://api.github.com/users/lupustr3","html_url":"https://github.com/lupustr3","followers_url":"https://api.github.com/users/lupustr3/followers","following_url":"https://api.github.com/users/lupustr3/following{/other_user}","gists_url":"https://api.github.com/users/lupustr3/gists{/gist_id}","starred_url":"https://api.github.com/users/lupustr3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lupustr3/subscriptions","organizations_url":"https://api.github.com/users/lupustr3/orgs","repos_url":"https://api.github.com/users/lupustr3/repos","events_url":"https://api.github.com/users/lupustr3/events{/privacy}","received_events_url":"https://api.github.com/users/lupustr3/received_events","type":"User","site_admin":false},"body":"Case 1: reuse of old src Mat in OCL pipe leads to data race with oclCleanupCallback and can result in asser fail or other undefined behavior.\r\n\r\nCase 2: concurent deallocation of UMatData between UMat (oclCleanupCallback) and Mat (stack) deallocators.\r\n\r\nEventCnt object was added to UMatData to track status of oclCleanupCallback;\r\nTwo test cases were implemented to reproduce the problem;","created_at":"2015-03-06T11:03:34Z","updated_at":"2015-03-06T11:03:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Itseez/opencv/pulls/3799/commits","review_comments_url":"https://api.github.com/repos/Itseez/opencv/pulls/3799/comments","review_comment_url":"https://api.github.com/repos/Itseez/opencv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/3799/comments","statuses_url":"https://api.github.com/repos/Itseez/opencv/statuses/9455f20811449393938dc99c91d014e42fc789d6","head":{"label":"lupustr3:pvlasov/umat_datarace_fix","ref":"pvlasov/umat_datarace_fix","sha":"9455f20811449393938dc99c91d014e42fc789d6","user":{"login":"lupustr3","id":6407682,"avatar_url":"https://avatars.githubusercontent.com/u/6407682?v=3","gravatar_id":"","url":"https://api.github.com/users/lupustr3","html_url":"https://github.com/lupustr3","followers_url":"https://api.github.com/users/lupustr3/followers","following_url":"https://api.github.com/users/lupustr3/following{/other_user}","gists_url":"https://api.github.com/users/lupustr3/gists{/gist_id}","starred_url":"https://api.github.com/users/lupustr3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lupustr3/subscriptions","organizations_url":"https://api.github.com/users/lupustr3/orgs","repos_url":"https://api.github.com/users/lupustr3/repos","events_url":"https://api.github.com/users/lupustr3/events{/privacy}","received_events_url":"https://api.github.com/users/lupustr3/received_events","type":"User","site_admin":false},"repo":{"id":24755211,"name":"opencv","full_name":"lupustr3/opencv","owner":{"login":"lupustr3","id":6407682,"avatar_url":"https://avatars.githubusercontent.com/u/6407682?v=3","gravatar_id":"","url":"https://api.github.com/users/lupustr3","html_url":"https://github.com/lupustr3","followers_url":"https://api.github.com/users/lupustr3/followers","following_url":"https://api.github.com/users/lupustr3/following{/other_user}","gists_url":"https://api.github.com/users/lupustr3/gists{/gist_id}","starred_url":"https://api.github.com/users/lupustr3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lupustr3/subscriptions","organizations_url":"https://api.github.com/users/lupustr3/orgs","repos_url":"https://api.github.com/users/lupustr3/repos","events_url":"https://api.github.com/users/lupustr3/events{/privacy}","received_events_url":"https://api.github.com/users/lupustr3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lupustr3/opencv","description":"Open Source Computer Vision Library","fork":true,"url":"https://api.github.com/repos/lupustr3/opencv","forks_url":"https://api.github.com/repos/lupustr3/opencv/forks","keys_url":"https://api.github.com/repos/lupustr3/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lupustr3/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lupustr3/opencv/teams","hooks_url":"https://api.github.com/repos/lupustr3/opencv/hooks","issue_events_url":"https://api.github.com/repos/lupustr3/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/lupustr3/opencv/events","assignees_url":"https://api.github.com/repos/lupustr3/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/lupustr3/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/lupustr3/opencv/tags","blobs_url":"https://api.github.com/repos/lupustr3/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lupustr3/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lupustr3/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/lupustr3/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lupustr3/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/lupustr3/opencv/languages","stargazers_url":"https://api.github.com/repos/lupustr3/opencv/stargazers","contributors_url":"https://api.github.com/repos/lupustr3/opencv/contributors","subscribers_url":"https://api.github.com/repos/lupustr3/opencv/subscribers","subscription_url":"https://api.github.com/repos/lupustr3/opencv/subscription","commits_url":"https://api.github.com/repos/lupustr3/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/lupustr3/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/lupustr3/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/lupustr3/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/lupustr3/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/lupustr3/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lupustr3/opencv/merges","archive_url":"https://api.github.com/repos/lupustr3/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lupustr3/opencv/downloads","issues_url":"https://api.github.com/repos/lupustr3/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/lupustr3/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/lupustr3/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/lupustr3/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lupustr3/opencv/labels{/name}","releases_url":"https://api.github.com/repos/lupustr3/opencv/releases{/id}","created_at":"2014-10-03T10:54:05Z","updated_at":"2015-03-05T09:01:48Z","pushed_at":"2015-03-06T10:56:54Z","git_url":"git://github.com/lupustr3/opencv.git","ssh_url":"git@github.com:lupustr3/opencv.git","clone_url":"https://github.com/lupustr3/opencv.git","svn_url":"https://github.com/lupustr3/opencv","homepage":"opencv.org","size":436781,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Itseez:master","ref":"master","sha":"361eb633f6e841bcda18f970193fc4fb439bc4c8","user":{"login":"Itseez","id":1786446,"avatar_url":"https://avatars.githubusercontent.com/u/1786446?v=3","gravatar_id":"","url":"https://api.github.com/users/Itseez","html_url":"https://github.com/Itseez","followers_url":"https://api.github.com/users/Itseez/followers","following_url":"https://api.github.com/users/Itseez/following{/other_user}","gists_url":"https://api.github.com/users/Itseez/gists{/gist_id}","starred_url":"https://api.github.com/users/Itseez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itseez/subscriptions","organizations_url":"https://api.github.com/users/Itseez/orgs","repos_url":"https://api.github.com/users/Itseez/repos","events_url":"https://api.github.com/users/Itseez/events{/privacy}","received_events_url":"https://api.github.com/users/Itseez/received_events","type":"Organization","site_admin":false},"repo":{"id":5108051,"name":"opencv","full_name":"Itseez/opencv","owner":{"login":"Itseez","id":1786446,"avatar_url":"https://avatars.githubusercontent.com/u/1786446?v=3","gravatar_id":"","url":"https://api.github.com/users/Itseez","html_url":"https://github.com/Itseez","followers_url":"https://api.github.com/users/Itseez/followers","following_url":"https://api.github.com/users/Itseez/following{/other_user}","gists_url":"https://api.github.com/users/Itseez/gists{/gist_id}","starred_url":"https://api.github.com/users/Itseez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itseez/subscriptions","organizations_url":"https://api.github.com/users/Itseez/orgs","repos_url":"https://api.github.com/users/Itseez/repos","events_url":"https://api.github.com/users/Itseez/events{/privacy}","received_events_url":"https://api.github.com/users/Itseez/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Itseez/opencv","description":"Open Source Computer Vision Library","fork":false,"url":"https://api.github.com/repos/Itseez/opencv","forks_url":"https://api.github.com/repos/Itseez/opencv/forks","keys_url":"https://api.github.com/repos/Itseez/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Itseez/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Itseez/opencv/teams","hooks_url":"https://api.github.com/repos/Itseez/opencv/hooks","issue_events_url":"https://api.github.com/repos/Itseez/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/Itseez/opencv/events","assignees_url":"https://api.github.com/repos/Itseez/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/Itseez/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/Itseez/opencv/tags","blobs_url":"https://api.github.com/repos/Itseez/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Itseez/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Itseez/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/Itseez/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Itseez/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/Itseez/opencv/languages","stargazers_url":"https://api.github.com/repos/Itseez/opencv/stargazers","contributors_url":"https://api.github.com/repos/Itseez/opencv/contributors","subscribers_url":"https://api.github.com/repos/Itseez/opencv/subscribers","subscription_url":"https://api.github.com/repos/Itseez/opencv/subscription","commits_url":"https://api.github.com/repos/Itseez/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/Itseez/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/Itseez/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/Itseez/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/Itseez/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/Itseez/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Itseez/opencv/merges","archive_url":"https://api.github.com/repos/Itseez/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Itseez/opencv/downloads","issues_url":"https://api.github.com/repos/Itseez/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/Itseez/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/Itseez/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/Itseez/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Itseez/opencv/labels{/name}","releases_url":"https://api.github.com/repos/Itseez/opencv/releases{/id}","created_at":"2012-07-19T09:40:17Z","updated_at":"2015-03-06T10:23:00Z","pushed_at":"2015-03-06T10:22:59Z","git_url":"git://github.com/Itseez/opencv.git","ssh_url":"git@github.com:Itseez/opencv.git","clone_url":"https://github.com/Itseez/opencv.git","svn_url":"https://github.com/Itseez/opencv","homepage":"opencv.org","size":1091203,"stargazers_count":4656,"watchers_count":4656,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4250,"mirror_url":null,"open_issues_count":24,"forks":4250,"open_issues":24,"watchers":4656,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/3799"},"html":{"href":"https://github.com/Itseez/opencv/pull/3799"},"issue":{"href":"https://api.github.com/repos/Itseez/opencv/issues/3799"},"comments":{"href":"https://api.github.com/repos/Itseez/opencv/issues/3799/comments"},"review_comments":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/3799/comments"},"review_comment":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/3799/commits"},"statuses":{"href":"https://api.github.com/repos/Itseez/opencv/statuses/9455f20811449393938dc99c91d014e42fc789d6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":312,"deletions":4,"changed_files":7}}