public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/23508] New: FAIL: PR218
@ 2005-08-21 20:30 danglin at gcc dot gnu dot org
  2005-08-21 20:34 ` [Bug libgcj/23508] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-08-21 20:30 UTC (permalink / raw)
  To: java-prs

FAIL: PR218 execution - source compiled test
FAIL: PR218 execution - bytecode->native test
FAIL: PR218 -O3 execution - source compiled test
FAIL: PR218 -O3 execution - bytecode->native test

Executing on host: /home/dave/gnu/gcc-4.0/objdir/hppa-linux/libjava/testsuite/..
/libtool --silent --tag=GCJ --mode=link /home/dave/gnu/gcc-4.0/objdir/gcc/gcj -B
/home/dave/gnu/gcc-4.0/objdir/gcc/ --encoding=UTF-8 -B/home/dave/gnu/gcc-4.0/obj
dir/hppa-linux/libjava/testsuite/../ /home/dave/gnu/gcc-4.0/gcc/libjava/testsuit
e/libjava.lang/PR218.java   -no-install --main=PR218 -g  -L/home/dave/gnu/gcc-4.
0/objdir/hppa-linux/./libjava/.libs -lm   -o /home/dave/gnu/gcc-4.0/objdir/hppa-
linux/libjava/testsuite/PR218.exe    (timeout = 300)
PASS: PR218 compilation from source
set_ld_library_path_env_vars: ld_library_path=.:/home/dave/gnu/gcc-4.0/objdir/hp
pa-linux/./libjava/.libs:/home/dave/gnu/gcc-4.0/objdir/gcc
Setting LD_LIBRARY_PATH to .:/home/dave/gnu/gcc-4.0/objdir/hppa-linux/./libjava/
.libs:/home/dave/gnu/gcc-4.0/objdir/gcc:.:/home/dave/gnu/gcc-4.0/objdir/hppa-lin
ux/./libjava/.libs:/home/dave/gnu/gcc-4.0/objdir/gcc:.:/home/dave/gnu/gcc-4.0/ob
jdir/hppa-linux/./libjava/.libs:/home/dave/gnu/gcc-4.0/objdir/gcc
FAIL: PR218 execution - source compiled test
UNTESTED: PR218 output - source compiled test

-- 
           Summary: FAIL: PR218
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: hppa-unknown-linux-gnu
  GCC host triplet: hppa-unknown-linux-gnu
GCC target triplet: hppa-unknown-linux


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


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

* [Bug libgcj/23508] FAIL: PR218
  2005-08-21 20:30 [Bug libgcj/23508] New: FAIL: PR218 danglin at gcc dot gnu dot org
@ 2005-08-21 20:34 ` pinskia at gcc dot gnu dot org
  2005-08-21 20:52 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-21 20:34 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-21 20:34 -------
pa32_fallback_frame_state should have taken care of this.

-- 


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


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

