This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1352465 - Python PMAPI pmWhichZone crashes Python
Python PMAPI pmWhichZone crashes Python
Status: MODIFIED
Product: Fedora
Classification: Fedora
Component: pcp (Show other bugs)
27
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: pcp-maint
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-04 04:40 EDT by Marko Myllynen
Modified: 2017-10-02 00:16 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marko Myllynen 2016-07-04 04:40:44 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 ***
[...]
Comment 1 Fedora End Of Life 2017-07-25 17:34:05 EDT
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.
Comment 2 Jan Kurik 2017-08-15 04:29:42 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.
Comment 3 Nathan Scott 2017-10-02 00:16:31 EDT
Marko fixed this in upstream PCP commit 2d772a0798d985, will be in pcp-3.12.2

Note You need to log in before you can comment on or make changes to this bug.