Logsys file leaks in /dev/shm after sigabrt, sigsegv and when running corosync -v
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
corosync (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Rafael David Tinoco |
Bug Description
[Impact]
* corosync has a memory leak problem with multiple calls to corosync -v
* corosync has a memory leak problem by not properly handling signals
[Test Case]
* run "corosync -v" multiple times
* some cloud tools do that
[Regression Potential]
* minor code changes on not-core code
* based on upstream changes
* based on a redhat fix
[Other Info]
# Original BUG Description
It was brought to my attention that Ubuntu also suffers from:
https:/
And corosync should include the following fixes:
----
commit dfaca4b10a00568
Author: Jan Friesse <email address hidden>
Date: Wed Jul 9 15:52:14 2014 +0200
Fix compiler warning introduced by previous patch
QB loop signal handler prototype differs from signal(2) prototype.
Solution is to create wrapper functions.
Signed-off-by: Jan Friesse <email address hidden>
commit 384760cb670836d
Author: zouyu <email address hidden>
Date: Thu Jul 3 10:56:02 2014 +0800
Handle SIGSEGV and SIGABRT signals
SIGSEGV and SIGABRT signals are now correctly handled (blackbox is
dumped and logsys is finalized).
Signed-off-by: zouyu <email address hidden>
Reviewed-by: Jan Friesse <email address hidden>
commit cc80c8567d6eec1
Author: zouyu <email address hidden>
Date: Wed Jul 2 10:00:53 2014 +0800
fix memory leak produced by 'corosync -v'
Signed-off-by: zouyu <email address hidden>
Reviewed-by: Jan Friesse <email address hidden>
----
Description from Red Hat bug:
"""
Description of problem:
When corosync receives sigabrt or sigsegv it doesn't delete libqb blackbox file (/dev/shm one). Same happens when corosync is executed with -v parameter (this shows only version, so it shouldn't cause leak in /dev/shm).
Version-Release number of selected component (if applicable):
7.0
How reproducible:
100%
Steps to Reproduce 1:
1. Start corosync
2. Send sigabrt to corosync
Steps to Reproduce 1:
1. Execute corosync -v
Actual results:
File like qb-corosync-
Expected results:
No leak
Additional info:
"""
Changed in corosync (Ubuntu): | |
status: | New → Confirmed |
assignee: | nobody → Rafael David Tinoco (inaddy) |
description: | updated |
Changed in corosync (Ubuntu): | |
importance: | Undecided → Medium |
Changed in corosync (Ubuntu Trusty): | |
importance: | Undecided → Medium |
https:/ /bugzilla. redhat. com/show_ bug.cgi? id=1117911