Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6746409
Votes 0
Synopsis Error: dl failure on line 689: Copies of libjvm.so need to have chcon (selinux) re-applied to them
Category java:build
Reported Against
Release Fixed 7(b36)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 6538311
Submit Date 09-SEP-2008
Description
Using CentOS 5.2 (supposedly very close to RH Enterprise 5.2) I encountered a build problem building the jdk. The first time the built jdk is used, you get the error "Error: dl failure on line 689" (ignore the 689, that line number will likely be different). The issue is that the launcher cannot load libjvm.so. This only happens if SELINUX is enabled, which it is by default. You can turn SELINUX off, but ideally it would be nice if you could build the jdk with it on, turning SELINUX on and off seems wrong to me.

/XXX/build/linux-i586-fastdebug/bin/java -version
Error: dl failure on line 689
Error: failed /XXX/build/linux-i586-fastdebug/lib/i386/client/libjvm.so, because /XXX/build/linux-i586-fastdebug/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied

The hotspot Makefiles are running chcon on the libjvm.so it creates, but this attribute of the file does not persist through the copy made into the jdk area. So anytime libjvm.so is copied, the chcon command needs to be run to add the right attribute. As to why libjvm.so needs to have chcon run on it, see 6538311.
Posted Date : 2008-09-09 18:31:55.0
Work Around
N/A
Evaluation
See description.
Posted Date : 2008-09-09 19:29:58.0

http://hg.openjdk.java.net/jdk7/build/jdk/rev/41bcf49eb3a1
Posted Date : 2008-09-12 02:34:25.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang