Hi all,
I am facing problem in calling a native method more than once in java.
The native method('C') basically implements socket part to collect some
data from other machine.
JDK 1.2pre-v2 (glibc2.1), Linux : RedHat6.0.
It gives the correct value once, but for the second time it is called,
it core dumps with following error.
Any Help/Suggestions are most welcome.
Thanks in advance,
Nagaraj S.B.
-------------------------------------------------------------------------
SIGSEGV 11* segmentation violation stackpointer=0xbf1fd2a4 Full
thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, native
threads): "Thread-1" (TID:0x404c7118, sys_thread_t:0x804bf88,
state:CW, native ID:0x400) prio=5
"Thread-0" (TID:0x404c6578, sys_thread_t:0x819a950, state:R, native
ID:0x1005) prio=5
at CSDataColl.csupd(Native Method)
at CSDataColl.updnatcall(Compiled Code)
at CSDataColl.updoperation(Compiled Code)
at updata.run(Compiled Code)
"Finalizer" (TID:0x404be320, sys_thread_t:0x80cc5a8, state:CW,
native ID:0xc04) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
"Reference Handler" (TID:0x404be3b0, sys_thread_t:0x80c7df0,
state:CW, native ID:0x803) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:424)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"SIGQUIT handler" (TID:0x404be3e0, sys_thread_t:0x80c0888, state:R,
native ID:0x402) prio=5
Monitor Cache Dump:
java.lang.ref.ReferenceQueue$Lock@404BE338/404F4028: <unowned>
Waiting to be notified:
"Finalizer" (0x80cc5a8)
java.lang.ref.Reference$Lock@404BE3C0/404F3B20: <unowned>
Waiting to be notified:
"Reference Handler" (0x80c7df0)
Registered Monitor Dump:
PCMap lock: <unowned>
utf8 hash table: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class linking lock: <unowned>
System class loader lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Monitor cache lock: owner "Thread-0" (0x819a950) 1 entry
Thread queue lock: owner "Thread-0" (0x819a950) 1 entry
Waiting to be notified:
"Thread-1" (0x804bf88)
Monitor registry: owner "Thread-0" (0x819a950) 1 entry
Compilation exited abnormally with code 1 at Wed Aug 4 23:05:49
-------------------------------------------------------------------------
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]