Closed
Bug 526309
Opened 15 years ago
Closed 6 years ago
Basic static analysis for memory leaks
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: taras.mozilla, Unassigned)
References
Details
Attachments
(2 obsolete files)
Ensure that following new/malloc a variable either escapes(therefore too much hassle to prove anything) or is free()ed.
hello.. I'm a student of SJCE,Mysore. I'd like to take up the
Bug 526309 Basic check for memory leak
Updated•15 years ago
|
Assignee: nobody → seema.ankadavar
Attachment #444296 -
Flags: feedback?
Comment 3•14 years ago
|
||
Comment on attachment 444296 [details] [diff] [review]
Script comparing dynamic allocations and deallcations.
- Marking the attachment as patch
- Including taras' name in the feedback request.
- Making the patch description concise.
Attachment #444296 -
Attachment description: This code puts dynamicaaly allocated variables in an araay and deallocated variables in another array. checks for any variable that is not deallocated comparing both arrays → Script comparing dynamic allocations and deallcations.
Attachment #444296 -
Attachment is patch: true
Attachment #444296 -
Attachment mime type: application/javascript → text/plain
Attachment #444296 -
Flags: feedback? → feedback?(tglek)
Attachment #444296 -
Attachment is obsolete: true
Attachment #444317 -
Flags: feedback?(tglek)
Attachment #444296 -
Flags: feedback?(tglek)
Reporter | ||
Comment 5•14 years ago
|
||
(In reply to comment #4)
> Created an attachment (id=444317) [details]
> This code checks for variable pointing to dynamically allocated memory block
looks promising, please run this on mozilla and post some results.
Reporter | ||
Comment 6•14 years ago
|
||
Comment on attachment 444317 [details] [diff] [review]
This code checks for variable pointing to dynamically allocated memory block
waiting on results
Attachment #444317 -
Flags: feedback?(tglek)
Updated•13 years ago
|
Whiteboard: [MemShrink]
Comment 7•13 years ago
|
||
Taras, I'm highly skeptical that the attached patch can produce anything useful. What do you think? Should we close this bug? There are other tools like cppcheck that statically detect leaks.
Updated•13 years ago
|
Summary: Basic check for memory leaks → Basic static analysis for memory leaks
Reporter | ||
Comment 8•13 years ago
|
||
Comment on attachment 444317 [details] [diff] [review]
This code checks for variable pointing to dynamically allocated memory block
This is a valid static analysis bug, this patch is not useful. This should not be part of memshrink.
Attachment #444317 -
Attachment is obsolete: true
Updated•13 years ago
|
Whiteboard: [MemShrink]
Updated•7 years ago
|
Product: Core → Firefox Build System
Comment 10•6 years ago
|
||
Taras isn't working at Mozilla anymore and I don't think there is anyone working on it!
Flags: needinfo?(taras.mozilla)
Updated•6 years ago
|
Assignee: seema.ankadavar → nobody
Comment 11•6 years ago
|
||
I no longer see the point of this bug since now we have Coverity Analysis that is going o be integrated at review phase. Sylvestre I propose that we should close it.
Flags: needinfo?(sledru)
Comment 12•6 years ago
|
||
Agreed, closing
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(sledru)
Resolution: --- → WONTFIX
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•