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.
Bug 947785 - In rhel6.4 guest sound recorder doesn't work when playing audio
Summary: In rhel6.4 guest sound recorder doesn't work when playing audio
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-03 09:03 UTC by Qian Guo
Modified: 2014-06-18 03:24 UTC (History)
9 users (show)

Fixed In Version: qemu-kvm-1.5.3-38.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 11:17:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
The timer increase in mess (335.03 KB, image/png)
2013-11-06 09:48 UTC, Qian Guo
no flags Details

Description Qian Guo 2013-04-03 09:03:25 UTC
Description of problem:
Boot a guest in rhel7 host, in guest, when playing audio and recording sound at the same time, the sound recorder doesn't work and when try to close sound recorder, hit "gnome-sound-rec[2697]: segfault at 28 ip 000000000040aa73 sp 00007fff89074360 error 6 in gnome-sound-recorder[400000+10000]"

Version-Release number of selected component (if applicable):
host:
# uname -r
3.9.0-0.rc4.45.el7.x86_64
# rpm -q qemu-kvm
qemu-kvm-1.4.0-1.el7.x86_64

guest:
# rpm -q gnome-media-apps
gnome-media-apps-2.29.91-6.el6.x86_64
# rpm -q gnome-media
gnome-media-2.29.91-6.el6.x86_64
# rpm -qa |grep stream
PackageKit-gstreamer-plugin-0.5.8-21.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
gstreamer-plugins-base-0.10.29-2.el6.x86_64
gstreamer-python-0.10.16-1.1.el6.x86_64
gstreamer-plugins-bad-free-0.10.19-2.el6.x86_64
gstreamer-plugins-ugly-0.10.18-4.el6.x86_64
gstreamer-ffmpeg-0.10.11-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-25.el6.x86_64
# rpm -q rhythmbox
rhythmbox-0.12.8-1.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Boot a rhel6.4 guest w/ intel-hda and hda-duplex
# /usr/libexec/qemu-kvm -cpu Penryn -m 2G -smp 4,sockets=1,cores=4,threads=1 -M q35  -enable-kvm -name rhel -drive file=/home/rhel6u4x64/rhel6u4x64.qcow2,if=none,format=qcow2,werror=stop,rerror=stop,media=disk,id=drive-scsi0-disk0 -device virtio-scsi-pci,id=scsi0,addr=0x4 -device scsi-hd,scsi-id=0,lun=0,bus=scsi0.0,drive=drive-scsi0-disk0,id=virtio-disk0 -nodefconfig -monitor stdio -netdev tap,id=tap0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=tap0,mac=4e:71:42:c8:34:6d,id=vnic1 -spice port=5931,disable-ticketing,seamless-migration=on  -vga std -boot menu=on   -device  intel-hda,id=sound0 -device hda-duplex

2.Inside guest, launch Sound Recorder, and start to record
3.Inside guest, play mp3 audio file, use 'Totom Movie Player' or 'rhythmbox' 
  
Actual results:
Sound Recorder can not work, and when close it, from dmesg will see this:
# dmesg
gnome-sound-rec[2604]: segfault at 28 ip 000000000040aa73 sp 00007fff71eb8410 error 6 in gnome-sound-recorder[400000+10000]

Expected results:
Sound Recorder and audio playing can both work at the same time.

Additional info:

Comment 1 Qian Guo 2013-04-03 09:06:58 UTC
Addition info:
spice client, use remote-viewer:

# rpm -q virt-viewer
virt-viewer-0.5.4-2.el7.x86_64

# remote-viewer spice://$ip:$port

Comment 3 Qian Guo 2013-04-07 10:57:41 UTC
All rhel guests has this issue

Comment 4 Hai Huang 2013-04-11 20:10:54 UTC
Would you please re-test this with RHEL on a bare metal system.

In other words, if the RHEL7 system has the same issue when 
playing audio and recording at the same time, then this is 
not a problem specific to the RHEL guest.

Comment 5 Qian Guo 2013-04-12 08:06:54 UTC
Test in a RHEL6.4 bare metal system and RHEL6.4 guest (both are x64), 

In the guest, when playing music and recording, the sound recorder could not work(the record length stall or reach a big value)

In the bare metal system, sound recorder and audio playing are working well.


And about the segment fault, it happens both in bare metal system and guest, and whether playing audio not related w/ this.

Comment 6 Qian Guo 2013-04-12 08:22:16 UTC
(In reply to comment #5)
> Test in a RHEL6.4 bare metal system and RHEL6.4 guest (both are x64), 
> 
> In the guest, when playing music and recording, the sound recorder could not
> work(the record length stall or reach a big value)
> 
> In the bare metal system, sound recorder and audio playing are working well.
> 
> 
> And about the segment fault, it happens both in bare metal system and guest,
> and whether playing audio not related w/ this.

The components:
Both host and guest:
# uname -r
2.6.32-358.el6.x86_64

In host:
# lspci |grep Audio
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)

