Bug 425940

Summary: Incorrect use of oprofile can turn guest into zombie
Product: Red Hat Enterprise Linux 5 Reporter: Markus Armbruster <armbru>
Component: kernel-xenAssignee: Markus Armbruster <armbru>
Status: CLOSED WONTFIX QA Contact: Martin Jenner <mjenner>
Severity: low Docs Contact:
Priority: low    
Version: 5.1CC: clalance, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-22 12:32:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Markus Armbruster 2007-12-17 10:35:09 UTC
Description of problem:
After certain incorrect uses of oprofile, the guest turns into a zombie on shutdown.

Version-Release number of selected component (if applicable):
Observed with oprofile-0.9.2-6.el5 and kernel-xen-2.6.18-58.el5 (both host and

How reproducible:

Steps to Reproduce:
0. Reboot host and guest (guest domid is 1)
1. In the host: opcontrol --start-daemon --no-vmlinux --xen=none --active-domains=1
2. In the guest: opcontrol --start-daemon --no-vmlinux --xen=none
3. In the host: opcontrol --start
4. In the guest: opcontrol --start; opcontrol --shutdown
5. In the host: virsh shutdown 1

Actual results:
Step 5 turns the guest into a zombie.

Expected results:
Guest shuts down cleanly.

Additional info:
Hypervisor gripes in step 4:
(XEN) xenoprof: operation 11 failed for dom 1 (status : -1)
Other than that, nothing unusual in the logs.

Steps 1 to 4 start profiling in the host before it's started in the guest. 
That's incorrect use of Xenoprof.