Closed GoogleCodeExporter closed 9 years ago
Thanks for reporting it. It looks like on ubuntu your code that
doesn't call malloc/new from main.cpp is causing linked not to link
libtcmalloc.so to ./a.out. I.e. you can see it by doing ldd ./a.out.
It is not how it's supposed to work (and not how it works on my debian
box either).
As a result of this tcmalloc is loaded together with your shared
object which is too late and not supported.
You can work around this "initiative" (which is as usual, clearly,
result of good intentions) by adding -Wl,--no-as-needed before
-ltcmalloc when you build your main executable.
Marking as "wont fix" since it's not our fault here. I think. Feel free to
reopen if you have arguments against this.
Original comment by alkondratenko
on 2 Jul 2015 at 7:05
Original issue reported on code.google.com by
Dima00...@gmail.com
on 1 Jul 2015 at 7:06Attachments: