Re: [kaffe] 1.1.0 on alpha-linux: make check crashes

2003-06-13 Thread Dalibor Topic
Hi Kevin,

--- Kevin D. Kissell [EMAIL PROTECTED] wrote:
   Could you please check confirm that the 4 regression tests
   which succeed on alpha-linux are the same 4 that succeed
   with MIPS/Linux under jit3, i.e.
  
   HelloWorldApp.class.save
   CatchLimits.class.save
   TestFloatDouble, and
   ThreadStop?
  
  FYI, these tests almost always succeed (They have no output to check 
  against so they pass by default).  I think the only way they can fail 
  is if the executable exits with an error code.
 
 But what's intriguing here is that TestFloatDouble and
 ThreadStop are being successfully *compiled*, wheras
 all other test/regression Java files are causing JIT3 to
 explode on RISC platforms during their compilation.
 I agree that, once they've been compiled, it's hardly
 surprising that they do not fail in execution!
 

I took another look at this one and it may shed some light on the problems you
were seing:

/tmp/kaffe/install/bin/kaffe -vmdebug ALL at.dms.kjc.Main HelloWorldApp.java
2out
[...]
tidyAnalyzeMethod 0x1200da030: clearing codeInfo 0x11fffeda8
Translated
java/lang/ClassLoader.findLoadedClass(Ljava/lang/String;)Ljava/lang/Class;
(normal) 0x120246be8
enable stop for thread  0x1200da030
enable stop for thread  0x1200da030
soft_fixup_trampoline(): return 0x120246be8
on current stack: base=0x11ff0 size=1048576 bp=0x11fffcd70 yes
on current stack: base=0x11ff0 size=1048576 bp=0x11fffcc40 yes
on current stack: base=0x11ff0 size=1048576 bp=0x11fffcb10 yes
on current stack: base=0x11ff0 size=1048576 bp=0x11fffc9d0 yes
on current stack: base=0x11ff0 size=1048576 bp=0x11fffc8a0 yes
on current stack: base=0x11ff0 size=1048576 bp=0x11fffc760 yes
on current stack: base=0x11ff0 size=1048576 bp=0x11fffc890 yes
soft_fixup_trampoline(): meth 0x120252918, where 0x120252930
disable stop for thread  0x1200da030
  0x1200da030 entering process class kaffe/lang/PrimordialClassLoader 7-12
findMethodLocal(kaffe/lang/PrimordialClassLoader,finalize,()V) - NOT FOUND
findMethodLocal(java/lang/ClassLoader,finalize,()V) - NOT FOUND
findMethodLocal(java/lang/Object,finalize,()V) - 0x12011c8b8
enable stop for thread  0x1200da030
disable stop for thread  0x1200da030
Initialising kaffe/lang/PrimordialClassLoader static 88
findMethodLocal(kaffe/lang/PrimordialClassLoader,clinit,()V) - 0x120252c78
enable stop for thread  0x1200da030
using JNI
firstFrame pc 0x2050738 sp 0x11fffebb0 fp (nil)
on current stack: base=0x11ff0 size=1048576 bp=0x11fffebb0 yes
lda $sp,112($sp) at 0x2050d78
ret $31,($26),1 at pc 0x2050d7c
ldq $fp,56($sp) at 0x2050d74
ldq $26,0($sp) at 0x2050d58
kaffe-bin: ../../../kaffe-1.1.0/kaffe/kaffevm/exception.h:150:
vmExcept_setJNIFrame: Assertion `fp != 0' failed.

there is one interesting warning from the compiler for the jitter:
../../../../kaffe-1.1.0/kaffe/kaffevm/jit/icode.c: In function
`softcall_lookupinterfacemethod':
../../../../kaffe-1.1.0/kaffe/kaffevm/jit/icode.c:3307: warning: cast to
pointer from integer of different size

it seems to crash after jitting the clinit method of the PrimordialClassLoader.
gdb claims stack corruption ;)

