You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Jin Yang (JIRA)" <ji...@apache.org> on 2010/09/26 14:26:33 UTC

[jira] Created: (HARMONY-6659) [classlib][luni]Launcher causing JVM to silently ignore unrecognized options

[classlib][luni]Launcher causing JVM to silently ignore unrecognized options
----------------------------------------------------------------------------

                 Key: HARMONY-6659
                 URL: https://issues.apache.org/jira/browse/HARMONY-6659
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Jin Yang


Harmony launcher instructs the JVM to discard any unrecognized argument silently, this hides incorrectly formed command lines and can lead to tests passing (e.g. those that contain -Xcompressedrefs) when they should fail.  To see the problem simply add an unrecognized VM option to the command line, e.g.

	Command:	'.\java -XthisShouldBarf -version'

`	Expected Output:
		Unrecognized option: -XthisShouldBarf
		Could not create the Java virtual machine.

	Actual Output:
		Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors,as applicable.
		java version "1.6.0"
		Harmony Virtual Machine Element (20100920_64951)
		IBM J9 VM (2.6)
		IBM J9 2.6 Windows XP x86-32  (JIT enabled, AOT enabled)
		J9VM - R26_head_20100917_1044_B64808
		JIT  - dev_20100903_16914
		GC   - R26_head_20100916_1755_B64769
		J9CL - 20100920_64951
		Harmony - Unknow


It can be fixed by changing the argument #6 from JNI_TRUE to JNI_FALSE  in lancher's calling
 invocation
      (PORTLIB, argc, argv, handle, JNI_VERSION_1_4, JNI_TRUE, mainClass,
       classArg, propertiesFileName, isStandaloneJar, vmdllsubdir, versionFlag);

This argument is to inidicate JVM whether should ignore any unrecognized option.

This change will only affect IBM JVM because it's sensitive to this argument. 
While DRLVM will not be affected because it doesn't use this option(passing JNI_TRUE or JNI_FALSE will have same effect, DRLVM will always fail on any unrecognized option)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-6659) [classlib][luni]Launcher causing JVM to silently ignore unrecognized options

Posted by "Regis Xu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Regis Xu reassigned HARMONY-6659:
---------------------------------

    Assignee: Regis Xu

> [classlib][luni]Launcher causing JVM to silently ignore unrecognized options
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-6659
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6659
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jin Yang
>            Assignee: Regis Xu
>         Attachments: HARMONY-6659.diff
>
>
> Harmony launcher instructs the JVM to discard any unrecognized argument silently, this hides incorrectly formed command lines and can lead to tests passing (e.g. those that contain -Xcompressedrefs) when they should fail.  To see the problem simply add an unrecognized VM option to the command line, e.g.
> 	Command:	'.\java -XthisShouldBarf -version'
> `	Expected Output:
> 		Unrecognized option: -XthisShouldBarf
> 		Could not create the Java virtual machine.
> 	Actual Output:
> 		Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors,as applicable.
> 		java version "1.6.0"
> 		Harmony Virtual Machine Element (20100920_64951)
> 		IBM J9 VM (2.6)
> 		IBM J9 2.6 Windows XP x86-32  (JIT enabled, AOT enabled)
> 		J9VM - R26_head_20100917_1044_B64808
> 		JIT  - dev_20100903_16914
> 		GC   - R26_head_20100916_1755_B64769
> 		J9CL - 20100920_64951
> 		Harmony - Unknow
> It can be fixed by changing the argument #6 from JNI_TRUE to JNI_FALSE  in lancher's calling
>  invocation
>       (PORTLIB, argc, argv, handle, JNI_VERSION_1_4, JNI_TRUE, mainClass,
>        classArg, propertiesFileName, isStandaloneJar, vmdllsubdir, versionFlag);
> This argument is to inidicate JVM whether should ignore any unrecognized option.
> This change will only affect IBM JVM because it's sensitive to this argument. 
> While DRLVM will not be affected because it doesn't use this option(passing JNI_TRUE or JNI_FALSE will have same effect, DRLVM will always fail on any unrecognized option)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6659) [classlib][luni]Launcher causing JVM to silently ignore unrecognized options

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915268#action_12915268 ] 

Hudson commented on HARMONY-6659:
---------------------------------

Integrated in Harmony-1.5-head-linux-x86_64 #970 (See [https://hudson.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/970/])
    Apply patch for HARMONY-6659: [classlib][luni]Launcher causing JVM to silently ignore unrecognized options


