← Back to team overview

openjdk team mailing list archive

[Bug 224110] Re: /usr/lib/jvm/java-6-openjdk/bin/java: error while loading shared libraries: libjli.so: cannot openshared object file: No such file or directory - /proc/self/exe fullpath error on stackable filesystem

 

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the
upcoming Intrepid Ibex 8.10 release.  As a result, the kernel team would
appreciate it if you could please test this newer 2.6.27 Ubuntu kernel.
There are one of two ways you should be able to test:

1)  If you are comfortable installing packages on your own, the linux-
image-2.6.27-* package is currently available for you to install and
test.

--or--

2)  The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer
2.6.27 Ubuntu kernel.  Alpha5 is set to be released Thursday Sept 4.
Please watch http://www.ubuntu.com/testing for Alpha5 to be announced.
You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the
bug reported here or if the issue remains.  More importantly, please
open a new bug report for each new bug/regression introduced by the
2.6.27 kernel and tag the bug report with 'linux-2.6.27'.  Also, please
specifically note if the issue does or does not appear in the 2.6.26
kernel.  Thanks again, we really appreicate your help and feedback.

** Tags added: cft-2.6.27

-- 
/usr/lib/jvm/java-6-openjdk/bin/java: error while  loading shared libraries: libjli.so: cannot openshared object file:  No such file or directory - /proc/self/exe fullpath error on stackable filesystem
https://bugs.launchpad.net/bugs/224110
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in “linux” source package in Ubuntu: Triaged
Status in “openjdk-6” source package in Ubuntu: Fix Released
Status in linux in Ubuntu Hardy: Won't Fix
Status in openjdk-6 in Ubuntu Hardy: In Progress

Bug description:
Hi,

When running java from openjdk-6-jre-headless with an unionfs-ed /, it fails to append the proper library path to locate the libs it needs.

10:48 < StevenK> The problem is this:
10:49 < StevenK> java reads /proc/self/exe and comes up with the full path, 
                 including the bits that are hidden under unionfs, like 
                 /squashmnt or /persistmnt, and returns 
                 /squashmnt/usr/lib/jvm/java-6-openjdk/jre/bin/java
10:50 < StevenK> java then looks for it's libraries in 
                 /squashmnt/usr/lib/jvm/java-6-openjdk/jre/lib, and can't find 
                 them.

Adding /squashmnt -> / and /persistmnt -> / symlinks works around the issue.

This typically affects UME and live CDs.

Bye,



References