public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/5537] Error compiling simple bytecode with jsr
       [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
@ 2004-10-14 14:16 ` pinskia at gcc dot gnu dot org
  2004-10-21 13:40 ` aph at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-14 14:16 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-14 14:16 -------
New error message on the mainline:
A.java: In class `A':
A.java: In method `A.main(java.lang.String[])':
A.java:8: error: stack underflow

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-06-06 01:37:12         |2004-10-14 14:16:31
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5537


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/5537] Error compiling simple bytecode with jsr
       [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
  2004-10-14 14:16 ` [Bug java/5537] Error compiling simple bytecode with jsr pinskia at gcc dot gnu dot org
@ 2004-10-21 13:40 ` aph at gcc dot gnu dot org
  2005-01-10 11:26 ` rmathew at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-10-21 13:40 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From aph at gcc dot gnu dot org  2004-10-21 13:40 -------
We're merging the new verifier on the gcj-abi-2-dev-branch.

Once that is done, this bug should be fixed.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aph at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5537


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/5537] Error compiling simple bytecode with jsr
       [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
  2004-10-14 14:16 ` [Bug java/5537] Error compiling simple bytecode with jsr pinskia at gcc dot gnu dot org
  2004-10-21 13:40 ` aph at gcc dot gnu dot org
@ 2005-01-10 11:26 ` rmathew at gcc dot gnu dot org
  2005-01-10 11:34 ` aph at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2005-01-10 11:26 UTC (permalink / raw)
  To: java-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1298 bytes --]


------- Additional Comments From rmathew at gcc dot gnu dot org  2005-01-10 11:26 -------
Now that the BC-ABI work has been merged, the testcase no longer
gives an error when compiled with "-findirect-dispatch".

However, it ICEs when compiled without!

Relevant info:

Program received signal SIGSEGV, Segmentation fault.
verify_jvm_instructions (jcf=0xb75f5500, byte_ops=0x87adcb4 "¨", length=13)
    at /home/ranmath/src/gcc/gcc-20050110/gcc/java/verify.c:712
712             if (TREE_CODE (tmp) != TREE_LIST)
(gdb) bt
#0  verify_jvm_instructions (jcf=0xb75f5500, byte_ops=0x87adcb4 "¨", length=13)
    at /home/ranmath/src/gcc/gcc-20050110/gcc/java/verify.c:712
#1  0x0807de9d in expand_byte_code (jcf=0xb75f5500, method=0x87a85f8)
    at /home/ranmath/src/gcc/gcc-20050110/gcc/java/expr.c:2960
#2  0x0808c774 in parse_class_file ()
    at /home/ranmath/src/gcc/gcc-20050110/gcc/java/jcf-parse.c:919
#3  0x0808ec8a in java_parse_file (set_yydebug=0)
    at /home/ranmath/src/gcc/gcc-20050110/gcc/java/jcf-parse.c:1284
#4  0x082e03a0 in toplev_main (argc=142247416, argv=0xbffface4)
    at /home/ranmath/src/gcc/gcc-20050110/gcc/toplev.c:996
#5  0x0038579d in __libc_start_main () from /lib/tls/libc.so.6
#6  0x08049b71 in _start ()



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5537


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/5537] Error compiling simple bytecode with jsr
       [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
                   ` (2 preceding siblings ...)
  2005-01-10 11:26 ` rmathew at gcc dot gnu dot org
@ 2005-01-10 11:34 ` aph at gcc dot gnu dot org
  2005-01-10 11:59 ` rmathew at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-01-10 11:34 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From aph at gcc dot gnu dot org  2005-01-10 11:33 -------
It's extremely unlikely that anyone will fix bugs in the old verifier.

However, it is still used for the non- indirect dispatch case.  I don't know if
it's possible to use the new verifier for that: probably not.  It certainly
could be done.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|aph at gcc dot gnu dot org  |
   Last reconfirmed|2004-10-14 14:16:31         |2005-01-10 11:33:53
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5537


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/5537] Error compiling simple bytecode with jsr
       [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
                   ` (3 preceding siblings ...)
  2005-01-10 11:34 ` aph at gcc dot gnu dot org
@ 2005-01-10 11:59 ` rmathew at gcc dot gnu dot org
  2005-03-02  3:17 ` bonniot at users dot sf dot net
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2005-01-10 11:59 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From rmathew at gcc dot gnu dot org  2005-01-10 11:59 -------
In that case, we should either make -findirect-dispatch the default
or try to fix this bug. Users will otherwise unnecessarily be bitten
by such old verifier bugs. I'm willing to try hunting this particular
bug down if -findirect-dispatch can't be made the default just yet.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5537


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/5537] Error compiling simple bytecode with jsr
       [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
                   ` (4 preceding siblings ...)
  2005-01-10 11:59 ` rmathew at gcc dot gnu dot org
@ 2005-03-02  3:17 ` bonniot at users dot sf dot net
  2005-03-02 13:09 ` rmathew at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: bonniot at users dot sf dot net @ 2005-03-02  3:17 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From bonniot at users dot sf dot net  2005-03-02 00:11 -------
What's the take on this bug? Can indirect-dispatch be made the default in the
foreseable future? Can the old verifier be fixed?

I'm now running nightly builds of gcj on the Nice compiler testsuite (1250
testcases). There are currently 11 failures, and 4 seem to be instances of this
verifier bug. So fixing this would be a great improvement.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5537


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/5537] Error compiling simple bytecode with jsr
       [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
                   ` (5 preceding siblings ...)
  2005-03-02  3:17 ` bonniot at users dot sf dot net
@ 2005-03-02 13:09 ` rmathew at gcc dot gnu dot org
  2005-03-02 13:43 ` daniel dot bonniot at inria dot fr
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2005-03-02 13:09 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From rmathew at gcc dot gnu dot org  2005-03-02 07:54 -------
(In reply to comment #13)
> What's the take on this bug? Can indirect-dispatch be made the default in the
> foreseable future? Can the old verifier be fixed?
> 
> I'm now running nightly builds of gcj on the Nice compiler testsuite (1250
> testcases). There are currently 11 failures, and 4 seem to be instances of this
> verifier bug. So fixing this would be a great improvement.

See:

  http://gcc.gnu.org/ml/java-patches/2005-q1/msg00568.html

which makes even the non-indirect-dispatch case use the new
shiny verifier.

It definitely fixes this PR and a whole lot of other verifier
bugs. Can you test it with your application too? (Thanks in
advance for doing it.)

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5537


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/5537] Error compiling simple bytecode with jsr
       [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
                   ` (6 preceding siblings ...)
  2005-03-02 13:09 ` rmathew at gcc dot gnu dot org
@ 2005-03-02 13:43 ` daniel dot bonniot at inria dot fr
  2005-03-02 17:25 ` rmathew at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: daniel dot bonniot at inria dot fr @ 2005-03-02 13:43 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From daniel dot bonniot at inria dot fr  2005-03-02 10:13 -------
Subject: Re:  Error compiling simple bytecode with jsr


>  http://gcc.gnu.org/ml/java-patches/2005-q1/msg00568.html
>
>which makes even the non-indirect-dispatch case use the new
>shiny verifier.
>
>It definitely fixes this PR and a whole lot of other verifier
>bugs. Can you test it with your application too? (Thanks in
>advance for doing it.)
>  
>

OK, I patched my tree, I'll report the results (fixes and regressions) 
after the next build.

In your list message, you mention only one fix in the gcc testsuite, 
pr13107. Does this mean pr5537 is not fixed, or it does not have a testcase?



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5537


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/5537] Error compiling simple bytecode with jsr
       [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
                   ` (7 preceding siblings ...)
  2005-03-02 13:43 ` daniel dot bonniot at inria dot fr
@ 2005-03-02 17:25 ` rmathew at gcc dot gnu dot org
  2005-03-02 17:26 ` daniel dot bonniot at inria dot fr
  2005-03-09  9:19 ` rmathew at gcc dot gnu dot org
  10 siblings, 0 replies; 11+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2005-03-02 17:25 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From rmathew at gcc dot gnu dot org  2005-03-02 13:09 -------
> OK, I patched my tree, I'll report the results (fixes and regressions) 
> after the next build.

Thanks.


> In your list message, you mention only one fix in the gcc testsuite, 
> pr13107. Does this mean pr5537 is not fixed, or it does not have a testcase?

The latter. We do not have any bytecode verification tests
in the libjava testsuite (yet). We use the Mauve verifier testsuite instead.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5537


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/5537] Error compiling simple bytecode with jsr
       [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
                   ` (8 preceding siblings ...)
  2005-03-02 17:25 ` rmathew at gcc dot gnu dot org
@ 2005-03-02 17:26 ` daniel dot bonniot at inria dot fr
  2005-03-09  9:19 ` rmathew at gcc dot gnu dot org
  10 siblings, 0 replies; 11+ messages in thread
From: daniel dot bonniot at inria dot fr @ 2005-03-02 17:26 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From daniel dot bonniot at inria dot fr  2005-03-02 13:42 -------
Subject: Re:  Error compiling simple bytecode with jsr

I just finished running my testsuite with gcj/new_verifier. The results are 
very good:

6 fixes (only 5 failures instead of 11 previously)
0 regressions
overhead is small (around 1% of user time)

I say: go for it!

Great work of whoever worked on this new verifier.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5537


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/5537] Error compiling simple bytecode with jsr
       [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
                   ` (9 preceding siblings ...)
  2005-03-02 17:26 ` daniel dot bonniot at inria dot fr
@ 2005-03-09  9:19 ` rmathew at gcc dot gnu dot org
  10 siblings, 0 replies; 11+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2005-03-09  9:19 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From rmathew at gcc dot gnu dot org  2005-03-09 09:04 -------
Now that the new verifier has been enabled, this bug has been fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5537


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-03-09  9:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020130042601.5537.daniel.bonniot@inria.fr>
2004-10-14 14:16 ` [Bug java/5537] Error compiling simple bytecode with jsr pinskia at gcc dot gnu dot org
2004-10-21 13:40 ` aph at gcc dot gnu dot org
2005-01-10 11:26 ` rmathew at gcc dot gnu dot org
2005-01-10 11:34 ` aph at gcc dot gnu dot org
2005-01-10 11:59 ` rmathew at gcc dot gnu dot org
2005-03-02  3:17 ` bonniot at users dot sf dot net
2005-03-02 13:09 ` rmathew at gcc dot gnu dot org
2005-03-02 13:43 ` daniel dot bonniot at inria dot fr
2005-03-02 17:25 ` rmathew at gcc dot gnu dot org
2005-03-02 17:26 ` daniel dot bonniot at inria dot fr
2005-03-09  9:19 ` rmathew at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).