You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Elena Semukhina (JIRA)" <ji...@apache.org> on 2007/01/18 09:09:29 UTC

[jira] Created: (HARMONY-3018) [drlvm][thread manager][unit] cunit test thread/test_ti_instrum.c fails from time to time

[drlvm][thread manager][unit] cunit test thread/test_ti_instrum.c fails from time to time
-----------------------------------------------------------------------------------------

                 Key: HARMONY-3018
                 URL: https://issues.apache.org/jira/browse/HARMONY-3018
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Elena Semukhina


I managed to reproduce the failure with iterative runs on linux ia32 gcc release build:

test test_ti_instrum failed:

test_jthread_get_blocked_count start
     [echo] ERROR: Test failed: Wrong number waiting on monitor threads (/export/lab_drlbuild/combined_gcc/CVS_20070117_0002_H/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c:139)

To run the test iteratively please use the following command:

 i=0; while true; do ./test_ti_instrum -Dorg.apache.harmony.vm.vmdir=$DRLVM_HOME/bin/default -Djava.home=$DRLVM_HOME; ec=$?; echo $i $ec; test $ec != 0 && break; i=$[i+1]; done

Once I saw the failure on linux ia32 icc debug build.


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

        

[jira] Commented: (HARMONY-3018) [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474920 ] 

Alexey Varlamov commented on HARMONY-3018:
------------------------------------------

Elena, a few questions on the patch:
1) Why condition changed '!=' -> '>':
 -        if (MAX_TESTED_THREAD_NUMBER - i != waiting_on_monitor_nmb + 1){
+        while ((MAX_TESTED_THREAD_NUMBER - i > waiting_on_monitor_nmb + 1) && (cycles-- > 0)) {
2) Seems there is a border case when cycles == 0 might give a false failure:
+        if (cycles <= 0){
3) 10 min isn't too long for waiting?
+#define MAX_TIME_TO_WAIT 600000

> [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-3018
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: H-3018_test_ti_instrum.patch
>
>
> I managed to reproduce the failure with iterative runs on linux ia32 gcc release build:
> test test_ti_instrum failed:
> test_jthread_get_blocked_count start
>      [echo] ERROR: Test failed: Wrong number waiting on monitor threads (/export/lab_drlbuild/combined_gcc/CVS_20070117_0002_H/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c:139)
> To run the test iteratively please use the following command:
>  i=0; while true; do ./test_ti_instrum -Dorg.apache.harmony.vm.vmdir=$DRLVM_HOME/bin/default -Djava.home=$DRLVM_HOME; ec=$?; echo $i $ec; test $ec != 0 && break; i=$[i+1]; done
> Once I saw the failure on linux ia32 icc debug build.

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


[jira] Closed: (HARMONY-3018) [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time

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

Alexey Varlamov closed HARMONY-3018.
------------------------------------

    Resolution: Fixed

Applied at r510503, thanks!

> [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-3018
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Assigned To: Alexey Varlamov
>         Attachments: H-3018_test_ti_instrum.patch
>
>
> I managed to reproduce the failure with iterative runs on linux ia32 gcc release build:
> test test_ti_instrum failed:
> test_jthread_get_blocked_count start
>      [echo] ERROR: Test failed: Wrong number waiting on monitor threads (/export/lab_drlbuild/combined_gcc/CVS_20070117_0002_H/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c:139)
> To run the test iteratively please use the following command:
>  i=0; while true; do ./test_ti_instrum -Dorg.apache.harmony.vm.vmdir=$DRLVM_HOME/bin/default -Djava.home=$DRLVM_HOME; ec=$?; echo $i $ec; test $ec != 0 && break; i=$[i+1]; done
> Once I saw the failure on linux ia32 icc debug build.

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


[jira] Updated: (HARMONY-3018) [drlvm][thread manager][unit] cunit test thread/test_ti_instrum.c fails from time to time

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

Elena Semukhina updated HARMONY-3018:
-------------------------------------

    Attachment: H-3018_test_ti_instrum.patch

The test uses hythread_sleep(1000) for synchronization. This should be implemented in a smarter way.

I attached the patch fixing the test. I successfully ran the test in a loop for more than 400 times.

> [drlvm][thread manager][unit] cunit test thread/test_ti_instrum.c fails from time to time
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3018
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: H-3018_test_ti_instrum.patch
>
>
> I managed to reproduce the failure with iterative runs on linux ia32 gcc release build:
> test test_ti_instrum failed:
> test_jthread_get_blocked_count start
>      [echo] ERROR: Test failed: Wrong number waiting on monitor threads (/export/lab_drlbuild/combined_gcc/CVS_20070117_0002_H/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c:139)
> To run the test iteratively please use the following command:
>  i=0; while true; do ./test_ti_instrum -Dorg.apache.harmony.vm.vmdir=$DRLVM_HOME/bin/default -Djava.home=$DRLVM_HOME; ec=$?; echo $i $ec; test $ec != 0 && break; i=$[i+1]; done
> Once I saw the failure on linux ia32 icc debug build.

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


[jira] Assigned: (HARMONY-3018) [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time

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

Alexey Varlamov reassigned HARMONY-3018:
----------------------------------------

    Assignee: Alexey Varlamov

> [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-3018
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Assigned To: Alexey Varlamov
>         Attachments: H-3018_test_ti_instrum.patch
>
>
> I managed to reproduce the failure with iterative runs on linux ia32 gcc release build:
> test test_ti_instrum failed:
> test_jthread_get_blocked_count start
>      [echo] ERROR: Test failed: Wrong number waiting on monitor threads (/export/lab_drlbuild/combined_gcc/CVS_20070117_0002_H/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c:139)
> To run the test iteratively please use the following command:
>  i=0; while true; do ./test_ti_instrum -Dorg.apache.harmony.vm.vmdir=$DRLVM_HOME/bin/default -Djava.home=$DRLVM_HOME; ec=$?; echo $i $ec; test $ec != 0 && break; i=$[i+1]; done
> Once I saw the failure on linux ia32 icc debug build.

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


[jira] Commented: (HARMONY-3018) [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time

Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474927 ] 

Elena Semukhina commented on HARMONY-3018:
------------------------------------------

Alexey,

1) I changed the signs in condition just because I'd like to express unambiguity: it seems to me that the number of the threads should decrease through iterations so "!='  could not be "<".

2) You are right: it should be (cycles < 0);

3) 10 min is a huge time in the context of the test but it should guarantee that we really meet a bug bit not a delay :)

> [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-3018
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Assigned To: Alexey Varlamov
>         Attachments: H-3018_test_ti_instrum.patch
>
>
> I managed to reproduce the failure with iterative runs on linux ia32 gcc release build:
> test test_ti_instrum failed:
> test_jthread_get_blocked_count start
>      [echo] ERROR: Test failed: Wrong number waiting on monitor threads (/export/lab_drlbuild/combined_gcc/CVS_20070117_0002_H/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c:139)
> To run the test iteratively please use the following command:
>  i=0; while true; do ./test_ti_instrum -Dorg.apache.harmony.vm.vmdir=$DRLVM_HOME/bin/default -Djava.home=$DRLVM_HOME; ec=$?; echo $i $ec; test $ec != 0 && break; i=$[i+1]; done
> Once I saw the failure on linux ia32 icc debug build.

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


[jira] Commented: (HARMONY-3018) [drlvm][thread manager][unit] cunit test thread/test_ti_instrum.c fails from time to time

Posted by "Evgueni Brevnov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466030 ] 

Evgueni Brevnov commented on HARMONY-3018:
------------------------------------------

Elena,

Mostlikely, this is a test problem....need test investigation

Evgueni

> [drlvm][thread manager][unit] cunit test thread/test_ti_instrum.c fails from time to time
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3018
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>
> I managed to reproduce the failure with iterative runs on linux ia32 gcc release build:
> test test_ti_instrum failed:
> test_jthread_get_blocked_count start
>      [echo] ERROR: Test failed: Wrong number waiting on monitor threads (/export/lab_drlbuild/combined_gcc/CVS_20070117_0002_H/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c:139)
> To run the test iteratively please use the following command:
>  i=0; while true; do ./test_ti_instrum -Dorg.apache.harmony.vm.vmdir=$DRLVM_HOME/bin/default -Djava.home=$DRLVM_HOME; ec=$?; echo $i $ec; test $ec != 0 && break; i=$[i+1]; done
> Once I saw the failure on linux ia32 icc debug build.

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

        

[jira] Updated: (HARMONY-3018) [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time

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

Elena Semukhina updated HARMONY-3018:
-------------------------------------

    Patch Info: [Patch Available]
       Summary: [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time  (was: [drlvm][thread manager][unit] cunit test thread/test_ti_instrum.c fails from time to time)

> [drlvm][unit] cunit test thread/test_ti_instrum.c fails from time to time
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-3018
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3018
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: H-3018_test_ti_instrum.patch
>
>
> I managed to reproduce the failure with iterative runs on linux ia32 gcc release build:
> test test_ti_instrum failed:
> test_jthread_get_blocked_count start
>      [echo] ERROR: Test failed: Wrong number waiting on monitor threads (/export/lab_drlbuild/combined_gcc/CVS_20070117_0002_H/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c:139)
> To run the test iteratively please use the following command:
>  i=0; while true; do ./test_ti_instrum -Dorg.apache.harmony.vm.vmdir=$DRLVM_HOME/bin/default -Djava.home=$DRLVM_HOME; ec=$?; echo $i $ec; test $ec != 0 && break; i=$[i+1]; done
> Once I saw the failure on linux ia32 icc debug build.

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