cheers,
dalibor topic

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] 1.1.0 on alpha-linux: make check crashes

2003-06-11 Thread Kevin D. Kissell
Could you please check confirm that the 4 regression tests
which succeed on alpha-linux are the same 4 that succeed
with MIPS/Linux under jit3, i.e.

HelloWorldApp.class.save
CatchLimits.class.save
TestFloatDouble, and
ThreadStop?

The 133 out of 137 number just seems like more than a
coincidence. If that's the case, and the Alpha build is defaulting 
to jit3 (as MIPS does), this could well be the Alpha-specific
manifestation of a JIT bug which MIPS experiences
as a set of OutOfMemory errors.

And is Alpha/Linux OK if you run interpreted?

- Original Message - 
From: Dalibor Topic [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 09, 2003 3:04 PM
Subject: [kaffe] 1.1.0 on alpha-linux: make check crashes


 Hi, I've also tried out 1.1.0 on alpha linux machines. While kaffe builds fine,
 running make check results in most of the tests crashing during the
 compilation.
 
 make[3]: Entering directory `/tmp/kaffe/build/test/regression'
 TestScript: line 4: 13170 Aborted $JAVA $* $TMPRESULT 21
 PASS: HelloWorldApp.class.save
 error compiling:
 lt-kaffe-bin: ../../../kaffe-1.1.0/kaffe/kaffevm/exception.h:150:
 vmExcept_setJNIFrame: Assertion `fp != 0' failed.
 TestScript: line -43: 13212 Aborted
 /tmp/kaffe/build/kaffe/kaffe/kaffe-bin at.dms.kjc.Main -classpath
 .:../../../kaffe-1.1.0/test/regression::.:/tmp/kaffe/kaffe-1.1.0/libraries/javalib/kjc.jar
 -d . ../../../kaffe-1.1.0/test/regression/HelloWorldApp.java
 FAIL: HelloWorldApp.java
 
 and so on
 
 error compiling:
 lt-kaffe-bin: ../../../kaffe-1.1.0/kaffe/kaffevm/exception.h:150:
 vmExcept_setJNIFrame: Assertion `fp != 0' failed.
 TestScript: line -43: 18367 Aborted
 /tmp/kaffe/build/kaffe/kaffe/kaffe-bin at.dms.kjc.Main -classpath
 .:../../../kaffe-1.1.0/test/regression::.:/tmp/kaffe/kaffe-1.1.0/libraries/javalib/kjc.jar
 -d . ../../../kaffe-1.1.0/test/regression/TestNative.java
 FAIL: TestNative.java
 
 133 of 137 tests failed
 Please report to [EMAIL PROTECTED]
 
 
 bash-2.05a$ KAFFE_DEBUG=gdb /tmp/kaffe/install/bin/kjc
 GNU gdb 2002-04-01-cvs
 Copyright 2002 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for details.
 This GDB was configured as alpha-linux...
 (gdb) run
 Starting program: /tmp/kaffe/install/jre/bin/kaffe-bin at.dms.kjc.Main
 kaffe-bin: ../../../kaffe-1.1.0/kaffe/kaffevm/exception.h:150:
 vmExcept_setJNIFrame: Assertion `fp != 0' failed.
 
 Program received signal SIGABRT, Aborted.
 0x2210388 in kill () from /lib/libc.so.6.1
 (gdb) bt
 #0  0x2210388 in kill () from /lib/libc.so.6.1
 #1  0x2210178 in raise () from /lib/libc.so.6.1
 #2  0x2212038 in abort () from /lib/libc.so.6.1
 #3  0x2207988 in __assert_fail () from /lib/libc.so.6.1
 #4  0x2072b88 in Kaffe_ExceptionClear (env=0x47f1) at
 ../../../kaffe-1.1.0/kaffe/kaffevm/exception.h:150
 #5  0x2051f90 in processClass (class=0x12023e600, tostate=12,
 einfo=0x20dddf1) at ../../../kaffe-1.1.0/kaffe/kaffevm/classMethod.c:518
 #6  0x208fbfc in soft_fixup_trampoline (_data=0x47f1) at
 ../../../kaffe-1.1.0/kaffe/kaffevm/soft.c:575
 #7  0x20b5654 in alpha_do_fixup_trampoline () at
 ../../../../kaffe-1.1.0/config/alpha/jit-alpha.def:3229
 warning: Hit heuristic-fence-post without finding
 warning: enclosing function for address 0x120244d44
 This warning occurs if you are debugging a function without any symbols
 (for example, in a stripped executable).  In that case, you may wish to
 increase the size of the search with the `set heuristic-fence-post' command.
 
 Otherwise, you told GDB there was a function where there isn't one, or
 (more likely) you have encountered a bug in GDB.
 
 so it would be nice if any alpha developers could take a closer look.
 
 cheers,
 dalibor topic
 
 __
 Do you Yahoo!?
 Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
 http://calendar.yahoo.com
 
 ___
 kaffe mailing list
 [EMAIL PROTECTED]
 http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
 

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] 1.1.0 on alpha-linux: make check crashes

2003-06-11 Thread Timothy Stack
On Wednesday, June 11, 2003, at 05:16  AM, Kevin D. Kissell wrote:

Could you please check confirm that the 4 regression tests
which succeed on alpha-linux are the same 4 that succeed
with MIPS/Linux under jit3, i.e.
HelloWorldApp.class.save
CatchLimits.class.save
TestFloatDouble, and
ThreadStop?
FYI, these tests almost always succeed (They have no output to check 
against so they pass by default).  I think the only way they can fail 
is if the executable exits with an error code.

tim

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] 1.1.0 on alpha-linux: make check crashes

2003-06-11 Thread Dalibor Topic
--- Kevin D. Kissell [EMAIL PROTECTED] wrote:
 Could you please check confirm that the 4 regression tests
 which succeed on alpha-linux are the same 4 that succeed
 with MIPS/Linux under jit3, i.e.
 
 HelloWorldApp.class.save
 CatchLimits.class.save
 TestFloatDouble, and
 ThreadStop?

yes.

 And is Alpha/Linux OK if you run interpreted?

make[3]: Entering directory `/tmp/kaffe/build/test/regression'
PASS: HelloWorldApp.class.save
PASS: HelloWorldApp.java
PASS: TestIntLong.java
PASS: TestFloatDouble.java
FAIL: DoubleCvt.java
PASS: DoubleNeg.java
PASS: DoubleConst.java
FAIL: DoublePrint.java
PASS: DoubleComp.java
PASS: ModuloTest.java
PASS: LongNeg.java
PASS: FPUStack.java
PASS: NegativeDivideConst.java
PASS: divtest.java
PASS: Str.java
PASS: Str2.java
PASS: InternHog.java
PASS: IndexTest.java
PASS: StackDump.java
PASS: CatchLimits.class.save
PASS: tname.java
PASS: ttest.java
PASS: ThreadInterrupt.java
PASS: ThreadState.java
PASS: UncaughtException.java
PASS: IllegalWait.java
PASS: WaitTest.java
PASS: Preempt.java
PASS: TestSerializable.java
PASS: TestSerializable2.java
PASS: SerializationCompatibility.java
PASS: SerialPersistentFields.java
PASS: TestSerialVersions.java
PASS: TestSerialPersistent.java
PASS: TestSerialFields.java
PASS: TestObjectStreamField.java
PASS: ReflectInterfaces.java
PASS: InnerTest.java
PASS: SerialUID.java
PASS: TestCasts.java
PASS: Alias.java
PASS: NullPointerTest.java
PASS: NullInvoke.java
PASS: TableSwitch.java
PASS: LostFrame.java
PASS: ConstructorTest.java
PASS: burford.java
PASS: IllegalInterface.java
PASS: GetInterfaces.java
PASS: IntfTest.java
PASS: SignedShort.java
PASS: CharCvt.java
PASS: BadFloatTest.java
PASS: ProcessTest.java
PASS: UDPTest.java
PASS: SoTimeout.java
PASS: wc.java
PASS: FileTest.java
PASS: FileChecks.java
PASS: finalexc.java
PASS: finaltest.java
PASS: finaltest2.java
PASS: forNameTest.java
PASS: LoaderTest.java
PASS: ArrayForName.java
PASS: KaffeVerifyBug.java
PASS: Schtum.java
PASS: Reflect.java
PASS: MethodBug.java
PASS: Bean.java
PASS: SortTest.java
PASS: ArraysTest.java
PASS: SubListTest.java
PASS: HashTest.java
PASS: SecureRandomTest.java
PASS: MapTest.java
PASS: URLTest.java
PASS: PropertiesTest.java
PASS: ReaderTest.java
PASS: CharArrayReaderTest.java
PASS: LineNumberReaderTest.java
PASS: BufferedReaderTest.java
PASS: ReaderReadVoidTest.java
PASS: InputStreamTest.java
PASS: PipeTest.java
PASS: DateFormatTest.java
PASS: GetField.java
PASS: LostTrampolineFrame.java
PASS: NetworkInterfaceTest.java
PASS: InetAddressTest.java
PASS: InetSocketAddressTest.java
PASS: ReflectInvoke.java
PASS: InvTarExcTest.java
PASS: SystemLoaderTest.java
PASS: NoClassDefTest.java
PASS: CLTest.java
PASS: CLTestConc.java
PASS: CLTestJLock.java
PASS: CLTestLie.java
PASS: CLTestFindLoaded.java
PASS: ClassDeadLock.java
PASS: ExceptionTest.java
PASS: ExceptionTestClassLoader.java
PASS: ExceptionTestClassLoader2.java
PASS: TestClassRef.java
PASS: ClassGC.java
PASS: GCTest.java
PASS: ThreadLocalTest.java
PASS: BeanBug.java
PASS: BitSetTest.java
PASS: ExceptionInInitializerTest.java
PASS: InitTest.java
PASS: CLInitThrow.java
PASS: ProcessClassTest.java
PASS: ProcessClassInst.java
PASS: ProcessClassStop.java
PASS: FindSystemClass.java
PASS: ProcessClassLockTest.java
PASS: DoubleBug.java
PASS: TestUnlock.java
PASS: MarkResetTest.java
PASS: HashtableTest1.java
PASS: ReflectMultiArray.java
PASS: ExecTest.java
PASS: ProhibitedClass.java
PASS: KaffeInternal.java
PASS: CatchDeath.java
PASS: ThreadStop.java
PASS: DeadThread.java
PASS: tthrd1.java
FAIL: DosTimeVerify.java
PASS: ZipVerify.java
FAIL: ZipTest.java
PASS: TruncatedClass.java
PASS: SoInterrupt.java
PASS: sysdepCallMethod.java
PASS: TestNative.java

