VirtualGL / virtualgl

Main VirtualGL repository
https://VirtualGL.org
Other
701 stars 106 forks source link

ASan runtime does not come first in initial library list #197

Closed JHagemeister closed 2 years ago

JHagemeister commented 2 years ago

When running an application that was built with address sanitizer via vglrun, I encounter the following:

==17587==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.

It should be fine to set asan first and vgl in second place in LD_PRELOAD, however it is not easy to do that with the current vglrun script. Do you see possibility for adding support for this usecase?

dcommander commented 2 years ago

Use the undocumented VGL_PRELOAD environment variable or the -ldp argument to prepend libraries to LD_PRELOAD.

JHagemeister commented 2 years ago

Awesome, sorry for having missed this!