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.

Bug 730615

Summary: avoid crash on process attach
Product: Red Hat Enterprise Linux 6 Reporter: Alex Jia <ajia>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: dyuan, mzhan, rwu, veillard
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.9.4-3.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 11:26:38 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:
Attachments:
Description Flags
Null pointer passed as an argument to a 'nonnull' parameter none

Description Alex Jia 2011-08-15 05:49:36 UTC
Description of problem:
qemuProcessStart always calls qemuProcessWaitForMonitor with a non-negative position, but qemuProcessAttach always calls with -1. In the latter case, there is no log file libvirt can scrape.

Version-Release number of selected component (if applicable):
libvirt upstream

How reproducible:
always

Steps to Reproduce:
1. Detected by ccc-analyzer
2.
3.
  
Actual results:


Expected results:
fix it

Additional info:

Comment 1 Daniel Veillard 2011-08-15 05:51:29 UTC
Upstream commit 5ef1b6c54a43112338db7192fa32921bcf7aca81

Daniel

Comment 3 Alex Jia 2011-08-16 06:27:00 UTC
Created attachment 518407 [details]
Null pointer passed as an argument to a 'nonnull' parameter

ccc-analyzer test report for libvirt upstream (2011-08-04).

Comment 4 Alex Jia 2011-08-16 06:34:20 UTC
libvirt - scan-build results
User:	root
Working Directory:	/root/libvirt
Command Line:	make
Date:	Thu Aug 4 14:28:16 2011
Version:	checker-257 (2011-05-25 09:09:08)
Bug Summary

Results in this analysis run are based on analyzer build checker-257.
Bug Type	                                Quantity	Display?
All Bugs	                                37	
                          API	
Argument with 'nonnull' attribute passed null	1	
                       Dead code	
Idempotent operation	                        12	
                       Dead store	
Dead assignment	                                9	
                       Logic error	
Dereference of null pointer	                15	

Reports
Bug Group 	Bug Type ▾ 	File 	Line 	Path Length 	
API	Argument with 'nonnull' attribute passed null	src /qemu /qemu_process.c	1220	5	View Report

Comment 5 Alex Jia 2011-08-16 06:37:57 UTC
libvirt - scan-build results
User:	root
Working Directory:	/root/libvirt
Command Line:	make
Date:	Mon Aug 15 13:09:59 2011
Version:	checker-257 (2011-05-25 09:09:08)
Bug Summary

Results in this analysis run are based on analyzer build checker-257.
Bug Type	                         Quantity	Display?
All Bugs	                         32	
                       Dead code	
Idempotent operation	                 12	
                       Dead store	
Dead assignment	                         5	
                       Logic error	
Dereference of null pointer	         14	
                       Unix API	
Undefined allocation of 0 bytes	         1

Comment 6 Alex Jia 2011-08-16 06:43:54 UTC
I haven't seen "Argument with 'nonnull' attribute passed null" bug(please see Comment 4 or attachment of Comment 3) in test report of ccc-analyzer again(please see Comment 5), so change the bug to VERIFIED status.

BTW, the above scan-build results base on libvirt upstream(one is Aug 4, the other is Aug 15).


Alex

Comment 7 errata-xmlrpc 2011-12-06 11:26:38 UTC
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-2011-1513.html