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 Pervov (JIRA)" <ji...@apache.org> on 2007/11/09 11:26:51 UTC

[jira] Created: (HARMONY-5101) [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.

[drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.
-------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-5101
                 URL: https://issues.apache.org/jira/browse/HARMONY-5101
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Linux
            Reporter: Pavel Pervov


DRLVM determines LWP of main thread at startup and then passes this LWP to GDB when crash happen.

It should determine LWP of crashed thread instead and exec GDB with correct LWP.

This simplifies debugging on Linux alot.

I'll attach the patch with the fix shortly.

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


[jira] Commented: (HARMONY-5101) [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.

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

Mark Hindess commented on HARMONY-5101:
---------------------------------------

This breaks on FreeBSD.  gettid is Linux only not POSIX.


> [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5101
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5101
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux
>            Reporter: Pavel Pervov
>            Assignee: Gregory Shimansky
>         Attachments: crash_handler.patch
>
>
> DRLVM determines LWP of main thread at startup and then passes this LWP to GDB when crash happen.
> It should determine LWP of crashed thread instead and exec GDB with correct LWP.
> This simplifies debugging on Linux alot.
> I'll attach the patch with the fix shortly.

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


[jira] Commented: (HARMONY-5101) [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.

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

Gregory Shimansky commented on HARMONY-5101:
--------------------------------------------

Additional patch was made for versions of linux that don't define _syscall0. Patch applied at 594222.

> [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5101
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5101
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux
>            Reporter: Pavel Pervov
>            Assignee: Gregory Shimansky
>         Attachments: crash_handler.patch
>
>
> DRLVM determines LWP of main thread at startup and then passes this LWP to GDB when crash happen.
> It should determine LWP of crashed thread instead and exec GDB with correct LWP.
> This simplifies debugging on Linux alot.
> I'll attach the patch with the fix shortly.

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


[jira] Closed: (HARMONY-5101) [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.

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

Gregory Shimansky closed HARMONY-5101.
--------------------------------------


No response, assuming ok.

> [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5101
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5101
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux
>            Reporter: Pavel Pervov
>            Assignee: Gregory Shimansky
>         Attachments: crash_handler.patch
>
>
> DRLVM determines LWP of main thread at startup and then passes this LWP to GDB when crash happen.
> It should determine LWP of crashed thread instead and exec GDB with correct LWP.
> This simplifies debugging on Linux alot.
> I'll attach the patch with the fix shortly.

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


[jira] Commented: (HARMONY-5101) [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.

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

Gregory Shimansky commented on HARMONY-5101:
--------------------------------------------

Even on Linux it is defined differently for different system headers because gettid is not standard. I made a workaround at 594886.

> [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5101
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5101
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux
>            Reporter: Pavel Pervov
>            Assignee: Gregory Shimansky
>         Attachments: crash_handler.patch
>
>
> DRLVM determines LWP of main thread at startup and then passes this LWP to GDB when crash happen.
> It should determine LWP of crashed thread instead and exec GDB with correct LWP.
> This simplifies debugging on Linux alot.
> I'll attach the patch with the fix shortly.

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


[jira] Assigned: (HARMONY-5101) [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.

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

Gregory Shimansky reassigned HARMONY-5101:
------------------------------------------

    Assignee: Gregory Shimansky

> [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5101
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5101
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux
>            Reporter: Pavel Pervov
>            Assignee: Gregory Shimansky
>         Attachments: crash_handler.patch
>
>
> DRLVM determines LWP of main thread at startup and then passes this LWP to GDB when crash happen.
> It should determine LWP of crashed thread instead and exec GDB with correct LWP.
> This simplifies debugging on Linux alot.
> I'll attach the patch with the fix shortly.

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


[jira] Resolved: (HARMONY-5101) [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.

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

Gregory Shimansky resolved HARMONY-5101.
----------------------------------------

    Resolution: Fixed

Patch is applied at 594174. Please check that the bug is fixed for you.

> [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5101
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5101
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux
>            Reporter: Pavel Pervov
>            Assignee: Gregory Shimansky
>         Attachments: crash_handler.patch
>
>
> DRLVM determines LWP of main thread at startup and then passes this LWP to GDB when crash happen.
> It should determine LWP of crashed thread instead and exec GDB with correct LWP.
> This simplifies debugging on Linux alot.
> I'll attach the patch with the fix shortly.

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


[jira] Updated: (HARMONY-5101) [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.

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

Pavel Pervov updated HARMONY-5101:
----------------------------------

    Attachment: crash_handler.patch

Here is the patch to fix the issue.

> [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5101
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5101
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux
>            Reporter: Pavel Pervov
>         Attachments: crash_handler.patch
>
>
> DRLVM determines LWP of main thread at startup and then passes this LWP to GDB when crash happen.
> It should determine LWP of crashed thread instead and exec GDB with correct LWP.
> This simplifies debugging on Linux alot.
> I'll attach the patch with the fix shortly.

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


[jira] Commented: (HARMONY-5101) [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.

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

Mark Hindess commented on HARMONY-5101:
---------------------------------------

Gregory,

Thanks for trying to fix this.  I wasn't really expecting you too!  It didn't quite work so I've made some further changes in r595021.

I also changed the #if defined(FREEBSD) to #if defined(LINUX) since Linux is the special case and otherwise we'd end up having #if defined(FREEBSD) || defined(AIX) || defined(MACOSX) || ...

Hope that is okay.


> [drlvm][crash_handler] GDB is started with LWP which belongs to main thread instead of one of crashed thread.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5101
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5101
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux
>            Reporter: Pavel Pervov
>            Assignee: Gregory Shimansky
>         Attachments: crash_handler.patch
>
>
> DRLVM determines LWP of main thread at startup and then passes this LWP to GDB when crash happen.
> It should determine LWP of crashed thread instead and exec GDB with correct LWP.
> This simplifies debugging on Linux alot.
> I'll attach the patch with the fix shortly.

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