* [Bug libgcj/23508] FAIL: PR218
  2005-08-21 20:30 [Bug libgcj/23508] New: FAIL: PR218 danglin at gcc dot gnu dot org
  2005-08-21 20:34 ` [Bug libgcj/23508] " pinskia at gcc dot gnu dot org
@ 2005-08-21 20:52 ` dave at hiauly1 dot hia dot nrc dot ca
  2005-08-21 22:27 ` tromey at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-08-21 20:52 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2005-08-21 20:52 -------
Subject: Re:  FAIL: PR218

> pa32_fallback_frame_state should have taken care of this.

Possibly, there is a bug there.  However, the enclosed change 
appears to fix libgcj/23507 and partially fixes this PR.  There
appears to be a typo which doubles state->length in stacktrace.cc.
This causes memcpy to segfault.  The character of the fails changes
when this is fixed:

GC Warning: Out of Memory!  Returning NIL!
WARNING: program timed out.
FAIL: PR218 execution - source compiled test
UNTESTED: PR218 output - source compiled test

The fix for libgcj/23507 is to use a function pointer comparison
in the compare that tries to detect the interpreter.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

Index: stacktrace.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/stacktrace.cc,v
retrieving revision 1.8
diff -u -3 -p -r1.8 stacktrace.cc
--- stacktrace.cc	25 May 2005 23:24:05 -0000	1.8
+++ stacktrace.cc	21 Aug 2005 20:34:58 -0000
@@ -102,7 +102,7 @@ _Jv_StackTrace::UnwindTraceFn (struct _U
   // Check if the trace buffer needs to be extended.
   if (pos == state->length)
     {
-      int newLength = state->length *= 2;
+      int newLength = state->length * 2;
       void *newFrames = _Jv_AllocBytes (newLength * sizeof(_Jv_StackFrame));
       memcpy (newFrames, state->frames, state->length * sizeof(_Jv_StackFrame));      
       state->frames = (_Jv_StackFrame *) newFrames;
@@ -117,7 +117,7 @@ _Jv_StackTrace::UnwindTraceFn (struct _U
   // correspondance between call frames in the interpreted stack and occurances
   // of _Jv_InterpMethod::run() on the native stack.
 #ifdef INTERPRETER
-  if (func_addr == (_Unwind_Ptr) &_Jv_InterpMethod::run)
+  if ((void (*)(void)) func_addr == (void (*)(void)) &_Jv_InterpMethod::run)
     {
       state->frames[pos].type = frame_interpreter;
       state->frames[pos].interp.meth = state->interp_frame->self;


-- 


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


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

* [Bug libgcj/23508] FAIL: PR218
  2005-08-21 20:30 [Bug libgcj/23508] New: FAIL: PR218 danglin at gcc dot gnu dot org
  2005-08-21 20:34 ` [Bug libgcj/23508] " pinskia at gcc dot gnu dot org
  2005-08-21 20:52 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-08-21 22:27 ` tromey at gcc dot gnu dot org
  2005-08-23  3:10 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-08-21 22:27 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2005-08-21 22:27 -------
The patch in comment #2 is ok, please check it in.
Thanks.


-- 


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


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

* [Bug libgcj/23508] FAIL: PR218
  2005-08-21 20:30 [Bug libgcj/23508] New: FAIL: PR218 danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-08-21 22:27 ` tromey at gcc dot gnu dot org
