gcc 10.5: libsanitizer: "-fsanitize=leak" Issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I upgrade the gcc in my setup from 10.2 to 10.5 to the latest commit.

After that I build an application with the -fsanitize=leak option.
The execution of the application stops immediatly after start with the
following error:
CHECK failed:
../../../../src/libsanitizer/lsan/lsan_interceptors.cpp:53
((!lsan_init_is_running)) != (0) (0, 0)

I did some research and found following Issue discussion on Github:
https://github.com/magma/magma/issues/15279

There is as well a solution describe to overwrite __lsan_init() call
with an own, empty, implementation. This is not feasible for me,
because I need to check the applicaitons with the fsanitizer=leak.

There is as well a bug ticket of the error at the ubuntu launch pad:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/2038386

The solutions to upgrade to gcc 11 or downgrade to gcc 10.2 are not
feasible for me. I did as well research on the commits from gcc to find
a solution, but could not find a patch, that points directly to that
Issue. In the bug ticket from Ubuntu they say that the: "dlopen-
specific allocator was reimplemented".

Does anyone had experience with that Issue and knows a solution?

Thanks in advance

BR

Michael 




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux