You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Rebriy (JIRA)" <ji...@apache.org> on 2006/10/17 11:46:35 UTC

[jira] Created: (HARMONY-1891) [drlvm][jvmti] VM hangs after multiple Single Step event enabling

[drlvm][jvmti] VM hangs after multiple Single Step event enabling
-----------------------------------------------------------------

                 Key: HARMONY-1891
                 URL: http://issues.apache.org/jira/browse/HARMONY-1891
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Pavel Rebriy
         Attachments: VM-hangs-after-multiple-Single-Step-event-enabling.patch

VM hands if Single Step event is enabled several times (and not disabled). It happens due to before enabling single step VM suspend all thread and if Single Step is already enabled VM doesn't resume threads.



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

        

[jira] Resolved: (HARMONY-1891) [drlvm][jvmti] VM hangs after multiple Single Step event enabling

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1891?page=all ]

Geir Magnusson Jr resolved HARMONY-1891.
----------------------------------------

    Resolution: Fixed

r470936

Ubuntu 6 - smoke, c-unit, ~kernel

> [drlvm][jvmti] VM hangs after multiple Single Step event enabling
> -----------------------------------------------------------------
>
>                 Key: HARMONY-1891
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1891
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Rebriy
>         Assigned To: Geir Magnusson Jr
>         Attachments: VM-hangs-after-multiple-Single-Step-event-enabling.patch, VM-hangs-after-multiple-Single-Step-event-enabling.patch
>
>
> VM hands if Single Step event is enabled several times (and not disabled). It happens due to before enabling single step VM suspend all thread and if Single Step is already enabled VM doesn't resume threads.

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

        

[jira] Commented: (HARMONY-1891) [drlvm][jvmti] VM hangs after multiple Single Step event enabling

Posted by "Pavel Rebriy (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1891?page=comments#action_12442875 ] 
            
Pavel Rebriy commented on HARMONY-1891:
---------------------------------------

Please do dos2unix on patch before applying.

> [drlvm][jvmti] VM hangs after multiple Single Step event enabling
> -----------------------------------------------------------------
>
>                 Key: HARMONY-1891
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1891
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Rebriy
>         Attachments: VM-hangs-after-multiple-Single-Step-event-enabling.patch, VM-hangs-after-multiple-Single-Step-event-enabling.patch
>
>
> VM hands if Single Step event is enabled several times (and not disabled). It happens due to before enabling single step VM suspend all thread and if Single Step is already enabled VM doesn't resume threads.

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

        

[jira] Updated: (HARMONY-1891) [drlvm][jvmti] VM hangs after multiple Single Step event enabling

Posted by "Pavel Rebriy (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1891?page=all ]

Pavel Rebriy updated HARMONY-1891:
----------------------------------

    Attachment: VM-hangs-after-multiple-Single-Step-event-enabling.patch

As Gregory suggected I added his comment instead of setting Single Step breakpoints in jvmti_send_thread_start_end_event() function.

The issue patch is updated.

> [drlvm][jvmti] VM hangs after multiple Single Step event enabling
> -----------------------------------------------------------------
>
>                 Key: HARMONY-1891
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1891
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Rebriy
>         Attachments: VM-hangs-after-multiple-Single-Step-event-enabling.patch, VM-hangs-after-multiple-Single-Step-event-enabling.patch
>
>
> VM hands if Single Step event is enabled several times (and not disabled). It happens due to before enabling single step VM suspend all thread and if Single Step is already enabled VM doesn't resume threads.

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

        

[jira] Assigned: (HARMONY-1891) [drlvm][jvmti] VM hangs after multiple Single Step event enabling

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1891?page=all ]

Geir Magnusson Jr reassigned HARMONY-1891:
------------------------------------------

    Assignee: Geir Magnusson Jr

> [drlvm][jvmti] VM hangs after multiple Single Step event enabling
> -----------------------------------------------------------------
>
>                 Key: HARMONY-1891
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1891
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Rebriy
>         Assigned To: Geir Magnusson Jr
>         Attachments: VM-hangs-after-multiple-Single-Step-event-enabling.patch, VM-hangs-after-multiple-Single-Step-event-enabling.patch
>
>
> VM hands if Single Step event is enabled several times (and not disabled). It happens due to before enabling single step VM suspend all thread and if Single Step is already enabled VM doesn't resume threads.

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

        

[jira] Updated: (HARMONY-1891) [drlvm][jvmti] VM hangs after multiple Single Step event enabling

Posted by "Pavel Rebriy (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1891?page=all ]

Pavel Rebriy updated HARMONY-1891:
----------------------------------

    Attachment: VM-hangs-after-multiple-Single-Step-event-enabling.patch

The patch fixes described problem. Besides it fixes setting Single Step breakpoints for new created VM thread.

> [drlvm][jvmti] VM hangs after multiple Single Step event enabling
> -----------------------------------------------------------------
>
>                 Key: HARMONY-1891
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1891
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Rebriy
>         Attachments: VM-hangs-after-multiple-Single-Step-event-enabling.patch
>
>
> VM hands if Single Step event is enabled several times (and not disabled). It happens due to before enabling single step VM suspend all thread and if Single Step is already enabled VM doesn't resume threads.

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

        

[jira] Commented: (HARMONY-1891) [drlvm][jvmti] VM hangs after multiple Single Step event enabling

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1891?page=comments#action_12442857 ] 
            
Gregory Shimansky commented on HARMONY-1891:
--------------------------------------------

AFAIK there is no need to set a breakpoint in a thread which is started inside of jvmti_send_thread_start_end_event function.

This function is called when no java code in the new thread is executed yet, so this function just sets single step state for this thread. When this thread will be ran, calling the first java method will set a breakpoint on the first bytecode if this mehod.

You can add the above paragraph as a comment in place of the code which you've added.

> [drlvm][jvmti] VM hangs after multiple Single Step event enabling
> -----------------------------------------------------------------
>
>                 Key: HARMONY-1891
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1891
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Rebriy
>         Attachments: VM-hangs-after-multiple-Single-Step-event-enabling.patch
>
>
> VM hands if Single Step event is enabled several times (and not disabled). It happens due to before enabling single step VM suspend all thread and if Single Step is already enabled VM doesn't resume threads.

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

        

[jira] Commented: (HARMONY-1891) [drlvm][jvmti] VM hangs after multiple Single Step event enabling

Posted by "Pavel Rebriy (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1891?page=comments#action_12442874 ] 
            
Pavel Rebriy commented on HARMONY-1891:
---------------------------------------

The right patch is #1.

> [drlvm][jvmti] VM hangs after multiple Single Step event enabling
> -----------------------------------------------------------------
>
>                 Key: HARMONY-1891
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1891
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Rebriy
>         Attachments: VM-hangs-after-multiple-Single-Step-event-enabling.patch, VM-hangs-after-multiple-Single-Step-event-enabling.patch
>
>
> VM hands if Single Step event is enabled several times (and not disabled). It happens due to before enabling single step VM suspend all thread and if Single Step is already enabled VM doesn't resume threads.

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