@ 2005-08-23  3:10 ` dave at hiauly1 dot hia dot nrc dot ca
  2005-08-23 11:47 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-08-23  3:10 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2005-08-23 03:10 -------
Subject: Re:  FAIL: PR218

I think this bug is probably a target issue.  The unwind process gets
stuck after unwinding through the signal handler:

(gdb) c
Continuing.

Breakpoint 1, _Jv_StackTrace::UnwindTraceFn (context=0xc00b59c8,
    state_ptr=0xc00b5108) at ../../../gcc/libjava/stacktrace.cc:120
120       if ((void (*)(void)) func_addr == (void (*)(void)) &_Jv_InterpMethod::run)
(gdb) p (void (*)(void)) func_addr
$9 = (void (*)(void)) 0x4130595c <java.lang.NullPointerException.NullPointerException()>
(gdb) c
Continuing.

Breakpoint 1, _Jv_StackTrace::UnwindTraceFn (context=0xc00b59c8,
    state_ptr=0xc00b5108) at ../../../gcc/libjava/stacktrace.cc:120
120       if ((void (*)(void)) func_addr == (void (*)(void)) &_Jv_InterpMethod::run)
(gdb) p (void (*)(void)) func_addr
$10 = (void (*)(void)) 0x4107a69c <_Jv_catch_segv>
(gdb) c
Continuing.

Breakpoint 1, _Jv_StackTrace::UnwindTraceFn (context=0xc00b59c8,
    state_ptr=0xc00b5108) at ../../../gcc/libjava/stacktrace.cc:120
120       if ((void (*)(void)) func_addr == (void (*)(void)) &_Jv_InterpMethod::run)
(gdb) p (void (*)(void)) func_addr
$11 = (void (*)(void)) 0x4107a69c <_Jv_catch_segv>
(gdb) c
Continuing.

Breakpoint 1, _Jv_StackTrace::UnwindTraceFn (context=0xc00b59c8,
    state_ptr=0xc00b5108) at ../../../gcc/libjava/stacktrace.cc:120
120       if ((void (*)(void)) func_addr == (void (*)(void)) &_Jv_InterpMethod::run)
(gdb) p (void (*)(void)) func_addr
$12 = (void (*)(void)) 0x10ca4 <PR218.foo(PR218)>
(gdb) c
Continuing.

Breakpoint 1, _Jv_StackTrace::UnwindTraceFn (context=0xc00b59c8,
    state_ptr=0xc00b5108) at ../../../gcc/libjava/stacktrace.cc:120
120       if ((void (*)(void)) func_addr == (void (*)(void)) &_Jv_InterpMethod::run)
(gdb) p (void (*)(void)) func_addr
$13 = (void (*)(void)) 0x10ca4 <PR218.foo(PR218)>
(gdb) c
Continuing.

Breakpoint 1, _Jv_StackTrace::UnwindTraceFn (context=0xc00b59c8,
    state_ptr=0xc00b5108) at ../../../gcc/libjava/stacktrace.cc:120
120       if ((void (*)(void)) func_addr == (void (*)(void)) &_Jv_InterpMethod::run)
(gdb) p (void (*)(void)) func_addr
$14 = (void (*)(void)) 0x10ca4 <PR218.foo(PR218)>
(gdb) c
ContinuingBreakpoint 1, _Jv_StackTrace::UnwindTraceFn (context=0xc00b59c8,
    state_ptr=0xc00b5108) at ../../../gcc/libjava/stacktrace.cc:120
120       if ((void (*)(void)) func_addr == (void (*)(void)) &_Jv_InterpMethod::run)
(gdb) p (void (*)(void)) func_addr
tackTrace::UnwindTraceFn (context=0xc00b59c8, state_ptr=0xc00b5108)
    at ../../../gcc/libjava/stacktrace.cc:120
#1  0x4072760c in _Unwind_Backtrace (
    trace=@0x40243386: 0x4108d894 <_Jv_StackTrace::UnwindTraceFn(_Unwind_Context*, void*)>, trace_argument=0xc00b5108) at unwind.inc:298
#2  0x4108d818 in _Jv_StackTrace::GetStackTrace ()
    at ../../../gcc/libjava/stacktrace.cc:159
#3  0x410c27c4 in java::lang::VMThrowable::fillInStackTrace ()
    at ../../../gcc/libjava/java/lang/natVMThrowable.cc:33
#4  0x41305604 in java.lang.Throwable.fillInStackTrace() (this=0x40088828)
    at Throwable.java:498
#5  0x413056f8 in java.lang.Throwable.Throwable(java.lang.String) (
    this=0x40088828, message=0x0) at Throwable.java:159
#6  0x413058e0 in java.lang.Throwable.Throwable() (this=Variable "this" is not available.
) at Throwable.java:146
#7  0x413058fc in java.lang.Exception.Exception() (this=Variable "this" is not available.
) at Exception.java:67
#8  0x41305918 in java.lang.RuntimeException.RuntimeException() (this=Variable "this" is not available.
)
    at RuntimeException.java:65
#9  0x4130596c in java.lang.NullPointerException.NullPointerException() (this=Variable "this" is not available.
)
    at NullPointerException.java:70
#10 0x4107a6f8 in _Jv_catch_segv (_dummy=Variable "_dummy" is not available.
) at ../../../gcc/libjava/prims.cc:151
#11 <signal handler called>
#12 0x00010ca8 in PR218.foo(PR218) (this=0x40083ef8, e=0x0)
    at Throwable.java:22
#13 0x00010c48 in PR218.main(java.lang.String[]) (args=Variable "args" is not available.
) at PR218.java:12
#14 0x410af41c in gnu::java::lang::MainThread::call_main (this=0x4009cf18)
    at ../../../gcc/libjava/gnu/java/lang/natMainThread.cc:47
#15 0x410c1df4 in _Jv_ThreadRun (thread=0x4009cf18)
    at ../../../gcc/libjava/java/lang/natThread.cc:296
#16 0x4107b878 in _Jv_RunMain (vm_args=Variable "vm_args" is not available.
) at ../../../gcc/libjava/prims.cc:1386
#17 0x4107ba4c in _Jv_RunMain (klass=Variable "klass" is not available.
) at ../../../gcc/libjava/prims.cc:1397
#18 0x4107ba78 in JvRunMain (klass=Variable "klass" is not available.
) at ../../../gcc/libjava/prims.cc:1403
#19 0x4210c51c in __libc_start_main () from /lib/libc.so.6
#20 0x00010ae8 in _start () at ../sysdeps/hppa/elf/start.S:67

Dave


-- 


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


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

* [Bug libgcj/23508] FAIL: PR218
  2005-08-21 20:30 [Bug libgcj/23508] New: FAIL: PR218 danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-08-23  3:10 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-08-23 11:47 ` pinskia at gcc dot gnu dot org
  2005-08-27 18:36 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-23 11:47 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-23 11:47:09
               date|                            |


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


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

