{"action":"created","issue":{"url":"https://api.github.com/repos/rsyslog/rsyslog/issues/251","labels_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/251/comments","events_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/251/events","html_url":"https://github.com/rsyslog/rsyslog/issues/251","id":58579213,"number":251,"title":"Rsyslog coredump in omfile","user":{"login":"dopuskh3","id":86608,"avatar_url":"https://avatars.githubusercontent.com/u/86608?v=3","gravatar_id":"","url":"https://api.github.com/users/dopuskh3","html_url":"https://github.com/dopuskh3","followers_url":"https://api.github.com/users/dopuskh3/followers","following_url":"https://api.github.com/users/dopuskh3/following{/other_user}","gists_url":"https://api.github.com/users/dopuskh3/gists{/gist_id}","starred_url":"https://api.github.com/users/dopuskh3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dopuskh3/subscriptions","organizations_url":"https://api.github.com/users/dopuskh3/orgs","repos_url":"https://api.github.com/users/dopuskh3/repos","events_url":"https://api.github.com/users/dopuskh3/events{/privacy}","received_events_url":"https://api.github.com/users/dopuskh3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rsyslog/rsyslog/labels/waitingOnResponse","name":"waitingOnResponse","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"alorbach","id":1675286,"avatar_url":"https://avatars.githubusercontent.com/u/1675286?v=3","gravatar_id":"","url":"https://api.github.com/users/alorbach","html_url":"https://github.com/alorbach","followers_url":"https://api.github.com/users/alorbach/followers","following_url":"https://api.github.com/users/alorbach/following{/other_user}","gists_url":"https://api.github.com/users/alorbach/gists{/gist_id}","starred_url":"https://api.github.com/users/alorbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alorbach/subscriptions","organizations_url":"https://api.github.com/users/alorbach/orgs","repos_url":"https://api.github.com/users/alorbach/repos","events_url":"https://api.github.com/users/alorbach/events{/privacy}","received_events_url":"https://api.github.com/users/alorbach/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-02-23T12:24:56Z","updated_at":"2015-11-24T22:28:53Z","closed_at":null,"body":"Hi\r\n\r\nWe have some issues on our rsyslog (8.6.0) daemons.\r\n\r\nAfter a bit of inversigation we found that we are crashing in the omfile.c module here:\r\n\r\n780\t\r\n781\tfinalize_it:\r\n782\t\tpCache[pData->iCurrElt]->nInactive = 0;\r\n783\t\tRETiRet;\r\n784\t}\r\n\r\nLooks like we are trying to acccess non-existent cached data. pData value is optimized (build with -O3) and that prevent us from digging deeper into the core file analisys.\r\n\r\nHere is the OMFile related configuration: \r\n\r\n$OMFileFlushOnTXEnd off\r\n$OMFileIOBufferSize 131072k\r\n$OMFileAsyncWriting on\r\n$OMFileFlushInterval 30\r\n\r\nPlease let me know I you have test case I can try to provide additional feedback\r\n\r\nF."},"comment":{"url":"https://api.github.com/repos/rsyslog/rsyslog/issues/comments/159426490","html_url":"https://github.com/rsyslog/rsyslog/issues/251#issuecomment-159426490","issue_url":"https://api.github.com/repos/rsyslog/rsyslog/issues/251","id":159426490,"user":{"login":"ab4lfour","id":15750811,"avatar_url":"https://avatars.githubusercontent.com/u/15750811?v=3","gravatar_id":"","url":"https://api.github.com/users/ab4lfour","html_url":"https://github.com/ab4lfour","followers_url":"https://api.github.com/users/ab4lfour/followers","following_url":"https://api.github.com/users/ab4lfour/following{/other_user}","gists_url":"https://api.github.com/users/ab4lfour/gists{/gist_id}","starred_url":"https://api.github.com/users/ab4lfour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ab4lfour/subscriptions","organizations_url":"https://api.github.com/users/ab4lfour/orgs","repos_url":"https://api.github.com/users/ab4lfour/repos","events_url":"https://api.github.com/users/ab4lfour/events{/privacy}","received_events_url":"https://api.github.com/users/ab4lfour/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T22:28:53Z","updated_at":"2015-11-24T22:28:53Z","body":"It's probably the issue where if dynafile creation fails (or something else fails in prepareDynFile()...), rsyslogd would segfault on the pCache entry for the current element, because pData->iCurrElt is likely still -1:\r\n\r\nhttps://github.com/rsyslog/rsyslog/commit/008f0097b610742595034cdab381749dbc00f93f\r\n\r\nfixed in 8.12.0\r\n\r\n\r\n"}}