Sudo vs LD_PRELOAD errors

288 views
Skip to first unread message

Shak

unread,
Nov 15, 2020, 10:30:51 AM11/15/20
to VirtualGL User Discussion/Support
I use vglrun +wm to launch my desktop environment, i3, to allow all apps that are used to enjoy VGL acceleration. This work well and I am satisfied with the results.

However each time I execute a sudo command in the envoronment I get the following errors:

ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libvglfaker.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

The actual command runs fine. I suspect that this is a) innocuous and b) by design as per the docs at https://virtualgl.org/vgldoc/2_2/#hd0012

However it is also quite irritating! Are there any known workarounds (aside from the setguid one from the above link) to hide this message? Perhaps a clever sudo alias that might hide this output?

DRC

unread,
Nov 15, 2020, 3:36:29 PM11/15/20
to virtual...@googlegroups.com
No. I've been the principal developer and sole maintainer of VirtualGL
from the beginning (2004), and I have never seen any way around that
except making the faker libraries setuid root.

DRC

unread,
Nov 15, 2020, 6:59:53 PM11/15/20
to virtual...@googlegroups.com
I should footnote that to say that, if you don’t actually need to use VirtualGL as root, then you could alias sudo to ‘unset LD_PRELOAD; sudo’ or something similar. Having LD_PRELOAD set when running something as root (or something that is setuid root) is what gives you that error message.

> On Nov 15, 2020, at 2:36 PM, DRC <d...@virtualgl.org> wrote:
>
> No. I've been the principal developer and sole maintainer of VirtualGL
> --
> You received this message because you are subscribed to the Google Groups "VirtualGL User Discussion/Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to virtualgl-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/virtualgl-users/a033f65e-7248-6893-686e-50984558fd06%40virtualgl.org.

Shakil Shaikh

unread,
Nov 16, 2020, 4:02:17 AM11/16/20
to virtual...@googlegroups.com
I don't actually need to run GL apps under root so that's a great, and for me correct, solution!

You received this message because you are subscribed to a topic in the Google Groups "VirtualGL User Discussion/Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/virtualgl-users/It-4AmVw6qA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to virtualgl-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/virtualgl-users/5C8E3602-9253-485E-90B7-7D454326B6CC%40virtualgl.org.
Reply all
Reply to author
Forward
0 new messages