Hi all,
I am integrating
ns-3 DCE 1.12 on an Ubuntu 20.04 system. I have build
quiche code and am currently trying to set up a ns-3 DCE example to work with quic. To integrate quic with DCE, I have to make the examples in the quiche/quiche/examples directory and set that path in the DCE_PATH environment. After that DCE is able to detect the executable and try to use it. I have attached the code file which is used to run the ns-3 DCE example for your reference.
When I run the example, I get the following error:
ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
To fix this, I run the following command:
export LD_PRELOAD=$(gcc -print-file-name=libasan.so)
After that, I run into this error:
You are trying to dlopen a elf-cache/0/libc-ns3.so shared library with RTLD_DEEPBIND flag which is incompatible with sanitizer runtime (see https://github.com/google/sanitizers/issues/611 for details). If you want to run elf-cache/0/libc-ns3.so library under sanitizers please remove RTLD_DEEPBIND from dlopen flags.
[I am also getting memory leak errors with the errors above. Here is how that looks like: ]
==365346==ERROR: LeakSanitizer: detected memory leaks ... A list of direct and indirect memory leaks ...
I have tried a few things I found online but I am not able to find a solution/workaround. Is there a way I can remove the RTLD_DEEPBIND from dlopen flags?
Thanks & Regards,
Harsh Patel