> [classlib][luni]Launcher causing JVM to silently ignore unrecognized options
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-6659
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6659
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jin Yang
>            Assignee: Regis Xu
>             Fix For: 5.0M16
>
>         Attachments: HARMONY-6659.diff
>
>
> Harmony launcher instructs the JVM to discard any unrecognized argument silently, this hides incorrectly formed command lines and can lead to tests passing (e.g. those that contain -Xcompressedrefs) when they should fail.  To see the problem simply add an unrecognized VM option to the command line, e.g.
> 	Command:	'.\java -XthisShouldBarf -version'
> `	Expected Output:
> 		Unrecognized option: -XthisShouldBarf
> 		Could not create the Java virtual machine.
> 	Actual Output:
> 		Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors,as applicable.
> 		java version "1.6.0"
> 		Harmony Virtual Machine Element (20100920_64951)
> 		IBM J9 VM (2.6)
> 		IBM J9 2.6 Windows XP x86-32  (JIT enabled, AOT enabled)
> 		J9VM - R26_head_20100917_1044_B64808
> 		JIT  - dev_20100903_16914
> 		GC   - R26_head_20100916_1755_B64769
> 		J9CL - 20100920_64951
> 		Harmony - Unknow
> It can be fixed by changing the argument #6 from JNI_TRUE to JNI_FALSE  in lancher's calling
>  invocation
>       (PORTLIB, argc, argv, handle, JNI_VERSION_1_4, JNI_TRUE, mainClass,
>        classArg, propertiesFileName, isStandaloneJar, vmdllsubdir, versionFlag);
> This argument is to inidicate JVM whether should ignore any unrecognized option.
> This change will only affect IBM JVM because it's sensitive to this argument. 
> While DRLVM will not be affected because it doesn't use this option(passing JNI_TRUE or JNI_FALSE will have same effect, DRLVM will always fail on any unrecognized option)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-6659) [classlib][luni]Launcher causing JVM to silently ignore unrecognized options

Posted by "Jin Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jin Yang updated HARMONY-6659:
------------------------------

    Attachment: HARMONY-6659.diff

> [classlib][luni]Launcher causing JVM to silently ignore unrecognized options
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-6659
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6659
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jin Yang
>         Attachments: HARMONY-6659.diff
>
>
> Harmony launcher instructs the JVM to discard any unrecognized argument silently, this hides incorrectly formed command lines and can lead to tests passing (e.g. those that contain -Xcompressedrefs) when they should fail.  To see the problem simply add an unrecognized VM option to the command line, e.g.
> 	Command:	'.\java -XthisShouldBarf -version'
> `	Expected Output:
> 		Unrecognized option: -XthisShouldBarf
> 		Could not create the Java virtual machine.
> 	Actual Output:
> 		Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors,as applicable.
> 		java version "1.6.0"
> 		Harmony Virtual Machine Element (20100920_64951)
> 		IBM J9 VM (2.6)
> 		IBM J9 2.6 Windows XP x86-32  (JIT enabled, AOT enabled)
> 		J9VM - R26_head_20100917_1044_B64808
> 		JIT  - dev_20100903_16914
> 		GC   - R26_head_20100916_1755_B64769
> 		J9CL - 20100920_64951
> 		Harmony - Unknow
> It can be fixed by changing the argument #6 from JNI_TRUE to JNI_FALSE  in lancher's calling
>  invocation
>       (PORTLIB, argc, argv, handle, JNI_VERSION_1_4, JNI_TRUE, mainClass,
>        classArg, propertiesFileName, isStandaloneJar, vmdllsubdir, versionFlag);
> This argument is to inidicate JVM whether should ignore any unrecognized option.
> This change will only affect IBM JVM because it's sensitive to this argument. 
> While DRLVM will not be affected because it doesn't use this option(passing JNI_TRUE or JNI_FALSE will have same effect, DRLVM will always fail on any unrecognized option)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6659) [classlib][luni]Launcher causing JVM to silently ignore unrecognized options

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915297#action_12915297 ] 

Hudson commented on HARMONY-6659:
---------------------------------

Integrated in Harmony-select-1.5-head-linux-x86_64 #124 (See [https://hudson.apache.org/hudson/job/Harmony-select-1.5-head-linux-x86_64/124/])
    Apply patch for HARMONY-6659: [classlib][luni]Launcher causing JVM to silently ignore unrecognized options


