Skip to content

[Metrics SDK] Segfault when short export period is used for metrics #1676

@ahadnagy

Description

@ahadnagy

We're experiencing segfaults when using async instruments with a relatively short (e.g. OTEL_METRICS_EXPORT_INTERVAL_MILLIS=100 OTEL_METRICS_EXPORT_TIMEOUT_MILLIS=50) export period.

For me, this looks like a race condition issue and strongly resembles #1663 , but it's still present after bumping opentelemetry-cpp to the last commit.

I was able to catch this with GDB, here's the stack trace:
(gdb)_backtrace_full.txt

If necessary, I'll try to put together a self-contained reproducer, but I'm hoping that it's something simple. :)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions