crash due to OpenTelemerty

My colleagues found a problem with OpenTelemetry. I am just posting here their originnal e-mails, since I am not really able rigth now to get into details:

Dear colleagues, I encountered a problem when linking spectra against the Tango10 library. In the attachment you find a minimal example demonstrating the issue. The executable can be created by:

make -f makefileTango10Test all

It does some I/O with the Tango test device. The problem is that the I/O is not longer working when initiated from an exit handler.

Btw. linking with Tango9 gives not problem.

Best regards, Thorsten

And this is what Hannes comment on it:

Hi Thorsten,

the problem is related to the fact that tango10 by default is using opentelemetry for logging / debugging purposes. I built a test package with open telemetry disabled. When compiling / linking with this version the crash disappears.

This needs some further research; for the time being I suggest you link spectra against libtango9, that should not be a problem.

Cheers

Hannes

He says the crach happens here:

Hi Yury,

the crash happens in line 1748 in file cppTango/src/client/devapi_base.cpp: auto scope = TANGO_TELEMETRY_SCOPE(span);

Cheers

Hannes

Tango10Test.cpp

makefileTango10Test.txt