harmony-commits mailing list archives

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

On my WinXP SP2 the second test for H-2157 is failed (I run luni -Dtest.case=tests.api.java.io.FileTest)
with message:
"mkdir 248 failed
junit.framework.AssertionFailedError: mkdir 248 failed at tests.api.java.io.FileTest.test_mkdir(FileTest.java:1811)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)"

It is reproduced for me on the classlib r479866+IBM VM.

Note, sometimes it failed as:
-------------------------------------------------------
C:\tmp\tmp17>C:\harmony.top\classlib\trunk\deploy\jdk\jre\bin\java.exe -cp . test
mkdir 239 OK
mkdir 240 OK
mkdir 241 OK
mkdir 242 OK
mkdir 243 OK
mkdir 244 OK
mkdir 245 OK
mkdir 246 OK
mkdir 247 OK
mkdir 248 OK
mkdir 249 OK
mkdir 250 OK
mkdir 251 OK
mkdir 252 OK
mkdir 253 OK
mkdir 254 OK
mkdir 255 OK
mkdir 256 OK

An unhandled error (4) has occurred.
HyGeneric_Signal_Number=00000004
ExceptionCode=c0000005
ExceptionAddress=7C910F29
ContextFlags=0001003f
Handler1=00401010
Handler2=11105D80
InaccessibleAddress=00000000
EDI=016A5BF0
ESI=016A7090
EAX=016A7098
EBX=00150000
ECX=00000000
EDX=00000000
EIP=7C910F29
ESP=0013F854
EBP=0013F860
Module=C:\WINNT\system32\ntdll.dll
Module_base_address=7C900000
Offset_in_DLL=00010f29

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\tmp\tmp17>C:\harmony.top\drlvm\trunk\build\win_ia32_msvc_debug\deploy\jre\bin\java -Dvm.assert_dialog=false
-cp . -showversion test
Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors,
as applicable.
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r479866, (Nov 28 2006), Windows/ia32/msvc 1310, debug build
http://incubator.apache.org/harmony
mkdir 239 OK
mkdir 240 OK
mkdir 241 OK
mkdir 242 OK
mkdir 243 OK
mkdir 244 OK
mkdir 245 OK
mkdir 246 OK
mkdir 247 OK
mkdir 248 OK
mkdir 249 OK
mkdir 250 OK
mkdir 251 OK
mkdir 252 OK
mkdir 253 OK
mkdir 254 OK
mkdir 255 OK
mkdir 256 OK

C:\tmp\tmp17>exit

-------------------------------------------------------
Standalone test (test.java):

import java.io.*; 

public class test { 
    public static void main (String[] args) throws Exception { 
        File dir = new File("."); 
        String longDirName = "abcdefghijklmnopqrstuvwx";// 24 chars 
        StringBuilder sb = new StringBuilder(dir + File.separator); 
        while (dir.getCanonicalPath().length() < 256 - longDirName.length()) { 
            sb.append(longDirName + File.separator); 
            dir = new File(sb.toString()); 
            dir.deleteOnExit(); 
            if (!(dir.mkdir() && dir.exists())) {
                System.out.println("mkdir failed");
            } 
        } 
        while (dir.getCanonicalPath().length() < 256) { 
            sb.append(0); 
            dir = new File(sb.toString()); 
            dir.deleteOnExit(); 
            if (!(dir.mkdir() && dir.exists())) {
                System.out.println("mkdir " + dir.getCanonicalPath().length() + " failed");
            } else {
                System.out.println("mkdir " + dir.getCanonicalPath().length() + " OK");
            }
        } 
    } 
} 
-----------------------------------------


> [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