Bug 1718948
Summary: | core dump when running pmchart with bogus timezone | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Frank Sorenson <fsorenso> | ||||
Component: | pcp | Assignee: | Nathan Scott <nathans> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 29 | CC: | lberk, mgoodwin, nathans | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | pcp-4.3.3-1 pcp-4.3.4-1.fc30 pcp-4.3.4-1.fc29 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2019-08-20 01:48:52 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: |
|
Thanks Frank, we'll fix this up in pcp-4.3.3 commit 8ee5d2be454b5bbab8b609d6227f4f95a3634eeb Author: Nathan Scott <nathans> Date: Tue Jun 11 14:28:20 2019 +1000 pmchart: fix handling of -z timezone option with no source Resolves Red Hat BZ 1718948. FEDORA-2019-4076c8c0d7 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-4076c8c0d7 FEDORA-2019-cdb6bafc6d has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-cdb6bafc6d pcp-4.3.3-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-4076c8c0d7 pcp-4.3.3-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-cdb6bafc6d FEDORA-2019-97183bed56 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-97183bed56 FEDORA-2019-44b383ec91 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-44b383ec91 pcp-4.3.4-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-97183bed56 pcp-4.3.4-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-44b383ec91 pcp-4.3.4-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report. pcp-4.3.4-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 1579072 [details] corefile Description of problem: running pmchart with a bogus/unrecognized timezone argument results in core dump Version-Release number of selected component (if applicable): pcp-4.3.2-1.fc29.x86_64 pcp-conf-4.3.2-1.fc29.x86_64 pcp-gui-4.3.2-1.fc29.x86_64 pcp-libs-4.3.2-1.fc29.x86_64 How reproducible: easy Steps to Reproduce: pmchart -z BOGUS_TZ -a foo Actual results: Error window says pmchart: Error: BOGUS_TZ: No such file or directory and core dumps when after error window is closed Expected results: no core dump Additional info: Stack trace of thread 503190: #0 0x000055cebafb2d84 QmcContext::useTZ() (pmchart) #1 0x000055cebafa3819 QmcGroup::useTZ() (pmchart) #2 0x000055cebaf2be1f main (pmchart) #3 0x00007f4f47515413 __libc_start_main (libc.so.6) #4 0x000055cebaf2c4de _start (pmchart) (gdb) bt #0 0x000055cebafb2d84 in QmcContext::useTZ() (this=0x0) at qmc_context.cpp:224 #1 0x000055cebafa3819 in QmcGroup::useTZ() () at /usr/include/qt5/QtCore/qlist.h:544 #2 0x000055cebaf2be1f in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at main.cpp:612 (gdb) list 219 } 220 221 int 222 QmcContext::useTZ() 223 { 224 if (my.source->tzHandle() >= 0) 225 return pmUseZone(my.source->tzHandle()); 226 return 0; 227 } 228 (gdb) p my Cannot access memory at address 0x0 (gdb) p &my $2 = (struct {...} *) 0x0