Hi,
        I have problem which enough people may not be interested but if
any one can give any hint, would be appreciated.

I am running objective c application using JNI starting JVM from
objective c code and calling java application which uses RMI to
communicate with my applet for the browser.

Now the problem is,
When i use simple objective code to call jvm and use RMI, it works fine
but my actual application does some dynamic memory operations during
runtime and so when i run with my application i get following errors,

Prog Instance bound in registry

SIGSEGV   11*  segmentation violation
    si_signo [11]: SIGSEGV   11*  segmentation violation
    si_errno [0]: Success
    si_code [0]: SI_USER [pid: 0, uid: 0]
        stackpointer=0xbedffa1c

Full thread dump Classic VM (1.2.2-L, native threads):
    "RMI LeaseChecker" (TID:0x4133ecf0, sys_thread_t:0x82cb028,
state:CW, native ID:0x
2009) prio=5
        at java.lang.Thread.sleep(Native Method)
        at sun.rmi.transport.DGCImpl$LeaseChecker.run(DGCImpl.java:299)
        at java.lang.Thread.run(Thread.java:475)
    "GC Daemon" (TID:0x41339cd0, sys_thread_t:0x8295cd0, state:R, native
ID:0x1807) pr
io=2
        at sun.misc.GC$Daemon.run(GC.java:95)
    "RMI Reaper" (TID:0x413399a8, sys_thread_t:0x8283500, state:CW,
native ID:0x1406)
prio=5
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123)
        at
sun.rmi.transport.ObjectTable$Reaper.run(ObjectTable.java:284)
        at java.lang.Thread.run(Thread.java:475)
    "RMI TCP Accept-1" (TID:0x41339738, sys_thread_t:0x8288278, state:R,
native ID:0x1005) prio=5
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:402)
        at java.net.ServerSocket.implAccept(ServerSocket.java:236)
        at java.net.ServerSocket.accept(ServerSocket.java:220)
        at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:291)

        at java.lang.Thread.run(Thread.java:475)
    "Finalizer" (TID:0x4132e320, sys_thread_t:0x81dab20, state:CW,
native ID:0xc04) prio=8
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123)
        at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:170)
    "Reference Handler" (TID:0x4132e3b0, sys_thread_t:0x81d46d0,
state:CW, native ID:0x803) prio=10
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:420)
        at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:110)
    "SIGQUIT handler" (TID:0x4132e3e0, sys_thread_t:0x81d9fa8, state:R,
native ID:0x402) prio=5
    "main" (TID:0x4132e1e0, sys_thread_t:0x815d330, state:R, native
ID:0x400) prio=5
Monitor Cache Dump:
    java.lang.ref.ReferenceQueue$Lock@4132E338/41364028: <unowned>
        Waiting to be notified:
            "Finalizer" (0x81dab20)
    java.lang.ref.Reference$Lock@4132E3C0/41363B20: <unowned>
        Waiting to be notified:
            "Reference Handler" (0x81d46d0)
    sun.misc.GC$LatencyLock@41339960/413BE920: owner "GC Daemon"
(0x8295cd0) 1 entry
    java.lang.ref.ReferenceQueue$Lock@41339340/413BC430: <unowned>
Waiting to be notified:
            "RMI Reaper" (0x8283500)
    java.net.PlainSocketImpl@413393C8/413BD0E0: owner "RMI TCP Accept-1"
(0x8288278) 1 entry
Registered Monitor Dump:
    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 "GC Daemon" (0x8295cd0) 1 entry
    Thread queue lock: owner "GC Daemon" (0x8295cd0) 1 entry
    Monitor registry: owner "GC Daemon" (0x8295cd0) 1 entry

%

Anyone know how can i secure my jvm side memory from  c side?  Any
options that my c program can not touch java side memory?

Thanks in advance,
-Raj


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to