Closed Bug 260900 Opened 21 years ago Closed 21 years ago

Memory leak happens when mozilla runs.

Categories

(Core :: XPConnect, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: andrew.tong, Assigned: dbradley)

Details

Attachments

(1 obsolete file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040917 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040917 I have used valgrind2.2.0 to detect memory leaks in mozilla and found this problem. Reproducible: Always Steps to Reproduce: 1.run mozilla under valgrind2.2.0, while set "--tool=memcheck" in valgrind. 2.read the report supplied by valgrind. 3.run mozilla under gdb. Actual Results: memory leak
So what leaks, exactly?
And keep in mind there are a number of one time leaks that due to our current shutdown situation can't be addressed.
Attached patch free the memory (obsolete) — Splinter Review
per http://www.mozilla.org/js/spidermonkey/apidoc/gen/api-JS_GetStringBytes.html the result of JS_GetStringBytes should not be free'd. this patch seems to be wrong.
Whiteboard: INVALIDATEME
The patch is invalid, as biesi said. The bug as written is invalid, too -- no evidence, no acknowledgement of tool pointer-tracing limitations, and no acknowledgement of existing bugs on shutdown leaks. /be
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Comment on attachment 160216 [details] [diff] [review] free the memory Can you review this patch, please?
Attachment #160216 - Flags: review?(shaver)
Comment on attachment 160216 [details] [diff] [review] free the memory Sorry, no. Please see biesi and brendan's comments. (I guess I _am_ reviewing this patch, though.)
Attachment #160216 - Attachment is obsolete: true
Attachment #160216 - Flags: review?(shaver) → review-
Status: RESOLVED → VERIFIED
Whiteboard: INVALIDATEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: