Bug 1787536
Summary: | Segment fault when low bandwidth migration with remote-viewer connected | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Han Han <hhan> | ||||
Component: | spice | Assignee: | Frediano Ziglio <fziglio> | ||||
Status: | CLOSED ERRATA | QA Contact: | SPICE QE bug list <spice-qe-bugs> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 8.2 | CC: | dblechte, dgilbert, fziglio, tpelka, uril, xuwei, xuzhang | ||||
Target Milestone: | rc | Keywords: | OtherQA | ||||
Target Release: | 8.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | spice-0.14.3-2.el8 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-11-04 04:07:31 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: | |||||||
Bug Depends On: | 1840240 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Han Han
2020-01-03 10:02:28 UTC
the package Han is using here is with a fix for bz 1752320: https://lists.gnu.org/archive/html/qemu-devel/2019-12/msg03792.html so shouldn't be related to this one. Han's scripts are a nice set of race-condition detection repeatedly migrating and repeatedly reconnecting the viewer. Is it possible to have a core dump? (In reply to Frediano Ziglio from comment #2) > Is it possible to have a core dump? I'm sorry that the coredump has been cleaned. I need some time to reproduce it again. You can refer to the all threads backtrace first Source code is: int main_channel_client_is_low_bandwidth(MainChannelClient *mcc) { // TODO: configurable? return mcc->priv->bitrate_per_sec < 10 * 1024 * 1024; } Which corresponds to: 35580: f3 0f 1e fa endbr64 35584: 48 8b 47 20 mov 0x20(%rdi),%rax 35588: 48 81 78 18 ff ff 9f cmpq $0x9fffff,0x18(%rax) <==== fault 3558f: 00 35590: 0f 96 c0 setbe %al 35593: 0f b6 c0 movzbl %al,%eax 35596: c3 retq the fault happened deferencing mcc->priv pointer. From stack trace looks like mcc pointer is valid but maybe pointing to dandling data. This could happen if MCC is freed before the entire session which was fixed in the code later, specifically the patch is commit 59be4f19c46cbeab0b8f405816b7bc4afe253187 Author: Frediano Ziglio <fziglio> Date: Thu Aug 24 21:43:18 2017 +0100 red-client: Make sure MainChannelClient is freed as last MainChannelClient is used by other clients to store some data so should not disappear if other clients are still present. Keep a owning reference to it and release after RedClient is released. Signed-off-by: Frediano Ziglio <fziglio> 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 (spice bug fix and enhancement update), 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/RHEA-2020:4818 |