harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Salikh Zakirov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3044) [drlvm][thread manager] smoke test gc.LOS hangs from time to time on SUSE9 Linux x86 and x86_64
Date Mon, 19 Feb 2007 14:10:05 GMT

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

Salikh Zakirov commented on HARMONY-3044:
-----------------------------------------

The 'info thread' output looks very similar to a possible deadlock in monitor_wait_impl()
function:

thread\src\thread_native_fat_monitor.c:
218     if (self->suspend_request) {
219         hymutex_unlock(mon_ptr->mutex);
220         hythread_safe_point();
221         hymutex_lock(mon_ptr->mutex);
222     }

If execution takes if() branch (i.e. suspend_request != 0) just after ending wait on a monitor,
a potentially blocking call hymutex_lock() will be reached with non-zero suspend_disable_count.
If the suspender thread is the owner of the monitor lock at the moment, this will lead to
a deadlock.

> [drlvm][thread manager] smoke test gc.LOS hangs from time to time on SUSE9 Linux x86
and x86_64
> -----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3044
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3044
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: x86_64_info_thr.txt
>
>
> I saw the hangs on 2xXeon machines in JIT mode.
> To reproduce the hang please run the test iteratively as follows:
> while true; do $DRLVM -cp <classpath> gc.LOS; echo $i; i=$[i+1]; done &
> It usually needs no more than 100 iterations to hang.

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


Mime
View raw message