Closed GoogleCodeExporter closed 9 years ago
You should print out the address that is allocated by your malloc. My first
guess is
it's not 0x101001600, but rather tcmalloc is trying to free some memory that os
x
allocated before libtcmalloc got loaded in. (I don't know how
DYLD_INSERT_LIBRARIES
works.)
My second guess is this is somehow related to issue 84. But I don't really
understand os x library managements well enough to be able to tell whether
these two
issues are related or not.
It may be that DYLD_INSERT_LIBRARIES doesn't work on os x. Or alternately,
you'll
need to patch tcmalloc.cc the same way we do for windows, in
src/windows/patch_functions.cc, to call the libc free (I don't know how to do
that in
os x, but in gnu libc systems it would be via __libc_free, I think), if the
tcmalloc
free fails in this way. But that's a lot of work, and possibly fragile.
Original comment by csilv...@gmail.com
on 22 Jan 2010 at 6:22
Any more word on this?
Original comment by csilv...@gmail.com
on 10 Mar 2010 at 6:56
Looking over this bug report again, I just now realized that the actual
tcmalloc error is reported when you're trying to run gcc, not when you're
trying to run your test program.
It's very hard to tell what might be going on. gcc might be running as a
wrapper, or using dlopen, or doing any number of things that makes the
ld-preload technique not work.
I'm going to close this WontFix, since I suspect that you are trying to use
tcmalloc with your test program, not with gcc. If you really want tcmalloc
with gcc, I think the best way would be to recompile it from source.
Original comment by csilv...@gmail.com
on 7 Jun 2010 at 11:02
Original issue reported on code.google.com by
udisha...@gmail.com
on 21 Jan 2010 at 12:20