提问人:Endorel 提问时间:1/30/2023 最后编辑:Endorel 更新时间:1/30/2023 访问量:127
gperftools 中的 tcmalloc 使程序崩溃
tcmalloc in gperftools crash the programm
问:
连接 conan-package gperftools 有时会导致此核心转储。 tcmalloc 动态链接到 gperftools 和 gperftools 动态链接到项目。 似乎是分配问题。有谁知道为什么会这样?
#0 0x00007f8f087ec532 in abort () from fakeroot/lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f8f05ece6dc in tcmalloc::Log(tcmalloc::LogMode, char const*, int, tcmalloc::LogItem, tcmalloc::LogItem, tcmalloc::LogItem, tcmalloc::LogItem) ()
from fakeroot/usr/lib/conan/libtcmalloc.so.4
#2 0x00007f8f05ec20c1 in (anonymous namespace)::InvalidFree(void*) () from fakeroot/usr/lib/conan/libtcmalloc.so.4
#3 0x00007f8f02a3b93a in j2pb::Serializer::json2field(google::protobuf::Message&, google::protobuf::FieldDescriptor const*, json_t*, j2pb::Options const&) const ()
from fakeroot/usr/lib/conan/libjson2pb.so.1
#4 0x00007f8f02a3c4a8 in j2pb::Serializer::jsonArrayOrField2field(google::protobuf::Message&, google::protobuf::FieldDescriptor const*, json_t*, j2pb::Options const&) const ()
from fakeroot/usr/lib/conan/libjson2pb.so.1
#5 0x00007f8f02a3c6ef in j2pb::Serializer::json2pb(google::protobuf::Message&, json_t*, j2pb::Options const&) const () from fakeroot/usr/lib/conan/libjson2pb.so.1
#6 0x00007f8f02a3b8ba in j2pb::Serializer::json2field(google::protobuf::Message&, google::protobuf::FieldDescriptor const*, json_t*, j2pb::Options const&) const ()
from fakeroot/usr/lib/conan/libjson2pb.so.1
#7 0x00007f8f02a3c4a8 in j2pb::Serializer::jsonArrayOrField2field(google::protobuf::Message&, google::protobuf::FieldDescriptor const*, json_t*, j2pb::Options const&) const ()
from fakeroot/usr/lib/conan/libjson2pb.so.1
#8 0x00007f8f02a3c6ef in j2pb::Serializer::json2pb(google::protobuf::Message&, json_t*, j2pb::Options const&) const () from fakeroot/usr/lib/conan/libjson2pb.so.1
#9 0x00007f8f02a3cba0 in j2pb::Serializer::toProtobuf(char const*, unsigned long, google::protobuf::Message&, j2pb::Options const&) () from fakeroot/usr/lib/conan/libjson2pb.so.1
#10 0x00007f8f0630329c in utils::toProtobuf (serializer=...,
即使我不使用分析功能,问题也仅在链接 gperftools 库后出现。
答: 暂无答案
评论