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

[jira] Created: (HARMONY-2614) [drlvm][jit] Line numbers in stack trace are incorrect

[drlvm][jit] Line numbers in stack trace are incorrect
------------------------------------------------------

                 Key: HARMONY-2614
                 URL: http://issues.apache.org/jira/browse/HARMONY-2614
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Vasily Zakharov
            Priority: Minor


When JIT is enabled and exception is thrown in some method, the line number for the exception in incorrect: in some cases, it points not to the line where
exception has occured, but to the first line of that method.

The code to reproduce is attached, here's the output. Note the line numbers for RI and DRLVM interpreter (11, 23, 35) and DRLVM JIT (11, 19, 31).

RI:

C:\> java LineNumberTest
Exception in thread "main" java.lang.RuntimeException
        at LineNumberTest.check2(LineNumberTest.java:11)
        at LineNumberTest.check1(LineNumberTest.java:23)
        at LineNumberTest.main(LineNumberTest.java:35)

DRLVM:

C:\> java -Xint LineNumberTest
Uncaught exception in main:
java.lang.RuntimeException
        at LineNumberTest.check2(LineNumberTest.java:11)
        at LineNumberTest.check1(LineNumberTest.java:23)
        at LineNumberTest.main(LineNumberTest.java:35)

C:\> java LineNumberTest
Uncaught exception in main:
java.lang.RuntimeException
        at LineNumberTest.check2(LineNumberTest.java:11)
        at LineNumberTest.check1(LineNumberTest.java:19)
        at LineNumberTest.main(LineNumberTest.java:31)


-- 
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-2614) [drlvm][jit] Line numbers in stack trace are incorrect

Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2614?page=comments#action_12457796 ] 
            
Mikhail Markov commented on HARMONY-2614:
-----------------------------------------

I've just link this JIRA to HARMONY-2372 and posted my previous comment :-)
BTW, to see these changes you may use "All" bookmark to see all modifications instead of default "Comments".

> [drlvm][jit] Line numbers in stack trace are incorrect
> ------------------------------------------------------
>
>                 Key: HARMONY-2614
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2614
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Vasily Zakharov
>            Priority: Minor
>         Attachments: LineNumberTest.java
>
>
> When JIT is enabled and exception is thrown in some method, the line number for the exception in incorrect: in some cases, it points not to the line where
> exception has occured, but to the first line of that method.
> The code to reproduce is attached, here's the output. Note the line numbers for RI and DRLVM interpreter (11, 23, 35) and DRLVM JIT (11, 19, 31).
> RI:
> C:\> java LineNumberTest
> Exception in thread "main" java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:23)
>         at LineNumberTest.main(LineNumberTest.java:35)
> DRLVM:
> C:\> java -Xint LineNumberTest
> Uncaught exception in main:
> java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:23)
>         at LineNumberTest.main(LineNumberTest.java:35)
> C:\> java LineNumberTest
> Uncaught exception in main:
> java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:19)
>         at LineNumberTest.main(LineNumberTest.java:31)

-- 
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-2614) [drlvm][jit] Line numbers in stack trace are incorrect

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

Vasily Zakharov updated HARMONY-2614:
-------------------------------------

    Attachment: LineNumberTest.java

Code to reproduce the bug

> [drlvm][jit] Line numbers in stack trace are incorrect
> ------------------------------------------------------
>
>                 Key: HARMONY-2614
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2614
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Vasily Zakharov
>            Priority: Minor
>         Attachments: LineNumberTest.java
>
>
> When JIT is enabled and exception is thrown in some method, the line number for the exception in incorrect: in some cases, it points not to the line where
> exception has occured, but to the first line of that method.
> The code to reproduce is attached, here's the output. Note the line numbers for RI and DRLVM interpreter (11, 23, 35) and DRLVM JIT (11, 19, 31).
> RI:
> C:\> java LineNumberTest
> Exception in thread "main" java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:23)
>         at LineNumberTest.main(LineNumberTest.java:35)
> DRLVM:
> C:\> java -Xint LineNumberTest
> Uncaught exception in main:
> java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:23)
>         at LineNumberTest.main(LineNumberTest.java:35)
> C:\> java LineNumberTest
> Uncaught exception in main:
> java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:19)
>         at LineNumberTest.main(LineNumberTest.java:31)

