]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
backtrace: fix segfault in tcmalloc.
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 19 Aug 2010 19:01:11 +0000 (12:01 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 19 Aug 2010 22:33:54 +0000 (15:33 -0700)
commitb18ee3721c22f4ba973bd5e5747a2958ada00d66
tree80032d82fd9c4e1733df168c811d87d0f53433ce
parent0d5829e03baf5102e84cdc62612802008a2f7a48
backtrace: fix segfault in tcmalloc.
The print function is only called when we're about to crash anyway,
and the datamember 'foo' is allocated by ptmalloc, not tcmalloc. Freeing
it via tcmalloc causes its own crash which pollutes our debugging and
incorrectly sticks tcmalloc into the stack. So, just don't free.
src/common/BackTrace.cc