| Summary: | corosync segfaults on normal exit (master branch) | ||
|---|---|---|---|
| Product: | [Retired] Corosync Cluster Engine | Reporter: | Fabio Massimo Di Nitto <fdinitto> |
| Component: | unknown | Assignee: | Angus Salkeld <asalkeld> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 1.4 | CC: | asalkeld, jfriesse, sdake |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-13 00:02:15 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Fabio Massimo Di Nitto
2011-12-12 11:22:39 UTC
I can't reproduce this on Fedora 16. rpm -q libqb libqb-0.7.0-1.fc16.x86_64 and on corosync branch topic-quorum-fabbione OK, valgrind pointed out to me.
I was using the wrong loop variable.
Submitted upstream.
diff --git a/exec/logsys.c b/exec/logsys.c
index 158bf1a..0a44454 100644
--- a/exec/logsys.c
+++ b/exec/logsys.c
@@ -249,7 +249,7 @@ void logsys_system_fini (void)
int f;
for (i = 0; i < LOGSYS_MAX_SUBSYS_COUNT; i++) {
free(logsys_loggers[i].logfile);
- for (f = 0; i < logsys_loggers[i].file_idx; f++) {
+ for (f = 0; f < logsys_loggers[i].file_idx; f++) {
free(logsys_loggers[i].files[f]);
}
}
|