Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Segmentation fault when run some virt-admin help srv* cmd.
Version-Release number of selected component (if applicable):
libvirt-admin-3.9.0-9.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.install libvirt-admin pkg
2.# virt-admin help srv-clients-set
NAME
srv-clients-set - (null)
SYNOPSIS
srv-clients-set
Segmentation fault (core dumped)
same with cmd srv-threadpool-set,srv-clients-info,srv-threadpool-info,srv-clients-list
actually srv-* cmd removed in help contents.
Monitoring commands (help keyword 'monitor'):
server-list list available servers on a daemon
server-threadpool-info get server workerpool parameters
client-list list clients connected to <server>
client-info retrieve client's identity info from server
server-clients-info get server's client-related configuration limits
Management commands (help keyword 'management'):
server-threadpool-set set server workerpool parameters
client-disconnect force disconnect a client from the given server
server-clients-set set server's client-related configuration limits
daemon-log-filters fetch or set the currently defined set of logging filters on daemon
daemon-log-outputs fetch or set the currently defined set of logging outputs on daemon
Actual results:
Expected results:
if virt-admin use server* instead of srv*, we hope no Segmentation fault and
error msg like this:
error: command or command group 'srv*' doesn't exist
Additional info:
Fixed upstream by:
commit 23594ccda9d0813c1b019db7348d9e93f20bb884
Refs: v4.0.0-26-g23594ccda
Author: Erik Skultety <eskultet>
AuthorDate: Thu Jan 25 16:13:37 2018 +0100
Commit: Erik Skultety <eskultet>
CommitDate: Thu Jan 25 16:20:27 2018 +0100
vsh: Cmd aliases lookups should return results for the aliased command
Unfortunately, we have a number of aliases in virsh and even though
these are not visible any more, we have to support them. The problem is
that when trying to print help for the alias, we get SIGSEGV because
there isn't any @def structure anymore and we need to query the command
being aliased instead.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1538570
Signed-off-by: Erik Skultety <eskultet>
Verify this bug with:
libvirt-4.4.0-2.el7.x86_64
steps:
1. print help for virsh cmd alias
# virsh help nodedev-dettach
NAME
nodedev-detach - detach node device from its device driver
SYNOPSIS
nodedev-detach <device> [--driver <string>]
......
2. print help for virt-admin cmd alias
# virt-admin help srv-list
NAME
server-list - list available servers on a daemon
SYNOPSIS
server-list
I also try to print help other cmd aliases of virt-admin, including srv-threadpool-info, srv-clients-info, srv-threadpool-set, srv-clients-set, all of them work well.
As the result matches with the expected result, mark the bug as verified.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2018:3113
Description of problem: Segmentation fault when run some virt-admin help srv* cmd. Version-Release number of selected component (if applicable): libvirt-admin-3.9.0-9.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.install libvirt-admin pkg 2.# virt-admin help srv-clients-set NAME srv-clients-set - (null) SYNOPSIS srv-clients-set Segmentation fault (core dumped) same with cmd srv-threadpool-set,srv-clients-info,srv-threadpool-info,srv-clients-list actually srv-* cmd removed in help contents. Monitoring commands (help keyword 'monitor'): server-list list available servers on a daemon server-threadpool-info get server workerpool parameters client-list list clients connected to <server> client-info retrieve client's identity info from server server-clients-info get server's client-related configuration limits Management commands (help keyword 'management'): server-threadpool-set set server workerpool parameters client-disconnect force disconnect a client from the given server server-clients-set set server's client-related configuration limits daemon-log-filters fetch or set the currently defined set of logging filters on daemon daemon-log-outputs fetch or set the currently defined set of logging outputs on daemon Actual results: Expected results: if virt-admin use server* instead of srv*, we hope no Segmentation fault and error msg like this: error: command or command group 'srv*' doesn't exist Additional info: