Tracking bug for static code analysis fixes. (LU-2753)

[LU-1884] Coverity: Fix 'resource leak' errors Created: 11/Sep/12  Updated: 30/Aug/23  Resolved: 28/Sep/12

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0, Lustre 2.1.3
Fix Version/s: Lustre 2.3.0, Lustre 2.4.0

Type: Technical task Priority: Major
Reporter: Sebastien Buisson (Inactive) Assignee: Bob Glossman (Inactive)
Resolution: Fixed Votes: 0
Labels: build, coverity

Issue Links:
Related
is related to LU-2644 Fix 'resource leak' errors Resolved
is related to LU-17000 Coverity static analysis issues Open
Rank (Obsolete): 4437

 Description   

Thanks to the Coverity tool, we found some resource leak errors in the Lustre code. This is typically what happens when a function forgets to free some allocated memory or close some file descriptor while returning in case of error.

I will propose a patch to address the issues.



 Comments   
Comment by Sebastien Buisson (Inactive) [ 11/Sep/12 ]

The patch is available here:

http://review.whamcloud.com/3934

Could you please review it?

Comment by Peter Jones [ 11/Sep/12 ]

Thanks Sebastien. Bob, another one to take care of - thanks!

Comment by Jodi Levi (Inactive) [ 28/Sep/12 ]

Please let me know if this ticket needs to be reopened.

Comment by Sebastien Buisson (Inactive) [ 18/Jan/13 ]

Hi,
I would like to reopen this ticket, as Coverity has found new 'resource leak' errors in more recent code (2.3.58).

Comment by Sebastien Buisson (Inactive) [ 18/Jan/13 ]

I have posted a new patch:
http://review.whamcloud.com/5128

TIA,
Sebastien.

Comment by Peter Jones [ 18/Jan/13 ]

Rather than reopen this ticket it would be better to open a new ticket to track the changes needed in more recent code.

Comment by Sebastien Buisson (Inactive) [ 18/Jan/13 ]

By opening a new ticket, I was afraid that all changes related to this 'resource leak' thing were spread among various tickets, hence making it difficult to track.

Comment by Peter Jones [ 18/Jan/13 ]

Yes but we can link tickets together and avoid possible support confusion. The original reported issue was fixed in 2.3. Reopening this ticket in relation to code landed after 2.3 might suggest otherwise.

Comment by Sebastien Buisson (Inactive) [ 18/Jan/13 ]

All right.
I have abandoned the modifications at http://review.whamcloud.com/5128, and I have opened a new ticket, LU-2644. Can you please make a link between these two Jiras?

Generated at Sat Feb 10 01:20:32 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.