public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/21906] New: hang when invoking abstract method
@ 2005-06-04 6:11 tromey at gcc dot gnu dot org
2005-06-04 6:13 ` [Bug libgcj/21906] " tromey at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-06-04 6:11 UTC (permalink / raw)
To: java-prs
Try the test case "abstract.fail.abstract2" from the mauve
"verify" module. (You will need jasmin to build this.)
This test case gets a SEGV in the unwinder:
Program received signal SIGSEGV, Segmentation fault.
uw_frame_state_for (context=0xbfff9998, fs=0xbfff98d8) at linux-unwind.h:125
125 in linux-unwind.h
Continuing results in the same SEGV endlessly.
The underlying cause of this is that a _Jv_Method has 0x0 as its
'ncode'. Instead it would be more correct to put
'throw new AbstractMethodError' there. I have a partial patch
to do this (the compiler should also do this...).
However I think the unwinder crashing is a bug regardless of whether
this other problem is fixed.
--
Summary: hang when invoking abstract method
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tromey at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21906
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/21906] hang when invoking abstract method
2005-06-04 6:11 [Bug libgcj/21906] New: hang when invoking abstract method tromey at gcc dot gnu dot org
2005-06-04 6:13 ` [Bug libgcj/21906] " tromey at gcc dot gnu dot org
@ 2005-06-04 6:13 ` tromey at gcc dot gnu dot org
2005-06-14 20:26 ` tromey at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-06-04 6:13 UTC (permalink / raw)
To: java-prs
------- Additional Comments From tromey at gcc dot gnu dot org 2005-06-04 06:13 -------
Created an attachment (id=9026)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9026&action=view)
abstract/fail/abstract2.class
I've uploaded the class files so that you don't
have to dig up jasmin.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21906
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/21906] hang when invoking abstract method
2005-06-04 6:11 [Bug libgcj/21906] New: hang when invoking abstract method tromey at gcc dot gnu dot org
@ 2005-06-04 6:13 ` tromey at gcc dot gnu dot org
2005-06-04 6:13 ` tromey at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-06-04 6:13 UTC (permalink / raw)
To: java-prs
------- Additional Comments From tromey at gcc dot gnu dot org 2005-06-04 06:13 -------
Created an attachment (id=9025)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9025&action=view)
abstract/fail/abstract1.class
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21906
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/21906] hang when invoking abstract method
2005-06-04 6:11 [Bug libgcj/21906] New: hang when invoking abstract method tromey at gcc dot gnu dot org
2005-06-04 6:13 ` [Bug libgcj/21906] " tromey at gcc dot gnu dot org
2005-06-04 6:13 ` tromey at gcc dot gnu dot org
@ 2005-06-14 20:26 ` tromey at gcc dot gnu dot org
2005-06-15 19:11 ` cvs-commit at gcc dot gnu dot org
2005-06-15 19:12 ` tromey at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-06-14 20:26 UTC (permalink / raw)
To: java-prs
------- Additional Comments From tromey at gcc dot gnu dot org 2005-06-14 20:26 -------
I am testing a patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |tromey at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-06-14 20:26:11
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21906
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/21906] hang when invoking abstract method
2005-06-04 6:11 [Bug libgcj/21906] New: hang when invoking abstract method tromey at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-06-14 20:26 ` tromey at gcc dot gnu dot org
@ 2005-06-15 19:11 ` cvs-commit at gcc dot gnu dot org
2005-06-15 19:12 ` tromey at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-15 19:11 UTC (permalink / raw)
To: java-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-15 19:11 -------
Subject: Bug 21906
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: tromey@gcc.gnu.org 2005-06-15 19:11:43
Modified files:
libjava : ChangeLog defineclass.cc link.cc
libjava/include: jvm.h
gcc/java : ChangeLog class.c decl.c java-tree.h
Log message:
gcc/java/:
PR libgcj/21906:
* class.c (make_method_value): Use soft_abstractmethod_node for
abstract method.
* java-tree.h (soft_abstractmethod_node): New define.
(JTI_SOFT_ABSTRACTMETHOD_NODE): New enum constant.
* decl.c (java_init_decl_processing): Initialize
soft_abstractmethod_node.
libjava/:
PR libgcj/21906:
* defineclass.cc (handleMethodsEnd): Set ncode for abstract
methods.
* include/jvm.h (_Jv_ThrowAbstractMethodError): Declare.
* link.cc (_Jv_ThrowAbstractMethodError): Renamed. No longer
static.
(append_partial_itable): Use it.
(set_vtable_entries): Likewise.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3666&r2=1.3667
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/defineclass.cc.diff?cvsroot=gcc&r1=1.45&r2=1.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/link.cc.diff?cvsroot=gcc&r1=1.15&r2=1.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/include/jvm.h.diff?cvsroot=gcc&r1=1.87&r2=1.88
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1629&r2=1.1630
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/class.c.diff?cvsroot=gcc&r1=1.232&r2=1.233
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/decl.c.diff?cvsroot=gcc&r1=1.223&r2=1.224
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/java-tree.h.diff?cvsroot=gcc&r1=1.236&r2=1.237
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21906
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/21906] hang when invoking abstract method
2005-06-04 6:11 [Bug libgcj/21906] New: hang when invoking abstract method tromey at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-06-15 19:11 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-15 19:12 ` tromey at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-06-15 19:12 UTC (permalink / raw)
To: java-prs
------- Additional Comments From tromey at gcc dot gnu dot org 2005-06-15 19:12 -------
I checked in a fix.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21906
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-06-15 19:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-04 6:11 [Bug libgcj/21906] New: hang when invoking abstract method tromey at gcc dot gnu dot org
2005-06-04 6:13 ` [Bug libgcj/21906] " tromey at gcc dot gnu dot org
2005-06-04 6:13 ` tromey at gcc dot gnu dot org
2005-06-14 20:26 ` tromey at gcc dot gnu dot org
2005-06-15 19:11 ` cvs-commit at gcc dot gnu dot org
2005-06-15 19:12 ` tromey 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).