Bug 1684236
Summary: | rsyslog-8.24.0-34.el7.x86_64 SIGSEGV when using rsyslog-elasticsearch-8.24.0-34 | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Anthony Zone <azone> | ||||
Component: | rsyslog | Assignee: | Rich Megginson <rmeggins> | ||||
Status: | CLOSED ERRATA | QA Contact: | Dalibor Pospíšil <dapospis> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 7.6 | CC: | azone, dapospis, jvymazal, nhosoi, pamadio, rmeggins | ||||
Target Milestone: | rc | Keywords: | Triaged | ||||
Target Release: | 7.7 | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | rsyslog-8.24.0-41.el7 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-03-31 19:10:09 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1594286 | ||||||
Attachments: |
|
Description
Anthony Zone
2019-02-28 19:01:49 UTC
In trying to triage this issue, I'm wondering how it is possible for reply to be NULL. Here is the code that sets reply: static size_t curlResult(void *ptr, size_t size, size_t nmemb, void *userdata) { char *p = (char *)ptr; wrkrInstanceData_t *pWrkrData = (wrkrInstanceData_t*) userdata; char *buf; size_t newlen; newlen = pWrkrData->replyLen + size*nmemb; if((buf = realloc(pWrkrData->reply, newlen + 1)) == NULL) { DBGPRINTF("omelasticsearch: realloc failed in curlResult\n"); return 0; /* abort due to failure */ } memcpy(buf+pWrkrData->replyLen, p, size*nmemb); pWrkrData->replyLen = newlen; pWrkrData->reply = buf; return size*nmemb; } I think OOM is the only way for reply == NULL? Can you confirm that you are seeing rsyslog OOM? If not, can you possibly shed some light into how it is possible for reply to be NULL? hmm - looking at the sosreport in the linked case - I don't see anything like an oomkill - but the problem is that it is rsyslog that writes to /var/log/messages, so if rsyslog is having problems, messages will not be written. Is it possible you could do some sort of scan using journalctl to look for memory or oom kill messages? Hi Anthony, could you please provide relevant rsyslog config snippet needed to reproduce the issue? Thanks Created attachment 1541851 [details]
patch
This patch uses option 1
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:1000 |