-- 
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] Closed: (HARMONY-2614) [drlvm][jit] Line numbers in stack trace are incorrect

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

Vasily Zakharov closed HARMONY-2614.
------------------------------------

    Resolution: Cannot Reproduce

Confirmed, I can't reproduce it also.

Closing the issue as 'Cannot Reproduce'.


> [drlvm][jit] Line numbers in stack trace are incorrect
> ------------------------------------------------------
>
>                 Key: HARMONY-2614
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2614
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Vasily Zakharov
>            Priority: Minor
>         Attachments: LineNumberTest.java
>
>
> When JIT is enabled and exception is thrown in some method, the line number for the exception in incorrect: in some cases, it points not to the line where
> exception has occured, but to the first line of that method.
> The code to reproduce is attached, here's the output. Note the line numbers for RI and DRLVM interpreter (11, 23, 35) and DRLVM JIT (11, 19, 31).
> RI:
> C:\> java LineNumberTest
> Exception in thread "main" java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:23)
>         at LineNumberTest.main(LineNumberTest.java:35)
> DRLVM:
> C:\> java -Xint LineNumberTest
> Uncaught exception in main:
> java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:23)
>         at LineNumberTest.main(LineNumberTest.java:35)
> C:\> java LineNumberTest
> Uncaught exception in main:
> java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:19)
>         at LineNumberTest.main(LineNumberTest.java:31)

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


[jira] Commented: (HARMONY-2614) [drlvm][jit] Line numbers in stack trace are incorrect

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

Yuri Dolgov commented on HARMONY-2614:
--------------------------------------

I've looked into this bug and couldn't reproduce it on Windows IA32 on Harmony r548678.
Vasiliy, could you please verify.

> [drlvm][jit] Line numbers in stack trace are incorrect
> ------------------------------------------------------
>
>                 Key: HARMONY-2614
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2614
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Vasily Zakharov
>            Priority: Minor
>         Attachments: LineNumberTest.java
>
>
> When JIT is enabled and exception is thrown in some method, the line number for the exception in incorrect: in some cases, it points not to the line where
> exception has occured, but to the first line of that method.
> The code to reproduce is attached, here's the output. Note the line numbers for RI and DRLVM interpreter (11, 23, 35) and DRLVM JIT (11, 19, 31).
> RI:
> C:\> java LineNumberTest
> Exception in thread "main" java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:23)
>         at LineNumberTest.main(LineNumberTest.java:35)
> DRLVM:
> C:\> java -Xint LineNumberTest
> Uncaught exception in main:
> java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:23)
>         at LineNumberTest.main(LineNumberTest.java:35)
> C:\> java LineNumberTest
> Uncaught exception in main:
> java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:19)
>         at LineNumberTest.main(LineNumberTest.java:31)

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


[jira] Commented: (HARMONY-2614) [drlvm][jit] Line numbers in stack trace are incorrect

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2614?page=comments#action_12457762 ] 
            
Vasily Zakharov commented on HARMONY-2614:
------------------------------------------

What do you mean, Mikhail?

Sure, the line numbers for RI and Interpreter are the same, but the line numbers for JIT are different, and that is the problem.


> [drlvm][jit] Line numbers in stack trace are incorrect
> ------------------------------------------------------
>
>                 Key: HARMONY-2614
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2614
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Vasily Zakharov
>            Priority: Minor
>         Attachments: LineNumberTest.java
>
>
> When JIT is enabled and exception is thrown in some method, the line number for the exception in incorrect: in some cases, it points not to the line where
> exception has occured, but to the first line of that method.
> The code to reproduce is attached, here's the output. Note the line numbers for RI and DRLVM interpreter (11, 23, 35) and DRLVM JIT (11, 19, 31).
> RI:
> C:\> java LineNumberTest
> Exception in thread "main" java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:23)
>         at LineNumberTest.main(LineNumberTest.java:35)
> DRLVM:
> C:\> java -Xint LineNumberTest
> Uncaught exception in main:
> java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:23)
>         at LineNumberTest.main(LineNumberTest.java:35)
> C:\> java LineNumberTest
> Uncaught exception in main:
> java.lang.RuntimeException
>         at LineNumberTest.check2(LineNumberTest.java:11)
>         at LineNumberTest.check1(LineNumberTest.java:19)
>         at LineNumberTest.main(LineNumberTest.java:31)

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