4 of 137 tests failed
Please report to [EMAIL PROTECTED]


atatched are the compiler warnings and the failures. 2 tests fail because libz
can't be found by the configure script, which is not a bug in kaffe ;).

cheers,
dalibor topic

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

alpha-linux-intrp-failures.tgz
Description: alpha-linux-intrp-failures.tgz


alpha-linux-intrp-warnings
Description: alpha-linux-intrp-warnings


Re: [kaffe] 1.1.0 on alpha-linux: make check crashes

2003-06-11 Thread Kevin D. Kissell
  Could you please check confirm that the 4 regression tests
  which succeed on alpha-linux are the same 4 that succeed
  with MIPS/Linux under jit3, i.e.
 
  HelloWorldApp.class.save
  CatchLimits.class.save
  TestFloatDouble, and
  ThreadStop?
 
 FYI, these tests almost always succeed (They have no output to check 
 against so they pass by default).  I think the only way they can fail 
 is if the executable exits with an error code.

But what's intriguing here is that TestFloatDouble and
ThreadStop are being successfully *compiled*, wheras
all other test/regression Java files are causing JIT3 to
explode on RISC platforms during their compilation.
I agree that, once they've been compiled, it's hardly
surprising that they do not fail in execution!

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] 1.1.0 on alpha-linux: make check crashes

