Public bug reported:

The /usr/bin/R launch script adds /usr/lib/x86_64-linux-gnu to
LD_LIBRARY_PATH before running the actual executable
/usr/lib/R/bin/exec/R. This creates issues when other executables are
run from R, as they end up loading the wrong libraries. Using
LD_LIBRARY_PATH is generally not recommended for this reason.

This notably affects Julia, which uses a special version of libunwind (which is 
stored in its private lib dir) and crashes when it gets the standard version 
from /usr/lib/x86_64-linux-gnu.
https://github.com/JuliaInterop/JuliaCall/issues/238#issuecomment-2620093298
https://github.com/JuliaLang/julia/issues/55765

The Fedora package doesn't appear to set LD_LIBRARY_PATH so there seem
to be other solutions.

** Affects: r-base (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2134523

Title:
  R launcher script should not set LD_LIBRARY_PATH

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/r-base/+bug/2134523/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to