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

[jira] Commented: (HARMONY-3407) [drlvm][winx64][thread] 3 unit tests on thread manager fail on assertions

    [ https://issues.apache.org/jira/browse/HARMONY-3407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481239 ] 

Gregory Shimansky commented on HARMONY-3407:
--------------------------------------------

I think I found the cause of these tests failures although I didn't find out a way to fix the problem properly.

The problem is that IDATA type on windows x86_64 is defined as 4 bytes long integer. Tests operate with IDATA* pointer and try to use it inside of thread main function start_proc to set thread return result while args array is an array of void*.

So args[1] element is 8 bytes past args beginning. But function start_proc sets "1" return value to the memory location that is only 4 bytes from args beginning. The reason why IDATA is not 8 bytes long is probably because file hycomp.h wasn't ported to windows x86_64, and data types for it are defined as for plain win32. Types definition in it are quite messy, so I don't know a correct way to fix this problem quickly.

> [drlvm][winx64][thread] 3 unit tests on thread manager fail on assertions
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-3407
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3407
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: windows/em64t
>            Reporter: Gregory Shimansky
>
> Thread manager C-unit tests fail on assertions when they are ran by build test. The following output is produced by the tests:
>      [echo] INFO: TEST test_hythread_thread_suspend start
>      [echo] ERROR: Assertion '((int)args[1])==(1)' failed at D:\users\gregory\harmony\trunk\working_vm\vm\tests\unit\thread\test_native_suspend.c:67
>      [echo] INFO: TEST test_hythread_thread_suspend: FAILED
>      [echo] INFO: TEST test_hythread_thread_suspend_all start
>      [echo] ERROR: Assertion '((IDATA)args[1])==(1)' failed at D:\users\gregory\harmony\trunk\working_vm\vm\tests\unit\thread\test_native_suspend.c:114
>      [echo] INFO: TEST test_hythread_thread_suspend_all: FAILED
>      [echo] INFO: TEST test_hythread_thin_monitor_fat_unlock: PASSED
>      [echo] INFO: TEST test_hythread_thin_monitor_enter_contended start
>      [echo] ERROR: Assertion '((IDATA)args[1])==(1)' failed at D:\users\gregory\harmony\trunk\working_vm\vm\tests\unit\thread\test_native_thin_monitor.c:153
>      [echo] INFO: TEST test_hythread_thin_monitor_enter_contended: FAILED

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