Unable to load libjava.so in fakechroot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-7 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When running java inside a chroot run through fakechroot, initialization fails with the following messages (assuming chroot is set up at /var/lib/
OpenJDK 64-Bit Server VM warning: No monotonic clock was available - timed services may be adversely affected if the time-of-day clock changes
Error occurred during initialization of VM
Unable to load native library: /var/lib/
The path is completely wrong, since although it contains the path to the chroot the library location is [chroot]
fakechroot: realpath(
fakechroot: __lxstat64_rel(1, "/var", &buf)
fakechroot: __lxstat64_rel(1, "/var/lib", &buf)
fakechroot: __lxstat64_rel(1, "/var/lib/foo", &buf)
fakechroot: fopen("
fakechroot: rel2abs(
fakechroot: rel2abs(
fakechroot: dlopen(
fakechroot: rel2abs(
fakechroot: rel2abs(
fakechroot: open("/
fakechroot: rel2abs(
fakechroot: rel2abs(
fakechroot: fopen("
fakechroot: rel2abs(
fakechroot: rel2abs(
fakechroot: dlopen(
fakechroot: rel2abs(
fakechroot: rel2abs(
fakechroot: open("/
fakechroot: rel2abs(
fakechroot: rel2abs(
Setting JAVA_HOME did not fix the issue, in fact the debug output showed nothing even changed.
This was seen on Ubuntu 14.04, package version 7u65-2.5.2-3~14.04 on amd64
Sorry, this isn't a problem with OpenJDK but rather with fakechroot not implementing dladdr and dl_iterate_phdr