> [classlib][luni]Launcher causing JVM to silently ignore unrecognized options
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-6659
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6659
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jin Yang
>            Assignee: Regis Xu
>             Fix For: 5.0M16
>
>         Attachments: HARMONY-6659.diff
>
>
> Harmony launcher instructs the JVM to discard any unrecognized argument silently, this hides incorrectly formed command lines and can lead to tests passing (e.g. those that contain -Xcompressedrefs) when they should fail.  To see the problem simply add an unrecognized VM option to the command line, e.g.
> 	Command:	'.\java -XthisShouldBarf -version'
> `	Expected Output:
> 		Unrecognized option: -XthisShouldBarf
> 		Could not create the Java virtual machine.
> 	Actual Output:
> 		Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors,as applicable.
> 		java version "1.6.0"
> 		Harmony Virtual Machine Element (20100920_64951)
> 		IBM J9 VM (2.6)
> 		IBM J9 2.6 Windows XP x86-32  (JIT enabled, AOT enabled)
> 		J9VM - R26_head_20100917_1044_B64808
> 		JIT  - dev_20100903_16914
> 		GC   - R26_head_20100916_1755_B64769
> 		J9CL - 20100920_64951
> 		Harmony - Unknow
> It can be fixed by changing the argument #6 from JNI_TRUE to JNI_FALSE  in lancher's calling
>  invocation
>       (PORTLIB, argc, argv, handle, JNI_VERSION_1_4, JNI_TRUE, mainClass,
>        classArg, propertiesFileName, isStandaloneJar, vmdllsubdir, versionFlag);
> This argument is to inidicate JVM whether should ignore any unrecognized option.
> This change will only affect IBM JVM because it's sensitive to this argument. 
> While DRLVM will not be affected because it doesn't use this option(passing JNI_TRUE or JNI_FALSE will have same effect, DRLVM will always fail on any unrecognized option)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-6659) [classlib][luni]Launcher causing JVM to silently ignore unrecognized options

Posted by "Jin Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jin Yang updated HARMONY-6659:
------------------------------

    Patch Info: [Patch Available]

> [classlib][luni]Launcher causing JVM to silently ignore unrecognized options
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-6659
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6659
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jin Yang
>         Attachments: HARMONY-6659.diff
>
>
> Harmony launcher instructs the JVM to discard any unrecognized argument silently, this hides incorrectly formed command lines and can lead to tests passing (e.g. those that contain -Xcompressedrefs) when they should fail.  To see the problem simply add an unrecognized VM option to the command line, e.g.
> 	Command:	'.\java -XthisShouldBarf -version'
> `	Expected Output:
> 		Unrecognized option: -XthisShouldBarf
> 		Could not create the Java virtual machine.
> 	Actual Output:
> 		Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors,as applicable.
> 		java version "1.6.0"
> 		Harmony Virtual Machine Element (20100920_64951)
> 		IBM J9 VM (2.6)
> 		IBM J9 2.6 Windows XP x86-32  (JIT enabled, AOT enabled)
> 		J9VM - R26_head_20100917_1044_B64808
> 		JIT  - dev_20100903_16914
> 		GC   - R26_head_20100916_1755_B64769
> 		J9CL - 20100920_64951
> 		Harmony - Unknow
> It can be fixed by changing the argument #6 from JNI_TRUE to JNI_FALSE  in lancher's calling
>  invocation
>       (PORTLIB, argc, argv, handle, JNI_VERSION_1_4, JNI_TRUE, mainClass,
>        classArg, propertiesFileName, isStandaloneJar, vmdllsubdir, versionFlag);
> This argument is to inidicate JVM whether should ignore any unrecognized option.
> This change will only affect IBM JVM because it's sensitive to this argument. 
> While DRLVM will not be affected because it doesn't use this option(passing JNI_TRUE or JNI_FALSE will have same effect, DRLVM will always fail on any unrecognized option)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-6659) [classlib][luni]Launcher causing JVM to silently ignore unrecognized options

Posted by "Regis Xu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Regis Xu resolved HARMONY-6659.
-------------------------------

    Fix Version/s: 5.0M16
       Resolution: Fixed

Thanks Jin Yang!

The patch was applied to trunk at r1001638, please verify.

> [classlib][luni]Launcher causing JVM to silently ignore unrecognized options
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-6659
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6659
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jin Yang
>            Assignee: Regis Xu
>             Fix For: 5.0M16
>
>         Attachments: HARMONY-6659.diff
>
>
> Harmony launcher instructs the JVM to discard any unrecognized argument silently, this hides incorrectly formed command lines and can lead to tests passing (e.g. those that contain -Xcompressedrefs) when they should fail.  To see the problem simply add an unrecognized VM option to the command line, e.g.
> 	Command:	'.\java -XthisShouldBarf -version'
> `	Expected Output:
> 		Unrecognized option: -XthisShouldBarf
> 		Could not create the Java virtual machine.
> 	Actual Output:
> 		Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors,as applicable.
> 		java version "1.6.0"
> 		Harmony Virtual Machine Element (20100920_64951)
> 		IBM J9 VM (2.6)
> 		IBM J9 2.6 Windows XP x86-32  (JIT enabled, AOT enabled)
> 		J9VM - R26_head_20100917_1044_B64808
> 		JIT  - dev_20100903_16914
> 		GC   - R26_head_20100916_1755_B64769
> 		J9CL - 20100920_64951
> 		Harmony - Unknow
> It can be fixed by changing the argument #6 from JNI_TRUE to JNI_FALSE  in lancher's calling
>  invocation
>       (PORTLIB, argc, argv, handle, JNI_VERSION_1_4, JNI_TRUE, mainClass,
>        classArg, propertiesFileName, isStandaloneJar, vmdllsubdir, versionFlag);
> This argument is to inidicate JVM whether should ignore any unrecognized option.
> This change will only affect IBM JVM because it's sensitive to this argument. 
> While DRLVM will not be affected because it doesn't use this option(passing JNI_TRUE or JNI_FALSE will have same effect, DRLVM will always fail on any unrecognized option)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.