2003-06-09 Thread Dalibor Topic
Hi, I've also tried out 1.1.0 on alpha linux machines. While kaffe builds fine,
running make check results in most of the tests crashing during the
compilation.

make[3]: Entering directory `/tmp/kaffe/build/test/regression'
TestScript: line 4: 13170 Aborted $JAVA $* $TMPRESULT 21
PASS: HelloWorldApp.class.save
error compiling:
lt-kaffe-bin: ../../../kaffe-1.1.0/kaffe/kaffevm/exception.h:150:
vmExcept_setJNIFrame: Assertion `fp != 0' failed.
TestScript: line -43: 13212 Aborted
/tmp/kaffe/build/kaffe/kaffe/kaffe-bin at.dms.kjc.Main -classpath
.:../../../kaffe-1.1.0/test/regression::.:/tmp/kaffe/kaffe-1.1.0/libraries/javalib/kjc.jar
-d . ../../../kaffe-1.1.0/test/regression/HelloWorldApp.java
FAIL: HelloWorldApp.java

and so on

error compiling:
lt-kaffe-bin: ../../../kaffe-1.1.0/kaffe/kaffevm/exception.h:150:
vmExcept_setJNIFrame: Assertion `fp != 0' failed.
TestScript: line -43: 18367 Aborted
/tmp/kaffe/build/kaffe/kaffe/kaffe-bin at.dms.kjc.Main -classpath
.:../../../kaffe-1.1.0/test/regression::.:/tmp/kaffe/kaffe-1.1.0/libraries/javalib/kjc.jar
-d . ../../../kaffe-1.1.0/test/regression/TestNative.java
FAIL: TestNative.java

133 of 137 tests failed
Please report to [EMAIL PROTECTED]


bash-2.05a$ KAFFE_DEBUG=gdb /tmp/kaffe/install/bin/kjc
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as alpha-linux...
(gdb) run
Starting program: /tmp/kaffe/install/jre/bin/kaffe-bin at.dms.kjc.Main
kaffe-bin: ../../../kaffe-1.1.0/kaffe/kaffevm/exception.h:150:
vmExcept_setJNIFrame: Assertion `fp != 0' failed.

