Bug 247734

Summary: Hald does not free memory when unplug/replugging a usb device.
Product: Red Hat Enterprise Linux 4 Reporter: Wade Mealing <wmealing>
Component: halAssignee: David Zeuthen <davidz>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.5CC: jplans, mclasen, tao
Target Milestone: ---Keywords: OtherQA
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0801 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-15 16:06:56 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
Patch fixing the problem. Tested and confirmed by customer. none

Description Wade Mealing 2007-07-11 05:20:24 UTC
Description of problem:

When unplugging and replugging a USB device the size of the process hald grows
as the xml data is not free'd.

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

rhel-i386-as-4
hal-0.4.2-6.EL4-i386

How reproducible:

Every time.

Steps to Reproduce:
1. Plug usb disk into machine
2. Unplug usb disk from machine
3. Plug usb disk into machine
  
Actual results:

Hald process space grows in size.

Expected results:

Hald to not grow in size.

Additional info:

There seems to be a bug in processing fdi files that has been fixed upstream,
customer has applied said patch and told that it has been fixed.  

For more information check out IT 124713.

http://webcvs.freedesktop.org/hal/hal/hald/device_info.c?r1=1.16.2.1&r2=1.16.2.2&pathrev=hal-0_4-stable-branch

Comment 2 RHEL Program Management 2007-07-23 10:54:51 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 3 Jose Plans 2007-07-23 11:12:43 UTC
Created attachment 159774 [details]
Patch fixing the problem. Tested and confirmed by customer.

Comment 15 errata-xmlrpc 2007-11-15 16:06:56 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0801.html