Hello,
I installed the latest jdk. With this jdk I get a thread dump (see below) using
the following native code (just parsing a string). With jdk1.1.6-v2 it worked
just fine. Can somebody give the code a try? I am very curious if it works on
another setup. Parsing an int back works fine with v4a.
The java file:
public class GetString {
public static native String getString();
static {
System.load("/home/erik/myjava/libputstring.so");
}
public void printString()
{
System.out.println(getString());
}
public static void main(String args[]) {
GetString gs= new GetString();
gs.printString();
}
}
The native code:
#include "GetString.h"
#include <jni.h>
JNIEXPORT jstring JNICALL Java_GetString_getString(JNIEnv *env, jclass jcl)
{
char str[]="HelloWorld";
return (*env)->NewStringUTF(env, str);
}
I also removed the libc and libdl in the greenthreads directory, but without any
success. Using libc.so.5.4.46 and libdl.so.1.9.2.
I have also a problem with drawImage(image, x, y, null) in v4a. In v2 I can
place a frame to the correct x and y coordinates, but in v4a it is placed
randomly onto the screen.
And my last problem is playing an audio (.au) file in an application. For this I
use the audio package from sun. Sometimes it plays only the first part of the
audio file.
Somebody a clue?
Thanks for reading so far.
Erik
SIGSEGV 11* segmentation violation
stackbase=0xbffff46c, stackpointer=0xbffff374
Full thread dump:
"Finalizer thread" (TID:0x406e3208, sys_thread_t:0x41427f04, state:R) prio=1
"Async Garbage Collector" (TID:0x406e3250, sys_thread_t:0x41406f04, state:R) prio=1
"Idle thread" (TID:0x406e3298, sys_thread_t:0x413e5f04, state:R) prio=0
"Clock" (TID:0x406e3088, sys_thread_t:0x413c4f04, state:CW) prio=12
"main" (TID:0x406e30b0, sys_thread_t:0x81931d8, state:R) prio=5 *current thread*
java.io.Writer.write(Writer.java)
java.io.PrintStream.write(PrintStream.java)
java.io.PrintStream.print(PrintStream.java)
java.io.PrintStream.println(PrintStream.java)
GetString.printString(GetString.java:13)
GetString.main(GetString.java:19)
Monitor Cache Dump:
java.io.PrintStream@1080964904/1081237320: owner "main" (0x81931d8, 2 entries)
Registered Monitor Dump:
Thread queue lock: <unowned>
Name and type hash table lock: <unowned>
String intern lock: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class loading lock: <unowned>
Java stack lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Has finalization queue lock: <unowned>
Finalize me queue lock: <unowned>
Monitor IO lock: <unowned>
Child death monitor: <unowned>
Event monitor: <unowned>
I/O monitor: <unowned>
Alarm monitor: <unowned>
Waiting to be notified:
"Clock" (0x413c4f04)
Monitor registry: owner "main" (0x81931d8, 1 entry)
Thread Alarm Q:
Abort (core dumped)