libgcj/100: Class.hashCode aborts
Jeff Sturm
jsturm@sigma6.com
Thu Nov 11 22:00:00 GMT 1999
>Number: 100
>Category: libgcj
>Synopsis: Class.hashCode aborts
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tromey
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 11 22:00:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Jeff Sturm
>Release: current cvs
>Organization:
>Environment:
[ fails at least on my x86 Debian 2.0 box when
dynamic linking -- Tom
PS static linking works ]
>Description:
public class HashTest {
public static void main(String[] args) {
HashTest ht = new HashTest();
System.err.println(ht.hashCode());
System.err.println(ht.getClass().hashCode());
}
}
gives me:
134770680
Aborted
gdb says:
Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) bt
#0 0x0 in ??()
#1 0x804ad4f in HashTest.main (args=0x806eff0) at
HashTest.java:6
Weird... hashCode() works in java.lang.Object, but fails in
java.lang.Class, which inherits from Object and does not override
hashCode().
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list