public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/5165: Loading class fields with a ConstantValue attribute
@ 2001-12-21 14:00 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2001-12-21 14:00 UTC (permalink / raw)
  To: Daniel.Bonniot, gcc-bugs, gcc-prs, java-prs, nobody, tromey

Synopsis: Loading class fields with a ConstantValue attribute

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Fri Dec 21 14:00:37 2001
Responsible-Changed-Why:
    I'm handling this.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Fri Dec 21 14:00:37 2001
State-Changed-Why:
    Thanks.  I was able to reproduce this problem with the trunk cvs gcj.
    I've checked in the fix.  It will appear in gcj 3.1.  
    Unfortunately it is too late for 3.0.3.
    If you try the trunk version and you still have problems,
    tell me and I will reopen the PR.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5165


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

* java/5165: Loading class fields with a ConstantValue attribute
@ 2001-12-20  8:16 Daniel.Bonniot
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel.Bonniot @ 2001-12-20  8:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5165
>Category:       java
>Synopsis:       Loading class fields with a ConstantValue attribute
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 20 08:16:03 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Bonniot
>Release:        gcc version 3.0.2 (Debian)
>Organization:
>Environment:
Debian GNU/Linux
Gcj is actually from Debian package version 2:3.0.3-1,
so this might be a gcj 3.0.3 with a bogus version report
>Description:

I include a single .class file, generated by the Nice compiler.
This bug is link to loading a class field
that has a ConstantValue attribute.
Java runs fine on this class, but if compiled with gcj,
the generated program throws a NullPointer.

>How-To-Repeat:
$ ~/tmp ls niceeee/                                                                          [05:08 20/12/01]
main.nice  package.class  package.nicei
$ ~/tmp rm niceeee/package.nicei                                                             [05:08 20/12/01]
$ ~/tmp ls niceeee                                                                           [05:09 20/12/01]
main.nice  package.class
$ ~/tmp CLASSPATH=. java niceeee.package                                                     [05:09 20/12/01]
$ ~/tmp gcj --main=niceeee.package niceeee/package.class                                     [05:09 20/12/01]
$ ~/tmp ./a.out                                                                              [05:09 20/12/01]
Exception in thread "main" java.lang.NullPointerException
   at 0x401465c9: _Jv_ThrowSignal (/usr/lib/libgcj.so.2)
   at 0x401465f7: ?? (??:0)
   at 0xbf7ff994: ?? (??:0)
   at 0x08048a84: niceeee::package::main__U24_0__U24___U24_0040_(JArray<java::lang::String*>*) (/home/daniel/tmp/niceeee/package.class:0)
   at 0x08048a59: niceeee::package::main(JArray<java::lang::String*>*) (/home/daniel/tmp/niceeee/package.class:0)
   at 0x4015b487: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.2)
   at 0x4016570b: java.lang.Thread.run_(java.lang.Object) (/usr/lib/libgcj.so.2)
   at 0x40240b18: ?? (??:0)
   at 0x4040900a: GC_start_routine (/usr/lib/libgcjgc.so.1)
   at 0x40422eca: ?? (??:0)
   at 0x405193ca: __clone (/lib/libc.so.6)
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-java-vm; name="package.class"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="package.class"

yv66vgADAC0AIAEAD25pY2VlZWUvcGFja2FnZQcAAQEADW1haW4kMCQkMDA0MF8BABYoW0xqYXZh
L2xhbmcvU3RyaW5nOylWDAADAAQKAAIABQEABWFsbG9jAQASTGphdmEvbGFuZy9TdHJpbmc7DAAH
AAgJAAIACQEAEGphdmEvbGFuZy9TdHJpbmcHAAsBAAd2YWx1ZU9mAQAmKExqYXZhL2xhbmcvT2Jq
ZWN0OylMamF2YS9sYW5nL1N0cmluZzsMAA0ADgoADAAPAQAFQUxMT0MIABEBABBqYXZhL2xhbmcv
T2JqZWN0BwATAQANQ29uc3RhbnRWYWx1ZQEABG1haW4BAARDb2RlAQASTG9jYWxWYXJpYWJsZVRh
YmxlAQAEYXJncwEAE1tMamF2YS9sYW5nL1N0cmluZzsBAA9MaW5lTnVtYmVyVGFibGUBAApkZWZp
bml0aW9uAQAIcGF0dGVybnMBAAg8Y2xpbml0PgEAAygpVgAhAAIAFAAAAAEACQAHAAgAAQAVAAAA
AgASAAMACQAWAAQAAQAXAAAAIwABAAEAAAAFKrgABrEAAAABABgAAAAMAAEAAAAFABkAGgAAAAkA
AwAEAAMAFwAAADIAAQABAAAACLIACrgAEFexAAAAAgAYAAAADAABAAAACAAZABoAAAAbAAAABgAB
AAAACAAcAAAAEG5pY2UkbGFuZyRtYWluJDAAHQAAAAJAXwAJAB4AHwABABcAAAAWAAAAAAAAAAqn
AAexp///p//9AAAAAAAA


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

end of thread, other threads:[~2001-12-21 22:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-21 14:00 java/5165: Loading class fields with a ConstantValue attribute tromey
  -- strict thread matches above, loose matches on Subject: below --
2001-12-20  8:16 Daniel.Bonniot

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