harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2270) [classlib][unit] tests.api.java.io.FileTest@test_mkdir failes on win XP
Date Mon, 27 Nov 2006 15:13:24 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2270?page=comments#action_12453619 ] 
            
Paulex Yang commented on HARMONY-2270:
--------------------------------------

Vladimir, yes, this patch fixes the VM crash of Tatyana's test case above, but has no effect
on the tests introduced by HARMONY-2157. The latter one always passes on my WinXP SP2 thinkpad.
Would you please check that your portlib is updated and built into jdk/jre/bin/hyprt.dll?
Thank you.

> [classlib][unit] tests.api.java.io.FileTest@test_mkdir failes on win XP
> -----------------------------------------------------------------------
>
>                 Key: HARMONY-2270
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2270
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: win XP
>            Reporter: tatyana doubtsova
>         Assigned To: Paulex Yang
>         Attachments: harmony-2270-test.diff, harmony-2270.diff
>
>
> tests.api.java.io.FileTest@test_mkdir failes on win XP:
> mkdir 257 failed
> junit.framework.AssertionFailedError: mkdir 257 failed at tests.api.java.io.FileTest.test_mkdir(FileTest.java:1811)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> To get more information run stand alone test:
> import java.io.*;
> public class Test2 {	
>     public static void main(String[] args) throws IOException {
>     	    		// Test for method boolean java.io.File.mkdir()
>     		String base = System.getProperty("user.dir");
>     		int dirNumber = 1;
>     		boolean dirExists = true;
>     		File dir = new File(base, String.valueOf(dirNumber));
>     		while (dirExists) {
>     			if (dir.exists()) {
>     				dirNumber++;
>     				dir = new File(base, String.valueOf(dirNumber));
>     			} else {
>     				dirExists = false;
>     			}
>     		}
> 			if (!dir.mkdir() && dir.exists()) System.out.println("mkdir failed");
> 			else System.out.println("PASSED_1");
>     		
>             dir.deleteOnExit();
> 			
>             StringBuilder sb = new StringBuilder(dir + File.separator);
>             while (dir.getCanonicalPath().length() < 256) {
>                 sb.append(0);
>                 dir = new File(sb.toString());
>     			if (!dir.mkdir() && dir.exists()) System.out.println("mkdir " + dir.getCanonicalPath().length()
+ " failed");
>     			else System.out.println("PASSED_2");
>                 dir.deleteOnExit();
>             }
>     	}
> }
> $ /cygdrive/<path to jre>/win_ia32_msvc_debug/deploy/jre/bin/java Test2 -showversion
> PASSED_1
> PASSED_2
> ...........
> PASSED_2
> PASSED_2
> An unhandled error (4) has occurred.
> HyGeneric_Signal_Number=00000004
> ExceptionCode=c0000005
> ExceptionAddress=7C911E5A
> ContextFlags=0001003f
> Handler1=00401010
> Handler2=11105D80
> InaccessibleAddress=00000004
> EDI=00164B58
> ESI=001634B0
> EAX=001634B8
> EBX=00150000
> ECX=001634CC
> EDX=00000000
> EIP=7C911E5A
> ESP=0013F638
> EBP=0013F644
> Module=C:\WINDOWS\system32\ntdll.dll
> Module_base_address=7C900000
> Offset_in_DLL=00011e5a
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
> $
> The debug shows the problem is in nt_exception_filter.cpp
> While iterative run of luni module with -Dhy.test.forkmode=perTest tests.api.java.io.FileTest@test_mkdir
fails 50 times out of 50.
> The stand alone code fails from time to time on win XP

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message