Bug 1011307
Summary: | corosync gives segmentation fault if /dev/shm is full | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Aarti Sawant <aartipsawant10> | ||||||
Component: | corosync | Assignee: | Jan Friesse <jfriesse> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 6.4 | CC: | ccaulfie, cluster-maint, fdinitto, jkortus | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | corosync-1.4.1-18.el6 | Doc Type: | Bug Fix | ||||||
Doc Text: |
Cause:
Corosync started on system with full /dev/shm
Consequence:
Corosync segfault
Fix:
Handle logsys (this is not typo. logsys = corosync logging system) initialization properly. If logsys cannot be initialized, display error (stderr/syslog) and exit with error code (EXIT_FAILURE).
Result:
Corosync doesn't segfault. Displays proper error message and exit gracefully.
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-10-14 07:11:35 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: | 1055584 | ||||||||
Bug Blocks: | 1005179 | ||||||||
Attachments: |
|
Description
Aarti Sawant
2013-09-24 04:28:40 UTC
Created attachment 802319 [details]
Proposed patch - Handle full /dev/shm correctly
If /dev/shm was full, corosync was segfaulting instead of display
error.
Also when logsys is not initialized, error message was displayed
only on stderr. This is not ok if corosync is running as service
and solution is to send error also to syslog.
Created attachment 802871 [details]
Proposed patch - Handle full /dev/shm correctly - take 2
Same as previous patch but exit code is < 128 (codes > 127 are reserved for signals)
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. http://rhn.redhat.com/errata/RHBA-2014-1508.html |