Program received signal SIGABRT, Aborted.
0x2210388 in kill () from /lib/libc.so.6.1
(gdb) bt
#0  0x2210388 in kill () from /lib/libc.so.6.1
#1  0x2210178 in raise () from /lib/libc.so.6.1
#2  0x2212038 in abort () from /lib/libc.so.6.1
#3  0x2207988 in __assert_fail () from /lib/libc.so.6.1
#4  0x2072b88 in Kaffe_ExceptionClear (env=0x47f1) at
../../../kaffe-1.1.0/kaffe/kaffevm/exception.h:150
#5  0x2051f90 in processClass (class=0x12023e600, tostate=12,
einfo=0x20dddf1) at ../../../kaffe-1.1.0/kaffe/kaffevm/classMethod.c:518
#6  0x208fbfc in soft_fixup_trampoline (_data=0x47f1) at
../../../kaffe-1.1.0/kaffe/kaffevm/soft.c:575
#7  0x20b5654 in alpha_do_fixup_trampoline () at
../../../../kaffe-1.1.0/config/alpha/jit-alpha.def:3229
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x120244d44
This warning occurs if you are debugging a function without any symbols
(for example, in a stripped executable).  In that case, you may wish to
increase the size of the search with the `set heuristic-fence-post' command.

Otherwise, you told GDB there was a function where there isn't one, or
(more likely) you have encountered a bug in GDB.

so it would be nice if any alpha developers could take a closer look.

cheers,
dalibor topic

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe