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:
perf hang during report data collected by "perf kvm --guest record -p $qemu_pid"
Version-Release number of selected component (if applicable):
perf-2.6.32-251.el6.x86_64
kernel-2.6.32-251.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
1. boot a qemu-kvm guest
2. get the qemu_pid by "ps -C qemu-kvm"
3. perf kvm --guest record -p $qemu_pid
4. ctrl+c to finish the collecting
5. perf report -i perf.data.guest ## that file generated by perf record
Actual results:
perf hangs, ctrl+c unable to end the process, can be killed by "kill $perf_pid"
Expected results:
perf report works well, not hang.
Additional info:
perf report -i perf.data.host ## works well
## where the file generated by "perf kvm --host record -p qemu_pid"
Host info:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
cmd to boot guest:
qemu-kvm -S -monitor stdio -chardev socket,id=serial_id_20120322-155424-HidE,path=/tmp/serial-20120322-155424-HidE,server,nowait -device isa-serial,chardev=serial_id_20120322-155424-HidE -device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=0x4 -drive file=/home/cpu_host.qcow2,index=0,if=none,id=drive-virtio-disk1,media=disk,cache=none,boot=off,snapshot=off,readonly=off,format=qcow2,aio=native -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 -device virtio-net-pci,netdev=idCcvK9c,mac=9a:20:d9:0d:c9:0a,id=ndev00idCcvK9c,bus=pci.0,addr=0x3 -netdev tap,id=idCcvK9c,vhost=on -m 4G -smp 4,cores=2,threads=1,sockets=2 -device usb-tablet,id=usb-tablet1,bus=usb1.0 -spice port=8010,disable-ticketing -vga qxl -rtc base=utc,clock=host,driftfix=slew -M rhel6.3.0 -boot order=cdn,once=c,menu=off -no-kvm-pit-reinjection -enable-kvm -cpu host
gdb -p perf_pid ## during perf hangs
#0 0x00000036d8ae40fa in mmap64 () at ../sysdeps/unix/syscall-template.S:82
#1 0x0000000000454f4a in __perf_session__process_events (session=0x2a35890,
data_offset=<value optimized out>, data_size=<value optimized out>, file_size=312, tool=
0x7fff65a6bc80) at util/session.c:1108
#2 0x000000000041a19c in __cmd_report (argc=0, argv=<value optimized out>,
prefix=<value optimized out>) at builtin-report.c:281
#3 cmd_report (argc=0, argv=<value optimized out>, prefix=<value optimized out>)
at builtin-report.c:599
#4 0x000000000040ef33 in run_builtin (p=0x6a6288, argc=3, argv=0x7fff65a6c170) at perf.c:273
#5 0x000000000040fa4b in handle_internal_command (argc=3, argv=0x7fff65a6c170) at perf.c:344
#6 run_argv (argc=3, argv=0x7fff65a6c170) at perf.c:388
#7 main (argc=3, argv=0x7fff65a6c170) at perf.c:486
dmesg shows:
perf[5006]: segfault at 40 ip 000000000045617d sp 00007fff03fda020 error 4 in perf[400000+a5000]
Comment 3RHEL Program Management
2012-05-04 04:04:13 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.
Description of problem: perf hang during report data collected by "perf kvm --guest record -p $qemu_pid" Version-Release number of selected component (if applicable): perf-2.6.32-251.el6.x86_64 kernel-2.6.32-251.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. boot a qemu-kvm guest 2. get the qemu_pid by "ps -C qemu-kvm" 3. perf kvm --guest record -p $qemu_pid 4. ctrl+c to finish the collecting 5. perf report -i perf.data.guest ## that file generated by perf record Actual results: perf hangs, ctrl+c unable to end the process, can be killed by "kill $perf_pid" Expected results: perf report works well, not hang. Additional info: perf report -i perf.data.host ## works well ## where the file generated by "perf kvm --host record -p qemu_pid" Host info: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz cmd to boot guest: qemu-kvm -S -monitor stdio -chardev socket,id=serial_id_20120322-155424-HidE,path=/tmp/serial-20120322-155424-HidE,server,nowait -device isa-serial,chardev=serial_id_20120322-155424-HidE -device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=0x4 -drive file=/home/cpu_host.qcow2,index=0,if=none,id=drive-virtio-disk1,media=disk,cache=none,boot=off,snapshot=off,readonly=off,format=qcow2,aio=native -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 -device virtio-net-pci,netdev=idCcvK9c,mac=9a:20:d9:0d:c9:0a,id=ndev00idCcvK9c,bus=pci.0,addr=0x3 -netdev tap,id=idCcvK9c,vhost=on -m 4G -smp 4,cores=2,threads=1,sockets=2 -device usb-tablet,id=usb-tablet1,bus=usb1.0 -spice port=8010,disable-ticketing -vga qxl -rtc base=utc,clock=host,driftfix=slew -M rhel6.3.0 -boot order=cdn,once=c,menu=off -no-kvm-pit-reinjection -enable-kvm -cpu host gdb -p perf_pid ## during perf hangs #0 0x00000036d8ae40fa in mmap64 () at ../sysdeps/unix/syscall-template.S:82 #1 0x0000000000454f4a in __perf_session__process_events (session=0x2a35890, data_offset=<value optimized out>, data_size=<value optimized out>, file_size=312, tool= 0x7fff65a6bc80) at util/session.c:1108 #2 0x000000000041a19c in __cmd_report (argc=0, argv=<value optimized out>, prefix=<value optimized out>) at builtin-report.c:281 #3 cmd_report (argc=0, argv=<value optimized out>, prefix=<value optimized out>) at builtin-report.c:599 #4 0x000000000040ef33 in run_builtin (p=0x6a6288, argc=3, argv=0x7fff65a6c170) at perf.c:273 #5 0x000000000040fa4b in handle_internal_command (argc=3, argv=0x7fff65a6c170) at perf.c:344 #6 run_argv (argc=3, argv=0x7fff65a6c170) at perf.c:388 #7 main (argc=3, argv=0x7fff65a6c170) at perf.c:486