Closed GoogleCodeExporter closed 9 years ago
You're absolutely right! Our code to print a double-free warning got some
bitrot at
some point, and stopped working. We'll fix that up for the next release.
Original comment by csilv...@gmail.com
on 16 Nov 2009 at 7:24
Does this impact the free() function of tcmalloc_debug, that is double free()?
Original comment by JassenM@gmail.com
on 17 Nov 2009 at 4:37
Yes, free() and delete are the same internally. In both cases, a double-free
will
crash, rather than print an error message and *then* crash. So the
functionality
isn't broken, just the reporting.
Original comment by csilv...@gmail.com
on 17 Nov 2009 at 4:47
Can you please point me to the location of the tcmalloc code and the change that
needs to be made so I can patch this myself?
Original comment by JassenM@gmail.com
on 17 Nov 2009 at 4:48
What kind of change are you looking for? Do you want to make it so that the
code
doesn't crash on double-free? Or do you just really need it to be printing the
error
message before it crashes? You sound pretty bothered by what is, in reality, a
pretty minor bug, so I want to make sure I understand what change you're
looking for.
The file in question is src/debugallocation.cc. The fix isn't entirely
trivial, but
as soon as it's reviewed I'll be checking it in to the svn repository.
Original comment by csilv...@gmail.com
on 17 Nov 2009 at 6:29
This should be fixed in perftools 1.5, just released.
Original comment by csilv...@gmail.com
on 20 Jan 2010 at 11:08
Original issue reported on code.google.com by
nkie...@gmail.com
on 16 Nov 2009 at 5:07