{"action":"opened","number":250,"pull_request":{"url":"https://api.github.com/repos/xrootd/xrootd/pulls/250","id":39327871,"html_url":"https://github.com/xrootd/xrootd/pull/250","diff_url":"https://github.com/xrootd/xrootd/pull/250.diff","patch_url":"https://github.com/xrootd/xrootd/pull/250.patch","issue_url":"https://api.github.com/repos/xrootd/xrootd/issues/250","number":250,"state":"open","locked":false,"title":"TPC: Fix deadlock in case of error in the TPC authentication","user":{"login":"esindril","id":1881134,"avatar_url":"https://avatars.githubusercontent.com/u/1881134?v=3","gravatar_id":"","url":"https://api.github.com/users/esindril","html_url":"https://github.com/esindril","followers_url":"https://api.github.com/users/esindril/followers","following_url":"https://api.github.com/users/esindril/following{/other_user}","gists_url":"https://api.github.com/users/esindril/gists{/gist_id}","starred_url":"https://api.github.com/users/esindril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esindril/subscriptions","organizations_url":"https://api.github.com/users/esindril/orgs","repos_url":"https://api.github.com/users/esindril/repos","events_url":"https://api.github.com/users/esindril/events{/privacy}","received_events_url":"https://api.github.com/users/esindril/received_events","type":"User","site_admin":false},"body":"In case the address resolution fails then the authMutex is never\r\nreleased and all subsequent TPC transfers will deadlock. Seen in\r\nin the XRootD plugin in CASTOR with the following signature:\r\n150706 19:25:54 10128 castor2ofs_TPC: alienmas.60723:19@aliendb9\r\nUnable to open ....; Name or service not known\r\n\r\nExample of deadlocked threads:\r\n\r\nThread 31 (Thread 0x7f1b7369c700 (LWP 10128)):\r\n#0  0x000000369f40e264 in __lll_lock_wait () from /lib64/libpthread.so.0\r\n#1  0x000000369f409508 in _L_lock_854 () from /lib64/libpthread.so.0\r\n#2  0x000000369f4093d7 in pthread_mutex_lock () from /lib64/libpthread.so.0\r\n#3  0x00000036a046ccf8 in XrdOfsTPCAuth::Del() () from /usr/lib64/libXrdServer.so.2\r\n#4  0x00000036a045f252 in XrdOfsFile::close() () from /usr/lib64/libXrdServer.so.2\r\n#5  0x00007f1b72a11d1e in XrdxCastor2OfsFile::close() () from /usr/lib64/libxrdxcastor2ofs.so.2.1\r\n#6  0x00000036a0458451 in XrdXrootdProtocol::do_Close() () from /usr/lib64/libXrdServer.so.2\r\n#7  0x00000036a105d909 in XrdLink::DoIt() () from /usr/lib64/libXrdUtils.so.2\r\n#8  0x00000036a1060dc5 in XrdScheduler::Run() () from /usr/lib64/libXrdUtils.so.2\r\n#9  0x00000036a1060fb9 in XrdStartWorking(void*) () from /usr/lib64/libXrdUtils.so.2\r\n#10 0x00000036a1025f9f in XrdSysThread_Xeq () from /usr/lib64/libXrdUtils.so.2\r\n#11 0x000000369f4079d1 in start_thread () from /lib64/libpthread.so.0\r\n#12 0x000000369f0e88fd in clone () from /lib64/libc.so.6\r\n\r\nThread 30 (Thread 0x7f1b7359b700 (LWP 10129)):\r\n#0  0x000000369f40e264 in __lll_lock_wait () from /lib64/libpthread.so.0\r\n#1  0x000000369f409508 in _L_lock_854 () from /lib64/libpthread.so.0\r\n#2  0x000000369f4093d7 in pthread_mutex_lock () from /lib64/libpthread.so.0\r\n#3  0x00000036a046d2cd in XrdOfsTPCAuth::Add(XrdOfsTPC::Facts&) () from /usr/lib64/libXrdServer.so.2\r\n#4  0x00000036a046c9b0 in XrdOfsTPC::Authorize(XrdOfsTPC**, XrdOfsTPC::Facts&, int) () from /usr/lib64/libXrdServer.so.2\r\n#5  0x00000036a045d64c in XrdOfsFile::open(char const*, int, unsigned int, XrdSecEntity const*, char const*) () from /usr/lib64/libXrdServer.so.2\r\n#6  0x00007f1b72a10e69 in XrdxCastor2OfsFile::open(char const*, int, unsigned int, XrdSecEntity const*, char const*) () from /usr/lib64/libxrdxcastor2ofs.so.2.1\r\n#7  0x00000036a045528c in XrdXrootdProtocol::do_Open() () from /usr/lib64/libXrdServer.so.2\r\n#8  0x00000036a105d909 in XrdLink::DoIt() () from /usr/lib64/libXrdUtils.so.2\r\n#9  0x00000036a1060dc5 in XrdScheduler::Run() () from /usr/lib64/libXrdUtils.so.2\r\n#10 0x00000036a1060fb9 in XrdStartWorking(void*) () from /usr/lib64/libXrdUtils.so.2\r\n#11 0x00000036a1025f9f in XrdSysThread_Xeq () from /usr/lib64/libXrdUtils.so.2\r\n#12 0x000000369f4079d1 in start_thread () from /lib64/libpthread.so.0\r\n#13 0x000000369f0e88fd in clone () from /lib64/libc.so.6","created_at":"2015-07-07T01:40:06Z","updated_at":"2015-07-07T01:40:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xrootd/xrootd/pulls/250/commits","review_comments_url":"https://api.github.com/repos/xrootd/xrootd/pulls/250/comments","review_comment_url":"https://api.github.com/repos/xrootd/xrootd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xrootd/xrootd/issues/250/comments","statuses_url":"https://api.github.com/repos/xrootd/xrootd/statuses/9fcc1d0cbb368987f8de6f3fdff713a70dce16a4","head":{"label":"esindril:master","ref":"master","sha":"9fcc1d0cbb368987f8de6f3fdff713a70dce16a4","user":{"login":"esindril","id":1881134,"avatar_url":"https://avatars.githubusercontent.com/u/1881134?v=3","gravatar_id":"","url":"https://api.github.com/users/esindril","html_url":"https://github.com/esindril","followers_url":"https://api.github.com/users/esindril/followers","following_url":"https://api.github.com/users/esindril/following{/other_user}","gists_url":"https://api.github.com/users/esindril/gists{/gist_id}","starred_url":"https://api.github.com/users/esindril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esindril/subscriptions","organizations_url":"https://api.github.com/users/esindril/orgs","repos_url":"https://api.github.com/users/esindril/repos","events_url":"https://api.github.com/users/esindril/events{/privacy}","received_events_url":"https://api.github.com/users/esindril/received_events","type":"User","site_admin":false},"repo":{"id":10109719,"name":"xrootd","full_name":"esindril/xrootd","owner":{"login":"esindril","id":1881134,"avatar_url":"https://avatars.githubusercontent.com/u/1881134?v=3","gravatar_id":"","url":"https://api.github.com/users/esindril","html_url":"https://github.com/esindril","followers_url":"https://api.github.com/users/esindril/followers","following_url":"https://api.github.com/users/esindril/following{/other_user}","gists_url":"https://api.github.com/users/esindril/gists{/gist_id}","starred_url":"https://api.github.com/users/esindril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esindril/subscriptions","organizations_url":"https://api.github.com/users/esindril/orgs","repos_url":"https://api.github.com/users/esindril/repos","events_url":"https://api.github.com/users/esindril/events{/privacy}","received_events_url":"https://api.github.com/users/esindril/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esindril/xrootd","description":"The XRootD central repository","fork":true,"url":"https://api.github.com/repos/esindril/xrootd","forks_url":"https://api.github.com/repos/esindril/xrootd/forks","keys_url":"https://api.github.com/repos/esindril/xrootd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esindril/xrootd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esindril/xrootd/teams","hooks_url":"https://api.github.com/repos/esindril/xrootd/hooks","issue_events_url":"https://api.github.com/repos/esindril/xrootd/issues/events{/number}","events_url":"https://api.github.com/repos/esindril/xrootd/events","assignees_url":"https://api.github.com/repos/esindril/xrootd/assignees{/user}","branches_url":"https://api.github.com/repos/esindril/xrootd/branches{/branch}","tags_url":"https://api.github.com/repos/esindril/xrootd/tags","blobs_url":"https://api.github.com/repos/esindril/xrootd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esindril/xrootd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esindril/xrootd/git/refs{/sha}","trees_url":"https://api.github.com/repos/esindril/xrootd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esindril/xrootd/statuses/{sha}","languages_url":"https://api.github.com/repos/esindril/xrootd/languages","stargazers_url":"https://api.github.com/repos/esindril/xrootd/stargazers","contributors_url":"https://api.github.com/repos/esindril/xrootd/contributors","subscribers_url":"https://api.github.com/repos/esindril/xrootd/subscribers","subscription_url":"https://api.github.com/repos/esindril/xrootd/subscription","commits_url":"https://api.github.com/repos/esindril/xrootd/commits{/sha}","git_commits_url":"https://api.github.com/repos/esindril/xrootd/git/commits{/sha}","comments_url":"https://api.github.com/repos/esindril/xrootd/comments{/number}","issue_comment_url":"https://api.github.com/repos/esindril/xrootd/issues/comments{/number}","contents_url":"https://api.github.com/repos/esindril/xrootd/contents/{+path}","compare_url":"https://api.github.com/repos/esindril/xrootd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esindril/xrootd/merges","archive_url":"https://api.github.com/repos/esindril/xrootd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esindril/xrootd/downloads","issues_url":"https://api.github.com/repos/esindril/xrootd/issues{/number}","pulls_url":"https://api.github.com/repos/esindril/xrootd/pulls{/number}","milestones_url":"https://api.github.com/repos/esindril/xrootd/milestones{/number}","notifications_url":"https://api.github.com/repos/esindril/xrootd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esindril/xrootd/labels{/name}","releases_url":"https://api.github.com/repos/esindril/xrootd/releases{/id}","created_at":"2013-05-16T20:22:36Z","updated_at":"2015-02-24T14:00:23Z","pushed_at":"2015-07-07T01:33:11Z","git_url":"git://github.com/esindril/xrootd.git","ssh_url":"git@github.com:esindril/xrootd.git","clone_url":"https://github.com/esindril/xrootd.git","svn_url":"https://github.com/esindril/xrootd","homepage":null,"size":19091,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"xrootd:master","ref":"master","sha":"2be8da58f93e6251f95be270fda35ca27cddac9a","user":{"login":"xrootd","id":2656051,"avatar_url":"https://avatars.githubusercontent.com/u/2656051?v=3","gravatar_id":"","url":"https://api.github.com/users/xrootd","html_url":"https://github.com/xrootd","followers_url":"https://api.github.com/users/xrootd/followers","following_url":"https://api.github.com/users/xrootd/following{/other_user}","gists_url":"https://api.github.com/users/xrootd/gists{/gist_id}","starred_url":"https://api.github.com/users/xrootd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xrootd/subscriptions","organizations_url":"https://api.github.com/users/xrootd/orgs","repos_url":"https://api.github.com/users/xrootd/repos","events_url":"https://api.github.com/users/xrootd/events{/privacy}","received_events_url":"https://api.github.com/users/xrootd/received_events","type":"Organization","site_admin":false},"repo":{"id":8924314,"name":"xrootd","full_name":"xrootd/xrootd","owner":{"login":"xrootd","id":2656051,"avatar_url":"https://avatars.githubusercontent.com/u/2656051?v=3","gravatar_id":"","url":"https://api.github.com/users/xrootd","html_url":"https://github.com/xrootd","followers_url":"https://api.github.com/users/xrootd/followers","following_url":"https://api.github.com/users/xrootd/following{/other_user}","gists_url":"https://api.github.com/users/xrootd/gists{/gist_id}","starred_url":"https://api.github.com/users/xrootd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xrootd/subscriptions","organizations_url":"https://api.github.com/users/xrootd/orgs","repos_url":"https://api.github.com/users/xrootd/repos","events_url":"https://api.github.com/users/xrootd/events{/privacy}","received_events_url":"https://api.github.com/users/xrootd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xrootd/xrootd","description":"The XRootD central repository","fork":false,"url":"https://api.github.com/repos/xrootd/xrootd","forks_url":"https://api.github.com/repos/xrootd/xrootd/forks","keys_url":"https://api.github.com/repos/xrootd/xrootd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xrootd/xrootd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xrootd/xrootd/teams","hooks_url":"https://api.github.com/repos/xrootd/xrootd/hooks","issue_events_url":"https://api.github.com/repos/xrootd/xrootd/issues/events{/number}","events_url":"https://api.github.com/repos/xrootd/xrootd/events","assignees_url":"https://api.github.com/repos/xrootd/xrootd/assignees{/user}","branches_url":"https://api.github.com/repos/xrootd/xrootd/branches{/branch}","tags_url":"https://api.github.com/repos/xrootd/xrootd/tags","blobs_url":"https://api.github.com/repos/xrootd/xrootd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xrootd/xrootd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xrootd/xrootd/git/refs{/sha}","trees_url":"https://api.github.com/repos/xrootd/xrootd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xrootd/xrootd/statuses/{sha}","languages_url":"https://api.github.com/repos/xrootd/xrootd/languages","stargazers_url":"https://api.github.com/repos/xrootd/xrootd/stargazers","contributors_url":"https://api.github.com/repos/xrootd/xrootd/contributors","subscribers_url":"https://api.github.com/repos/xrootd/xrootd/subscribers","subscription_url":"https://api.github.com/repos/xrootd/xrootd/subscription","commits_url":"https://api.github.com/repos/xrootd/xrootd/commits{/sha}","git_commits_url":"https://api.github.com/repos/xrootd/xrootd/git/commits{/sha}","comments_url":"https://api.github.com/repos/xrootd/xrootd/comments{/number}","issue_comment_url":"https://api.github.com/repos/xrootd/xrootd/issues/comments{/number}","contents_url":"https://api.github.com/repos/xrootd/xrootd/contents/{+path}","compare_url":"https://api.github.com/repos/xrootd/xrootd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xrootd/xrootd/merges","archive_url":"https://api.github.com/repos/xrootd/xrootd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xrootd/xrootd/downloads","issues_url":"https://api.github.com/repos/xrootd/xrootd/issues{/number}","pulls_url":"https://api.github.com/repos/xrootd/xrootd/pulls{/number}","milestones_url":"https://api.github.com/repos/xrootd/xrootd/milestones{/number}","notifications_url":"https://api.github.com/repos/xrootd/xrootd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xrootd/xrootd/labels{/name}","releases_url":"https://api.github.com/repos/xrootd/xrootd/releases{/id}","created_at":"2013-03-21T08:25:19Z","updated_at":"2015-06-30T15:18:22Z","pushed_at":"2015-07-05T18:43:11Z","git_url":"git://github.com/xrootd/xrootd.git","ssh_url":"git@github.com:xrootd/xrootd.git","clone_url":"https://github.com/xrootd/xrootd.git","svn_url":"https://github.com/xrootd/xrootd","homepage":null,"size":57391,"stargazers_count":19,"watchers_count":19,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":34,"forks":25,"open_issues":34,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xrootd/xrootd/pulls/250"},"html":{"href":"https://github.com/xrootd/xrootd/pull/250"},"issue":{"href":"https://api.github.com/repos/xrootd/xrootd/issues/250"},"comments":{"href":"https://api.github.com/repos/xrootd/xrootd/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/xrootd/xrootd/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/xrootd/xrootd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xrootd/xrootd/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/xrootd/xrootd/statuses/9fcc1d0cbb368987f8de6f3fdff713a70dce16a4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}