* [Bug libgcj/23508] FAIL: PR218
  2005-08-21 20:30 [Bug libgcj/23508] New: FAIL: PR218 danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-08-23 11:47 ` pinskia at gcc dot gnu dot org
@ 2005-08-27 18:36 ` cvs-commit at gcc dot gnu dot org
  2005-08-28 15:14 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-27 18:36 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-27 18:36 -------
Subject: Bug 23508

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	danglin@gcc.gnu.org	2005-08-27 18:36:48

Modified files:
	gcc            : ChangeLog 
	gcc/config/pa  : linux-unwind.h 

Log message:
	PR libgcj/23508
	* pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
	state for return address column of signal frames.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9839&r2=2.9840
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/pa/linux-unwind.h.diff?cvsroot=gcc&r1=1.4&r2=1.5



-- 


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


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

* [Bug libgcj/23508] FAIL: PR218
  2005-08-21 20:30 [Bug libgcj/23508] New: FAIL: PR218 danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-08-27 18:36 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-28 15:14 ` cvs-commit at gcc dot gnu dot org
  2005-08-28 15:21 ` danglin at gcc dot gnu dot org
  2005-08-28 15:24 ` [Bug target/23508] " pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-28 15:14 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-28 15:14 -------
Subject: Bug 23508

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	danglin@gcc.gnu.org	2005-08-28 15:14:14

Modified files:
	gcc            : ChangeLog 
	gcc/config/pa  : linux-unwind.h 

Log message:
	PR libgcj/23508
	* pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
	state for return address column of signal frames.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.398&r2=2.7592.2.399
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/pa/linux-unwind.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.3&r2=1.3.8.1



-- 


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


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

* [Bug libgcj/23508] FAIL: PR218
  2005-08-21 20:30 [Bug libgcj/23508] New: FAIL: PR218 danglin at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-08-28 15:14 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-28 15:21 ` danglin at gcc dot gnu dot org
  2005-08-28 15:24 ` [Bug target/23508] " pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-08-28 15:21 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From danglin at gcc dot gnu dot org  2005-08-28 15:21 -------
Fixed in 4.0 and mainline.

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


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


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

* [Bug target/23508] FAIL: PR218
  2005-08-21 20:30 [Bug libgcj/23508] New: FAIL: PR218 danglin at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-08-28 15:21 ` danglin at gcc dot gnu dot org
@ 2005-08-28 15:24 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-28 15:24 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libgcj                      |target
   Target Milestone|---                         |4.0.2


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


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

end of thread, other threads:[~2005-08-28 15:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-21 20:30 [Bug libgcj/23508] New: FAIL: PR218 danglin at gcc dot gnu dot org
2005-08-21 20:34 ` [Bug libgcj/23508] " pinskia at gcc dot gnu dot org
2005-08-21 20:52 ` dave at hiauly1 dot hia dot nrc dot ca
2005-08-21 22:27 ` tromey at gcc dot gnu dot org
2005-08-23  3:10 ` dave at hiauly1 dot hia dot nrc dot ca
2005-08-23 11:47 ` pinskia at gcc dot gnu dot org
2005-08-27 18:36 ` cvs-commit at gcc dot gnu dot org
2005-08-28 15:14 ` cvs-commit at gcc dot gnu dot org
2005-08-28 15:21 ` danglin at gcc dot gnu dot org
2005-08-28 15:24 ` [Bug target/23508] " pinskia 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).