java/1269: getClass() freezes program

osk@hem.passagen.se osk@hem.passagen.se
Wed Dec 20 12:23:00 GMT 2000


>Number:         1269
>Category:       java
>Synopsis:       getClass() freezes program
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:18:31 PST 2000
>Closed-Date:    Mon Jun 05 22:11:31 PDT 2000
>Last-Modified:  Mon Jun  5 22:16:00 PDT 2000
>Originator:     Oskar Liljeblad
>Release:        egcs 2.96 CVS 20000417, libgcj CVS 20000417
>Organization:
>Environment:
Linux 2.2 with libc 2.1
>Description:
When compiling and running the program below,
two things may happen:

  it crashes (SEGV)
  it freezes - nothing happens, not much CPU use,
               interrupting gets out of the program
>How-To-Repeat:
class Dumb {
	public Dumb() {
		System.out.println(getClass());
	}
	public static void main(String[] args) {
		new Dumb();
	}
}
>Fix:

>Release-Note:

>Audit-Trail:

Formerly PR gcj/250


From: Bryce McKinlay <bryce@albatross.co.nz>
To: osk@hem.passagen.se
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/250: getClass() freezes program
Date: Mon, 29 May 2000 21:30:02 +1200

 Hi Oskar,
 
 osk@hem.passagen.se wrote:
 
 > When compiling and running the program below,
 > two things may happen:
 >
 >   it crashes (SEGV)
 >   it freezes - nothing happens, not much CPU use,
 >                interrupting gets out of the program
 
 Thanks for your bug report. This is, unfortunatly, a known problem with
 the java.lang.Class vtable - calling several methods on instances of
 java.lang.Class from java code will result in crashing. It has been
 reported that static linking will work around this problem.
 
 See PR gcj/100
 
 regards
 
   [ bryce ]
 
 

From: Tom Tromey <tromey@cygnus.com>
To: Bryce McKinlay <bryce@albatross.co.nz>
Cc: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com
Subject: Re: gcj/250: getClass() freezes program
Date: Mon, 29 May 2000 20:06:08 -0700 (PDT)

 Bryce>  Thanks for your bug report. This is, unfortunatly, a known
 Bryce>  problem with the java.lang.Class vtable - calling several
 Bryce>  methods on instances of java.lang.Class from java code will
 Bryce>  result in crashing. It has been reported that static linking
 Bryce>  will work around this problem.
 
 We believe this is an ld.so bug.
 I think we'll know soon.
 
 Tom
State-Changed-From-To: open->closed
State-Changed-By: bryce
State-Changed-When: Mon Jun  5 22:11:31 2000
State-Changed-Why:
    FIXED, by this patch:
    http://gcc.gnu.org/ml/gcc-patches/2000-06/msg00064.html

From: bryce@albatross.co.nz
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com, osk@hem.passagen.se
Cc:  
Subject: Re: gcj/250
Date: 6 Jun 2000 05:11:31 -0000

 Synopsis: getClass() freezes program
 
 State-Changed-From-To: open->closed
 State-Changed-By: bryce
 State-Changed-When: Mon Jun  5 22:11:31 2000
 State-Changed-Why:
     FIXED, by this patch:
     http://gcc.gnu.org/ml/gcc-patches/2000-06/msg00064.html
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=250&database=java
>Unformatted:




More information about the Gcc-prs mailing list