harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paulex Yang <paulex.y...@gmail.com>
Subject Re: [classlib][archive]Security policy leads to vm crashes in loading class of JarFile
Date Wed, 18 Oct 2006 10:43:01 GMT
Leo Li wrote:
> Hi, all:
>     During the self-hosting of Derby, I found a security policy  if is
> applied will lead to errors in loading the class of JarFile. IBM vm
> will throw java/lang/UnsatisfiedLinkError: java/util/zip/ZipFile.ntvi  
> while
> drlvm will crash with "SEH handler: shutdown errorSEH handler: too many
> shutdown errors..."
Sadly I found the problem is more general...Seems Harmony+IBM VME cannot 
accept any customized policy file, just try the test case below with 
option: -Djava.security.manager -Djava.security.policy=test.policy

public static void main(String[] args) throws Exception{
 System.out.println("hello");
}

you'll get same error.
>
>     Here is the testcase:
>
>
> import java.util.jar.*;
> public class TestJarFile {
>
> public static void main(String[] args) throws Exception{
>  System.out.println(JarFile.CENATT);
>   }
>
> }
>
> And the attachment is the derby_tests.policy.
>
> Then run:
>
> java -Djava.security.manager
> -Djava.security.policy=derby_tests.policyTestJarFile
>
> Run passes,
>
> Harmony on IBM VM fails with java/lang/UnsatisfiedLinkError:
> java/util/zip/ZipFile.ntvi
>
> Harmony on Drlvm fails with SEH handler: shutdown errorSEH handler: 
> too many
> shutdown errors
>
> If the security manager is not specified, Harmony passes.
>
>


-- 
Paulex Yang
China Software Development Lab
IBM


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message