harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Rebriy (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5390) [drlvm][signals] incorrect processing SIGINT and SIGQUIT signals
Date Tue, 15 Jan 2008 16:57:35 GMT
[drlvm][signals] incorrect processing SIGINT and SIGQUIT signals
----------------------------------------------------------------

                 Key: HARMONY-5390
                 URL: https://issues.apache.org/jira/browse/HARMONY-5390
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Pavel Rebriy


Signal handler incorrect processing SIGINT and SIGQUIT signals. To process these signals signal
handler calls vm_interrupt_handler() and vm_dump_handler() function simultaneously. Execution
of these function has several limitations:
1. These functions try to grab hythread_global_lock() to create new hythreads. Lock point
in signal handler can lead to dead lock.
2. Grabbing hythread_global_lock() requires hythread_suspend_enable() state of the current
thread. Signal handler can be executed on native unattached thread. That leads to crash during
accessing to hythread data.
3. vm_interrupt_handler() function executes exit() function which executes C++ destructors.
Destructor execution in unknown point could lead to crash or dead lock (for instance interruption
with kernel resources).
4. vm_dump_handler() function should don't break context during dumping threads information.


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