public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError
@ 2005-05-21  2:49 kkojima at gcc dot gnu dot org
  2005-05-23 19:43 ` [Bug libgcj/21692] " rth at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2005-05-21  2:49 UTC (permalink / raw)
  To: java-prs

There are failures on the libjava testsuites for sh4-unknown-linux-gnu

FAIL: Class_1 execution - source compiled test
FAIL: Class_1 execution - bytecode->native test
FAIL: Class_1 -O3 execution - source compiled test
FAIL: Class_1 -O3 execution - bytecode->native test
FAIL: InvokeInterface execution - bytecode->native test
FAIL: InvokeInterface -O3 execution - bytecode->native test
FAIL: PR12416 execution - bytecode->native test
FAIL: PR12416 -O3 execution - bytecode->native test
FAIL: PR260 execution - bytecode->native test
FAIL: PR260 -O3 execution - bytecode->native test
FAIL: SyncTest execution - bytecode->native test
FAIL: SyncTest -O3 execution - bytecode->native test
FAIL: invokethrow execution - bytecode->native test
FAIL: invokethrow -O3 execution - bytecode->native test
FAIL: pr179 execution - bytecode->native test
FAIL: pr179 -O3 execution - bytecode->native test
FAIL: pr8415 execution - bytecode->native test
FAIL: pr8415 -O3 execution - bytecode->native test
FAIL: stringconst2 output - source compiled test
FAIL: stringconst2 output - bytecode->native test
FAIL: stringconst2 -O3 output - source compiled test
FAIL: stringconst2 -O3 output - bytecode->native test

and it looks that the same failures have been seen for {alpha, hppa,
ia64, powerpc, s390}*-*-linux-gnu in gcc-testresults, though there is
no such failure in the testresults on {i686, x86_64}-*-linux-gnu and
powerpc-apple-darwin*.  A typical error is:

Exception in thread "main" java.lang.NoClassDefFoundError: two
   at InvokeInterface.class$ (Throwable.java:37)
   at InvokeInterface.main (InvokeInterface.java:42)

on sh4-unknown-linux-gnu.

-- 
           Summary: unexpected java.lang.NoClassDefFoundError
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kkojima at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org,tromey at redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh4-unknown-linux-gnu


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


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

* [Bug libgcj/21692] unexpected java.lang.NoClassDefFoundError
  2005-05-21  2:49 [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError kkojima at gcc dot gnu dot org
@ 2005-05-23 19:43 ` rth at gcc dot gnu dot org
  2005-05-23 19:47 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-05-23 19:43 UTC (permalink / raw)
  To: java-prs



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


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


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

