Red Hat Bugzilla – Bug 1352465
Python PMAPI pmWhichZone crashes Python
Last modified: 2017-10-02 00:16:31 EDT
Description of problem: $ cat ./test.py #!/usr/bin/env python import sys from pcp import pmapi options = pmapi.pmOptions("h:z") options.pmSetLongOptionHost() options.pmSetLongOptionHostZone() ctx = pmapi.pmContext.fromOptions(options, sys.argv) print(ctx.pmWhichZone()) print(ctx.pmWhichZone()) $ python ./test.py Traceback (most recent call last): File "./test.py", line 11, in <module> print(ctx.pmWhichZone()) File ".../site-packages/pcp/pmapi.py", line 1735, in pmWhichZone raise pmErr(status) pcp.pmapi.pmErr: Operation not permitted $ python ./test.py -h localhost -z EEST-3 *** Error in `python': double free or corruption (fasttop): 0x000000000080f460 *** [...]
This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle. Changing version to '27'.
Marko fixed this in upstream PCP commit 2d772a0798d985, will be in pcp-3.12.2