# lsmod |grep snd
snd_hda_codec_hdmi     26157  1 
snd_hda_codec_realtek    68136  1 
snd_hda_intel          27823  4 
snd_hda_codec         121518  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               6652  1 snd_hda_codec
snd_seq                55759  0 
snd_seq_device          6500  1 snd_seq
snd_pcm                86635  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer              22411  2 snd_seq,snd_pcm
snd                    69907  15 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore               7958  1 snd
snd_page_alloc          8470  2 snd_hda_intel,snd_pcm

In guest
# lspci |grep Audio
00:04.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 01)

# lsmod |grep snd
snd_hda_intel          27823  2 
snd_hda_codec         121518  1 snd_hda_intel
snd_hwdep               6652  1 snd_hda_codec
snd_seq                55759  0 
snd_seq_device          6500  1 snd_seq
snd_pcm                86635  2 snd_hda_intel,snd_hda_codec
snd_timer              22411  2 snd_seq,snd_pcm
snd                    69907  11 snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore               7958  1 snd
snd_page_alloc          8470  2 snd_hda_intel,snd_pcm

Comment 7 Gerd Hoffmann 2013-11-05 12:39:54 UTC
Doesn't reproduce (using rhel 6.5 beta guest, not rhel 6.4).
I suspect this might be a guest bug which has been fixed meanwhile.
Please retest.

Comment 8 Qian Guo 2013-11-06 09:46:30 UTC
(In reply to Gerd Hoffmann from comment #7)
> Doesn't reproduce (using rhel 6.5 beta guest, not rhel 6.4).
> I suspect this might be a guest bug which has been fixed meanwhile.
> Please retest.

Hi, Gerd

I hit the problem
Steps:
1.Start the sound recorder in guest(rhel6.5 I used)
then the sound recorder runs well, the recorder timer counts right, second by second.

2.Start to play music with the player, then the sound recorder time counts crasily, I will attach the screenshot in this bug.

Host components:

# uname -r
3.10.0-42.el7.x86_64
# rpm -q qemu-kvm-rhev
qemu-kvm-rhev-1.5.3-13.el7.x86_64

Guest components:
# uname -r
2.6.32-430.el6.x86_64

# rpm -qa |grep gnome-media
gnome-media-2.29.91-6.el6.x86_64
gnome-media-apps-2.29.91-6.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64

The gnome-media-apps (sound recorder) build is same as the reporter.

Comment 9 Qian Guo 2013-11-06 09:48:17 UTC
Created attachment 820263 [details]
The timer increase in mess

Comment 13 Gerd Hoffmann 2013-12-03 08:17:37 UTC
Fix is on the way upstream:
http://patchwork.ozlabs.org/patch/295851/

Comment 14 Gerd Hoffmann 2013-12-11 09:51:28 UTC
merged upstream, backport posted.

Comment 15 Miroslav Rezanina 2014-01-17 13:26:54 UTC
Fix included in qemu-kvm-1.5.3-38.el7

Comment 17 Qian Guo 2014-02-08 02:35:39 UTC
Reproduce this bug with qemu-kvm-1.5.3-13.el7.x86_64

Steps:
1.Boot a rhel6.4 guest:
# /usr/libexec/qemu-kvm -cpu Penryn -m 2G -smp 2,sockets=1,cores=2,threads=1 -M pc -enable-kvm -name testovs -rtc base=localtime,clock=host,driftfix=slew -drive file=/home/rhel6u4cp1.qcow2_v3,if=none,format=qcow2,werror=stop,rerror=stop,media=disk,id=drive-scsi0-disk0 -device virtio-scsi-pci,id=scsi0,addr=0x4 -device scsi-hd,scsi-id=0,lun=0,bus=scsi0.0,drive=drive-scsi0-disk0,id=virtio-disk0,bootindex=1 -nodefaults -nodefconfig -monitor stdio -netdev tap,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,mac=54:52:1a:11:0b:01 -device intel-hda,id=sound0 -device hda-duplex -spice port=5931,disable-ticketing,seamless-migration=on -vga std

2.Start the sound recorder in guest.
then the sound recorder runs well, the recorder timer counts right, second by second.

3.Start to play music with the player.
Result:the sound recorder time counts crasily.

So, according to above, this bug is reproduced

Verify this bug with qemu-kvm-1.5.3-45.el7.x86_64

Steps as above, result: both sound recorder and music player (rhythmbox-0.12.8-1.el6.x86_64) work well, so this bug is fixed by qemu-kvm-1.5.3-45.el7.x86_64 .

Comment 19 Ludek Smid 2014-06-13 11:17:03 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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