Bug 1585015
Summary: | machine_type_func() returns uninitialized local variable value on aarch64 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | huan.xiong | ||||
Component: | ganglia | Assignee: | Nick <nick> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | epel7 | CC: | jose.p.oliveira.oss, nick, tanakahda | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | aarch64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | ganglia-3.7.2-33.el7 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-10-23 22:50:45 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: | |||||||
Attachments: |
|
Description
huan.xiong
2018-06-01 07:03:17 UTC
Seems I messed up the attachment's file name, and I didn't find a way to change it. So I'll just paste the diff below. The fix uses the latest code from Ganglia upstream: $ cat ganglia-3.7.2-libmetric-linux.patch --- libmetrics/linux/metrics.c.orig 2018-06-01 14:56:37.690006517 +0800 +++ libmetrics/linux/metrics.c 2018-06-01 13:45:18.149298706 +0800 @@ -593,36 +593,30 @@ #ifdef __i386__ snprintf(val.str, MAX_G_STRING_SIZE, "x86"); -#endif -#ifdef __x86_64__ +#elif __x86_64__ snprintf(val.str, MAX_G_STRING_SIZE, "x86_64"); -#endif -#ifdef __ia64__ +#elif __ia64__ snprintf(val.str, MAX_G_STRING_SIZE, "ia64"); -#endif -#ifdef __sparc__ +#elif __sparc__ snprintf(val.str, MAX_G_STRING_SIZE, "sparc"); -#endif -#ifdef __alpha__ +#elif __alpha__ snprintf(val.str, MAX_G_STRING_SIZE, "alpha"); -#endif -#ifdef __powerpc__ +#elif __powerpc__ snprintf(val.str, MAX_G_STRING_SIZE, "powerpc"); -#endif -#ifdef __m68k__ +#elif __m68k__ snprintf(val.str, MAX_G_STRING_SIZE, "m68k"); -#endif -#ifdef __mips__ +#elif __mips__ snprintf(val.str, MAX_G_STRING_SIZE, "mips"); -#endif -#ifdef __arm__ +#elif __arm__ snprintf(val.str, MAX_G_STRING_SIZE, "arm"); -#endif -#ifdef __hppa__ +#elif __aarch64__ + snprintf(val.str, MAX_G_STRING_SIZE, "aarch64"); +#elif __hppa__ snprintf(val.str, MAX_G_STRING_SIZE, "hppa"); -#endif -#ifdef __s390__ +#elif __s390__ snprintf(val.str, MAX_G_STRING_SIZE, "s390"); +#else + snprintf(val.str, MAX_G_STRING_SIZE, "unknown"); #endif return val; Hello, I think we see this problem because a following commit is not applied to the EPEL Gangalia aarch64 rpm. https://github.com/ganglia/monitor-core/commit/fcf4c7c46a7f4bfbe845018ae5fc82a07269b444 The commit was merged into Ganglia master repo 4 years ago. However, Ganglia project does not create a new release this 5 years. Is it possible to apply this commit to EPEL Ganglia aarch64 rpm. Without this commit, gmond process does not work at all on aarch64 node. FEDORA-EPEL-2020-fee165c6a2 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-fee165c6a2 FEDORA-EPEL-2020-fee165c6a2 has been pushed to the Fedora EPEL 7 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-fee165c6a2 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2020-fee165c6a2 has been pushed to the Fedora EPEL 7 stable repository. If problem still persists, please make note of it in this bug report. |