{"action":"created","issue":{"url":"https://api.github.com/repos/PBSPro/pbspro/issues/171","repository_url":"https://api.github.com/repos/PBSPro/pbspro","labels_url":"https://api.github.com/repos/PBSPro/pbspro/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/PBSPro/pbspro/issues/171/comments","events_url":"https://api.github.com/repos/PBSPro/pbspro/issues/171/events","html_url":"https://github.com/PBSPro/pbspro/pull/171","id":180859770,"number":171,"title":"PP-477: Server crash due to invalid memory access","user":{"login":"vinodchitrali","id":17923322,"avatar_url":"https://avatars.githubusercontent.com/u/17923322?v=3","gravatar_id":"","url":"https://api.github.com/users/vinodchitrali","html_url":"https://github.com/vinodchitrali","followers_url":"https://api.github.com/users/vinodchitrali/followers","following_url":"https://api.github.com/users/vinodchitrali/following{/other_user}","gists_url":"https://api.github.com/users/vinodchitrali/gists{/gist_id}","starred_url":"https://api.github.com/users/vinodchitrali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinodchitrali/subscriptions","organizations_url":"https://api.github.com/users/vinodchitrali/orgs","repos_url":"https://api.github.com/users/vinodchitrali/repos","events_url":"https://api.github.com/users/vinodchitrali/events{/privacy}","received_events_url":"https://api.github.com/users/vinodchitrali/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"arungrover","id":17924134,"avatar_url":"https://avatars.githubusercontent.com/u/17924134?v=3","gravatar_id":"","url":"https://api.github.com/users/arungrover","html_url":"https://github.com/arungrover","followers_url":"https://api.github.com/users/arungrover/followers","following_url":"https://api.github.com/users/arungrover/following{/other_user}","gists_url":"https://api.github.com/users/arungrover/gists{/gist_id}","starred_url":"https://api.github.com/users/arungrover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arungrover/subscriptions","organizations_url":"https://api.github.com/users/arungrover/orgs","repos_url":"https://api.github.com/users/arungrover/repos","events_url":"https://api.github.com/users/arungrover/events{/privacy}","received_events_url":"https://api.github.com/users/arungrover/received_events","type":"User","site_admin":false},"assignees":[{"login":"arungrover","id":17924134,"avatar_url":"https://avatars.githubusercontent.com/u/17924134?v=3","gravatar_id":"","url":"https://api.github.com/users/arungrover","html_url":"https://github.com/arungrover","followers_url":"https://api.github.com/users/arungrover/followers","following_url":"https://api.github.com/users/arungrover/following{/other_user}","gists_url":"https://api.github.com/users/arungrover/gists{/gist_id}","starred_url":"https://api.github.com/users/arungrover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arungrover/subscriptions","organizations_url":"https://api.github.com/users/arungrover/orgs","repos_url":"https://api.github.com/users/arungrover/repos","events_url":"https://api.github.com/users/arungrover/events{/privacy}","received_events_url":"https://api.github.com/users/arungrover/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-10-04T10:42:42Z","updated_at":"2016-10-06T05:02:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PBSPro/pbspro/pulls/171","html_url":"https://github.com/PBSPro/pbspro/pull/171","diff_url":"https://github.com/PBSPro/pbspro/pull/171.diff","patch_url":"https://github.com/PBSPro/pbspro/pull/171.patch"},"body":"<!--- Please review your changes in preview mode -->\r\n<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n#### Issue-ID\r\n<!--- Replace XXXX below (2 places) with the actual JIRA id -->\r\n* **[PP-477](https://pbspro.atlassian.net/browse/PP-477)**\r\n\r\n#### Problem description\r\n* Server crash due to invalid memory access \r\n\r\n#### Cause / Analysis\r\n* Pointer to the batch_request is stored in the job, and is used by time out function. However, when the connection is closed, the batch request is found and the connection is set to -1. timeout_rerun_request uses connection which was set to -1 and try to actual connection and hence invalid memory access\r\n\r\n#### Solution description\r\n* return from connection_find_actual_index function if the sock is -1 and in timeout_rerun_request the conn_idx is retrieved prior to reply_send \r\n\r\n#### Checklist:\r\n<!--- Use the preview button to see the checkboxes/links properly. -->\r\n<!--- Go over the following points, and put an `x` (without spaces around it) in the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] I have joined the **[pbspro community forum](http://community.pbspro.org/)**.\r\n- [x] My pull request contains a **single, signed** commit. See **[setting up gpg signature](https://pbspro.atlassian.net/wiki/display/DG/Signing+Your+Git+Commits)**.\r\n- [x] My code follows the **[coding style](https://pbspro.atlassian.net/wiki/display/DG/Coding+Standards)** of this project.\r\n- [ ] My change requires project documentation. See **[required documentation checklist](https://pbspro.atlassian.net/wiki/display/DG/Checklist+for+Developing+Features+and+Bug+Fixes)** for details.\r\n- [ ] I have added documentation in the **[project documentation area](https://pbspro.atlassian.net/wiki/display/PD)**.\r\n- [ ] I have added new **PTL test(s) to my commit**. (See **[using PTL for testing](https://pbspro.atlassian.net/wiki/display/DG/Using+PTL+for+Testing)**) *(or)*\r\n- [x] I have added  **manual test(s) to the Jira ticket and explained why PTL is not appropriate** for this case.\r\n- [x] All new and existing automated tests have passed. (See **[running automated PTL tests](https://pbspro.atlassian.net/wiki/display/DG/PTL+Quick+Start+Guide)**).\r\n- [x] I have attached **test logs to the Jira ticket** as evidence of testing/verification.\r\n\r\n\r\n__***For further information please visit the [Developer Guide Home](https://pbspro.atlassian.net/wiki/display/DG/Developer+Guide+Home).***__\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PBSPro/pbspro/issues/comments/251867651","html_url":"https://github.com/PBSPro/pbspro/pull/171#issuecomment-251867651","issue_url":"https://api.github.com/repos/PBSPro/pbspro/issues/171","id":251867651,"user":{"login":"vinodchitrali","id":17923322,"avatar_url":"https://avatars.githubusercontent.com/u/17923322?v=3","gravatar_id":"","url":"https://api.github.com/users/vinodchitrali","html_url":"https://github.com/vinodchitrali","followers_url":"https://api.github.com/users/vinodchitrali/followers","following_url":"https://api.github.com/users/vinodchitrali/following{/other_user}","gists_url":"https://api.github.com/users/vinodchitrali/gists{/gist_id}","starred_url":"https://api.github.com/users/vinodchitrali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinodchitrali/subscriptions","organizations_url":"https://api.github.com/users/vinodchitrali/orgs","repos_url":"https://api.github.com/users/vinodchitrali/repos","events_url":"https://api.github.com/users/vinodchitrali/events{/privacy}","received_events_url":"https://api.github.com/users/vinodchitrali/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T05:02:30Z","updated_at":"2016-10-06T05:02:30Z","body":"done\r\n"}}
{"actor":{"display_login":"vinodchitrali"}}