* [Bug libgcj/21692] unexpected java.lang.NoClassDefFoundError
  2005-05-21  2:49 [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError kkojima at gcc dot gnu dot org
  2005-05-23 19:43 ` [Bug libgcj/21692] " rth at gcc dot gnu dot org
@ 2005-05-23 19:47 ` rguenth at gcc dot gnu dot org
  2005-05-23 20:06 ` [Bug libgcj/21692] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-05-23 19:47 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-05-23 19:46 -------
They fail for me on x86_64, too.

-- 


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


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

* [Bug libgcj/21692] [4.1 Regression] unexpected java.lang.NoClassDefFoundError
  2005-05-21  2:49 [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError kkojima at gcc dot gnu dot org
  2005-05-23 19:43 ` [Bug libgcj/21692] " rth at gcc dot gnu dot org
  2005-05-23 19:47 ` rguenth at gcc dot gnu dot org
@ 2005-05-23 20:06 ` pinskia at gcc dot gnu dot org
  2005-05-24 18:15 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-23 20:06 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|unexpected                  |[4.1 Regression] unexpected
                   |java.lang.NoClassDefFoundErr|java.lang.NoClassDefFoundErr
                   |or                          |or
   Target Milestone|---                         |4.1.0


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


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

* [Bug libgcj/21692] [4.1 Regression] unexpected java.lang.NoClassDefFoundError
  2005-05-21  2:49 [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError kkojima at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-05-23 20:06 ` [Bug libgcj/21692] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-24 18:15 ` pinskia at gcc dot gnu dot org
  2005-05-24 21:15 ` rth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-24 18:15 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-24 18:15 -------
Confirmed, here is some analysis from RTH on IRC:
[16:54] < rth> we hashed a plt entry.
[16:54] < rth> grrr.
[17:30] < tromey> ah
[17:30] < tromey> I'm glad you debugged this then
[17:32] < rth> so the problem is that we're not marking some methods as local, which means the 
make_local_function_alias trick fails.
[17:35] < tromey> in make_local_function_alias I see:
[17:35] < tromey>   if (DECL_EXTERNAL (method))
[17:35] < tromey>     return method;
[17:35] < tromey> the problem here is that all CNI native methods will be DECL_EXTERNAL, I think
[17:35] < tromey> is this even fixable?  (I have no idea about this code either)
[17:35] < rth> oh, is forName a cni method?
[17:36] < tromey> there are 2 overloads, one is native
[17:36] < tromey> oh, wait, both are native
[17:36] < tromey> I didn't realize that
[17:37] < rth> it's very tricky.
[17:37] < tromey> ok
[17:37] < rth> we would have to create hidden aliases for all native methods, and Just Know to use that 
alias when building the class table.
[17:38] < rth> so i guess it's not that tricky.  just a bit o coordination between c++ and java front ends.
[17:38] < tromey> oh, I see... modify g++ to also emit the hidden aliases
[17:38] < rth> It does assume that cni methods are linked together with its java class.
[17:38] < rth> yes.
[17:39] < tromey> at the moment there is no other way to really use cni methods
[17:39] < tromey> so that is fine, I think
[17:40] < rth> i'll see what i can come up with.
[17:40] < tromey> thank you


And this is reason why it works just fine on ppc-darwin, because darwin always use the function 
address and not a stub/plt entry for the function pointers.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-24 18:15:46
               date|                            |


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


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

* [Bug libgcj/21692] [4.1 Regression] unexpected java.lang.NoClassDefFoundError
  2005-05-21  2:49 [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError kkojima at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-05-24 18:15 ` pinskia at gcc dot gnu dot org
@ 2005-05-24 21:15 ` rth at gcc dot gnu dot org
  2005-05-25 22:09 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-05-24 21:15 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
                   |dot org                     |
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2005-
                   |                            |05/msg02328.html
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch
   Last reconfirmed|2005-05-24 18:15:46         |2005-05-24 21:15:06
               date|                            |


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


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

* [Bug libgcj/21692] [4.1 Regression] unexpected java.lang.NoClassDefFoundError
  2005-05-21  2:49 [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError kkojima at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-05-24 21:15 ` rth at gcc dot gnu dot org
@ 2005-05-25 22:09 ` cvs-commit at gcc dot gnu dot org
  2005-05-25 23:24 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-25 22:09 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-25 22:09 -------
Subject: Bug 21692

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2005-05-25 22:08:31

Modified files:
	gcc/cp         : ChangeLog cp-tree.h decl2.c method.c 
	gcc/java       : ChangeLog Make-lang.in class.c decl.c 
	                 java-tree.h lang.c mangle.c 

Log message:
	PR libgcj/21692
	cp/
	* cp-tree.h (make_alias_for): Declare.
	* decl2.c (build_java_method_aliases): New.
	(cp_finish_file): Call it.
	* method.c (make_alias_for): Split out from ...
	(make_alias_for_thunk): ... here.
	
	java/
	* Make-lang.in (java/mangle.o): Depend on LANGHOOKS_DEF_H.
	* class.c (build_class_ref): Set DECL_CLASS_FIELD_P and
	DECL_CONTEXT; avoid pushdecl_top_level.
	(build_dtable_decl): Set DECL_VTABLE_P and DECL_CONTEXT.
	(layout_class): Don't SET_DECL_ASSEMBLER_NAME.
	(layout_class_method): Likewise.
	* decl.c (java_mark_cni_decl_local): New.
	(java_mark_class_local): Use it.
	* java-tree.h (DECL_LOCAL_CNI_METHOD_P): New.
	(DECL_CLASS_FIELD_P, DECL_VTABLE_P): New.
	(struct lang_decl_func): Add local_cni;
	(struct lang_decl_var): Add class_field, vtable.
	(java_mangle_decl): Declare.
	* lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
	* mangle.c: Remove dup obstack.h; include langhooks-def.h.
	(mangle_obstack_1): New.
	(java_mangle_decl): Remove obstack argument.  Call mangle_class_field,
	mangle_vtable, and mangle_local_cni_method_decl.  Fall back to
	lhd_set_decl_assembler_name for things that don't need mangling.
	(mangle_class_field): Rename from java_mangle_class_field, make
	static, don't call init_mangling or finish_mangling.
	(mangle_vtable): Similarly.
	(mangle_local_cni_method_decl): New.
	(init_mangling): Remove obstack argument.  Use &mangle_obstack_1,
	gcc_assert, and MANGLE_RAW_STRING.
	(finish_mangling): Use gcc_assert, remove if 0 debugging code.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4755&r2=1.4756
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.1137&r2=1.1138
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&r1=1.782&r2=1.783
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/method.c.diff?cvsroot=gcc&r1=1.328&r2=1.329
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1616&r2=1.1617
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/Make-lang.in.diff?cvsroot=gcc&r1=1.158&r2=1.159
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/class.c.diff?cvsroot=gcc&r1=1.229&r2=1.230
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/decl.c.diff?cvsroot=gcc&r1=1.221&r2=1.222
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/java-tree.h.diff?cvsroot=gcc&r1=1.231&r2=1.232
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/lang.c.diff?cvsroot=gcc&r1=1.171&r2=1.172
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/mangle.c.diff?cvsroot=gcc&r1=1.32&r2=1.33



-- 


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


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

* [Bug libgcj/21692] [4.1 Regression] unexpected java.lang.NoClassDefFoundError
  2005-05-21  2:49 [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError kkojima at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-05-25 22:09 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-25 23:24 ` cvs-commit at gcc dot gnu dot org
  2005-05-25 23:25 ` rth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-25 23:24 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-25 23:24 -------
Subject: Bug 21692

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2005-05-25 23:24:08

Modified files:
	libjava        : ChangeLog configure configure.ac configure.host 
	                 stacktrace.cc 
Added files:
	libjava/sysdep : descriptor-n.h descriptor-y.h 
	libjava/sysdep/powerpc: descriptor.h 

Log message:
	PR libgcj/21692
	* sysdep/descriptor-n.h: New file.
	* sysdep/descriptor-y.h: New file.
	* sysdep/powerpc/descriptor.h: New file.
	* configure.host: Set $descriptor_h appropriate for the host.
	* configure.ac: Link it.
	* configure: Regenerate.
	* stacktrace.cc: Include sysdep/descriptor.h.
	(_Jv_StackTrace::UpdateNCodeMap): Use UNWRAP_FUNCTION_DESCRIPTOR.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3634&r2=1.3635
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/configure.diff?cvsroot=gcc&r1=1.268&r2=1.269
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/configure.ac.diff?cvsroot=gcc&r1=1.30&r2=1.31
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/configure.host.diff?cvsroot=gcc&r1=1.67&r2=1.68
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/stacktrace.cc.diff?cvsroot=gcc&r1=1.7&r2=1.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/sysdep/descriptor-n.h.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/sysdep/descriptor-y.h.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/sysdep/powerpc/descriptor.h.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug libgcj/21692] [4.1 Regression] unexpected java.lang.NoClassDefFoundError
  2005-05-21  2:49 [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError kkojima at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-05-25 23:24 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-25 23:25 ` rth at gcc dot gnu dot org
  2005-08-20  2:14 ` danglin at gcc dot gnu dot org
  2005-08-20 20:26 ` cvs-commit at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-05-25 23:25 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From rth at gcc dot gnu dot org  2005-05-25 23:25 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug libgcj/21692] [4.1 Regression] unexpected java.lang.NoClassDefFoundError
  2005-05-21  2:49 [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError kkojima at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-05-25 23:25 ` rth at gcc dot gnu dot org
@ 2005-08-20  2:14 ` danglin at gcc dot gnu dot org
  2005-08-20 20:26 ` cvs-commit at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-08-20  2:14 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From danglin at gcc dot gnu dot org  2005-08-20 02:14 -------
Richard's change didn't fix the failures on the PA.  I think we need
our own version of UNWRAP_FUNCTION_DESCRIPTOR as function pointers don't
always point to a function descriptor in the 32-bit runtime.


-- 


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


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

* [Bug libgcj/21692] [4.1 Regression] unexpected java.lang.NoClassDefFoundError
  2005-05-21  2:49 [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError kkojima at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-08-20  2:14 ` danglin at gcc dot gnu dot org
@ 2005-08-20 20:26 ` cvs-commit at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-20 20:26 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-20 20:26 -------
Subject: Bug 21692

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	danglin@gcc.gnu.org	2005-08-20 20:26:26

Modified files:
	libjava        : ChangeLog configure.host 
Added files:
	libjava/sysdep/pa: descriptor.h 

Log message:
	PR libgcj/21692
	* sysdep/pa/descriptor.h: New file.
	* configure.host: Use sysdep/pa/descriptor.h on hppa*-*.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3722&r2=1.3723
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/configure.host.diff?cvsroot=gcc&r1=1.70&r2=1.71
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/sysdep/pa/descriptor.h.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

end of thread, other threads:[~2005-08-20 20:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-21  2:49 [Bug libgcj/21692] New: unexpected java.lang.NoClassDefFoundError kkojima at gcc dot gnu dot org
2005-05-23 19:43 ` [Bug libgcj/21692] " rth at gcc dot gnu dot org
2005-05-23 19:47 ` rguenth at gcc dot gnu dot org
2005-05-23 20:06 ` [Bug libgcj/21692] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-24 18:15 ` pinskia at gcc dot gnu dot org
2005-05-24 21:15 ` rth at gcc dot gnu dot org
2005-05-25 22:09 ` cvs-commit at gcc dot gnu dot org
2005-05-25 23:24 ` cvs-commit at gcc dot gnu dot org
2005-05-25 23:25 ` rth at gcc dot gnu dot org
2005-08-20  2:14 ` danglin at gcc dot gnu dot org
2005-08-20 20:26 ` cvs-commit 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).