You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error was encountered when using tcmalloc: external/com_google_tcmalloc/tcmalloc/sampler.cc:55] bytes_until_sample_ == 0 @ 0x7f6283a9d79b 0x7f6283a81d17 0x7f6283a81f99 0x7f6283a01dec 0x7f6283a03004 0x7f62839d581b 0x7f6283b28c30 0x7f62834ecd96 Aborted (core dumped)
A very simple method of reproduction
Compiled using the bazel environment:
WORKSPACE: git_repository( name = "com_google_tcmalloc", commit = "bb24fb0a8be3a6ef52888d247097d05976b8918e", remote = "https://github.com/google/tcmalloc.git", )
a.h: #include <thread> thread_local int16_t var = -1;
The following error was encountered when using tcmalloc:
external/com_google_tcmalloc/tcmalloc/sampler.cc:55] bytes_until_sample_ == 0 @ 0x7f6283a9d79b 0x7f6283a81d17 0x7f6283a81f99 0x7f6283a01dec 0x7f6283a03004 0x7f62839d581b 0x7f6283b28c30 0x7f62834ecd96 Aborted (core dumped)
A very simple method of reproduction
Compiled using the bazel environment:
WORKSPACE:
git_repository( name = "com_google_tcmalloc", commit = "bb24fb0a8be3a6ef52888d247097d05976b8918e", remote = "https://github.com/google/tcmalloc.git", )
a.h:
#include <thread> thread_local int16_t var = -1;
b.h:
#include "a.h" class TestClass { public: TestClass(); ~TestClass() {} };
b.cc:
#include "b.h" TestClass::TestClass() { var = 1; }
BUILD:
test.cc:
use
bazel build :libtest.so
andg++ -o test test.cc -pthread -L ./ -ltest
and './test' get this errorMay I ask if this is a bug or if there is a problem with my usage? I hope to receive your help.
Sincerely!
The text was updated successfully, but these errors were encountered: