Open GoogleCodeExporter opened 9 years ago
Having debugged it for half a day I can now say that Firefox 3.5 is buggy:
reference
counting is off by one.
Here are the results of a small debugging patch and runs with different
browsers on
my Fedora 12 machine. During a test run, the browser was launched and then
immediately closed with CTRL+W (close tab) command.
I'll contact my Mac deveoper friend to verify if this bug is present in Safari
as
well or if it's a firefox specific quirk.
Anyway, I think we should look deeper into those Retain/Release logs to catch a
number of possible memory leaks.
Original comment by ant...@gmail.com
on 11 Feb 2010 at 3:34
Attachments:
I assume by now that you have found that the NPObjectAPI object does a Retain
and a
Release on shutdown.
I have heard report that the same thing was happening on Safari 64 bit; The
thing
is, if it happens on both Safari and Firefox, that makes it sound like there
could
actually be a problem with what we're doing, but I can't figure out what, since
it
does indeed seem like we're doing what we should.
Good work on this; let me know how I can help.
Original comment by taxilian
on 11 Feb 2010 at 4:34
See also issue 26; I think these are related. If it's a browser bug, though,
I'm not
sure how to fix it except to do a second retain on each one.
Original comment by taxilian
on 11 Feb 2010 at 8:02
[deleted comment]
Well it seems that issue 26 is not the same, at least double retain didn't make
the
crashes go away. I'll assume for now that the current issue is firefox specific
and
firefox code has a habit of checking if the reference counts is greater than
zero
before actually freeing the object so normal malloc sanity checks (built into
glibc
for instance) do not catch those reference counting bugs. I'll post a bug
report to
mozilla's bugtracker when I can allocate some free time for this :P
Original comment by ant...@gmail.com
on 15 Feb 2010 at 3:00
Can anyone reproduce this with the latest version? If someone can give me
instructions to reproduce it, I'll look into fixing it.
Original comment by taxilian
on 9 Sep 2010 at 2:06
I think this issue has probably been fixed, but I don't want to mark it so
until someone who has seen it can confirm that it is gone.
Original comment by taxilian
on 15 Sep 2010 at 7:22
Making a little headway; this issue, 22, and 69 are the same problem.
Original comment by taxilian
on 20 Sep 2010 at 3:57
Original issue reported on code.google.com by
ant...@gmail.com
on 11 Feb 2010 at 10:29