-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
linux-beta
-
x86
-
solaris_8
-
Not verified
SECURITY FAILURES - cc syntax errors for src/headline/jvm_tests/DefineClass
Test Platform:
SunOS scorpius 5.8 Generic i86pc i386 i86pcSystem = SunOS
Node = scorpius
Release = 5.8
KernelID = Generic
Machine = i86pc
Java Version:
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-b18)
Java HotSpot(TM) Client VM (build 1.3.0-b18, mixed mode)
==================================
To reproduce the cc syntax error
==================================
1.) cd to /vsn/SECURITY/kestrel_jdk/TestSuite/src/headline/jvm_tests/DefineClass
2.) sh Doit.sh
Here is output with shell trace turned ON:
+ javac A.java B.java DefineClass.java
+ javah DefineClass
+ uname
+ [ SunOS = SunOS ]
+ cc -I. -I./include -I./include/solaris -c DefineClass.c
cc: syntax error at line 1: `(' unexpected
+ cc -G -o libDefineClass.so DefineClass.o -L./lib/solaris -ljvm
cc: syntax error at line 1: `(' unexpected
+ cp libDefineClass.so ./lib/solaris
LD_LIBRARY_PATH=.:./lib/solaris:/usr/dt/lib:/usr/openwin/lib:/usr/lib
+ export LD_LIBRARY_PATH
+ java -Djava.security.manager -Djava.security.policy=DefineClass.jp DefineClass
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/home/williami/MyTestArea/vsn/SECURITY/kestrel_jdk/TestSuite/src/headline/jvm_te
sts/DefineClass/libDefineClass.so: ld.so.1:
/usr/java1.2/bin/../jre/bin/../bin/i386/native_threads/java: fatal:
/home/williami/MyTestArea/vsn/SECURITY/kestrel_jdk/TestSuite/src/headline/jvm_te
sts/DefineClass/libDefineClass.so: open failed: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at DefineClass.<clinit>(DefineClass.java:14)
Test Platform:
SunOS scorpius 5.8 Generic i86pc i386 i86pcSystem = SunOS
Node = scorpius
Release = 5.8
KernelID = Generic
Machine = i86pc
Java Version:
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-b18)
Java HotSpot(TM) Client VM (build 1.3.0-b18, mixed mode)
==================================
To reproduce the cc syntax error
==================================
1.) cd to /vsn/SECURITY/kestrel_jdk/TestSuite/src/headline/jvm_tests/DefineClass
2.) sh Doit.sh
Here is output with shell trace turned ON:
+ javac A.java B.java DefineClass.java
+ javah DefineClass
+ uname
+ [ SunOS = SunOS ]
+ cc -I. -I./include -I./include/solaris -c DefineClass.c
cc: syntax error at line 1: `(' unexpected
+ cc -G -o libDefineClass.so DefineClass.o -L./lib/solaris -ljvm
cc: syntax error at line 1: `(' unexpected
+ cp libDefineClass.so ./lib/solaris
LD_LIBRARY_PATH=.:./lib/solaris:/usr/dt/lib:/usr/openwin/lib:/usr/lib
+ export LD_LIBRARY_PATH
+ java -Djava.security.manager -Djava.security.policy=DefineClass.jp DefineClass
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/home/williami/MyTestArea/vsn/SECURITY/kestrel_jdk/TestSuite/src/headline/jvm_te
sts/DefineClass/libDefineClass.so: ld.so.1:
/usr/java1.2/bin/../jre/bin/../bin/i386/native_threads/java: fatal:
/home/williami/MyTestArea/vsn/SECURITY/kestrel_jdk/TestSuite/src/headline/jvm_te
sts/DefineClass/libDefineClass.so: open failed: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at DefineClass.<clinit>(DefineClass.java:14)