Skip to content

Hitting issue of large alloc which crashes application #3090

@yzhuang93

Description

@yzhuang93

Recently bumped up our OTEL CPP client version to 1.16.1 and also use STL instead of ABSEIL, but hit into this issue at run time:

tcmalloc: large alloc 139896905007104 bytes == (nil) @  0x7f3c4a43154c 0x7f3c426154b0 0x7f3c492c6db3 0x7f3c490c5dd4 0x7f3c48bb44b6 0x7f3c495180c8 0x7f3c49517616 0x7f3c4a30ab2e 0x7f3c4a302825 0x7f3c4a306295 0x7f3c41e6c7e5
libc++abi: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
*** Received signal: SIGABRT on thread 3663822 fault-address 0x3e80037e7ce fault-code -6 @ 1728527647 (unix time) try "date -d @1728527647" ***
#0    Object "/lib64/libc.so.6", at 0x7f3c41e8052f, in gsignal
#1    Object "/lib64/libc.so.6", at 0x7f3c41e53e64, in abort
#2    Source "/home/build/rpmbuild.tmpWLNW9Q/BUILD/cross-el8.5-x86_64-clang-runtime-13.0.1-13.0.1/llvm-project-13.0.1.src/libcxxabi/src/abort_message.cpp", line 78, in abort_message(char *format) [0x7f3c4267fb25]
#3    Source "/home/build/rpmbuild.tmpWLNW9Q/BUILD/cross-el8.5-x86_64-clang-runtime-13.0.1-13.0.1/llvm-project-13.0.1.src/libcxxabi/src/cxa_default_handlers.cpp", line 66, in demangling_terminate_handler() [0x7f3c4266805e]
#4    Source "/home/build/rpmbuild.tmpWLNW9Q/BUILD/cross-el8.5-x86_64-clang-runtime-13.0.1-13.0.1/llvm-project-13.0.1.src/libcxxabi/src/cxa_handlers.cpp", line 59, in std::__terminate(*terminate_handler func) [0x7f3c4267ecd2]
#5    Source "/home/build/rpmbuild.tmpWLNW9Q/BUILD/cross-el8.5-x86_64-clang-runtime-13.0.1-13.0.1/llvm-project-13.0.1.src/libcxxabi/src/cxa_handlers.cpp", line 88, in std::terminate() [0x7f3c4267ec77]
#6    Object "/home/builds/tracing-otlp-build/lib/libopentelemetry_trace.so", at 0x7f3c48b9e8ba, in __clang_call_terminate
#7    Source "/home/workplace/main/views/xxx/builds/xxxx/observability_impl.cc", line 229, in InitTracer() [0x7f3c495180c7]

The line of code hitting this issue is
tracer_ = trace::Provider::GetTracerProvider()->GetTracer("otel", "1.16.1");
If I change back to use abseil then I don't see this issue, but I have some other problem of using abseil and need to get rid of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions