Bug 918472
Summary: | [abrt] qemu-kvm-0.12.1.2-2.355.el6: getnameinfo: Process /usr/libexec/qemu-kvm was killed by signal 11 (SIGSEGV) | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | David Jaša <djasa> | ||||||||||||||||||||||
Component: | spice-server | Assignee: | Uri Lublin <uril> | ||||||||||||||||||||||
Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> | ||||||||||||||||||||||
Severity: | low | Docs Contact: | |||||||||||||||||||||||
Priority: | unspecified | ||||||||||||||||||||||||
Version: | 6.4 | CC: | acathrow, bsarathy, cfergeau, dblechte, juzhang, mkenneth, psimerda, pvine, virt-maint | ||||||||||||||||||||||
Target Milestone: | rc | ||||||||||||||||||||||||
Target Release: | --- | ||||||||||||||||||||||||
Hardware: | x86_64 | ||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||
Whiteboard: | abrt_hash:1f8c444b3744c7a7d3c986aa531d71067416280a | ||||||||||||||||||||||||
Fixed In Version: | spice-server-0.12.3-1.el6 | Doc Type: | Bug Fix | ||||||||||||||||||||||
Doc Text: |
Cause:
As part of initialization, spice server calls getaddrinfo(), so it can listen on socket(s) as provided in qemu-kvm command line.
When getaddrinfo failed (e.g. due to a "bad" addr= option), only a warning was issued.
Consequence:
Spice initialization (reds_init_socket) continued
and a call to getnameinfo() with bad parameters
resulted in a segfault.
Fix:
When getaddrinfo() fails, spice fails reds_init_socket
Result:
Upon bad network params (such as "addr") option, spice fails it's initialization and does not segfault.
|
Story Points: | --- | ||||||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||||||
Last Closed: | 2013-11-21 07:39:52 UTC | Type: | --- | ||||||||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||
Embargoed: | |||||||||||||||||||||||||
Bug Depends On: | 952671 | ||||||||||||||||||||||||
Bug Blocks: | |||||||||||||||||||||||||
Attachments: |
|
Description
David Jaša
2013-03-06 10:27:02 UTC
Created attachment 705857 [details]
File: maps
Created attachment 705858 [details]
File: var_log_messages
Created attachment 705859 [details]
File: open_fds
Created attachment 705860 [details]
File: environ
Created attachment 705861 [details]
File: dso_list
Created attachment 705862 [details]
File: sosreport.tar.xz
Created attachment 705864 [details]
File: backtrace
Created attachment 705865 [details]
File: build_ids
Created attachment 705866 [details]
File: limits
Created attachment 705867 [details]
File: cgroup
I don't think spice should use getnameinfo() during initialization. Is there a valid reason for that? For any input from the user (including configuration), getaddrinfo() should be used to gather the necessary data. During the initialization of a service, the only binary addressing data I could think of would come from the kernel through netlink. But these should rarely be used for any reverse lookup. This is probably fixed by http://cgit.freedesktop.org/spice/spice/commit/?id=5a31221252b Pavel, see http://cgit.freedesktop.org/~teuf/spice/commit/?id=79c3a97 for some kind of explanations on the getnameinfo() call (summary: there is such a call in the post-getaddrinfo() loop, but its result is unused) 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. http://rhn.redhat.com/errata/RHBA-2013-1571.html |