*BSD News Article 79935


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.erols.net!EU.net!uunet!in1.uu.net!psinntp!psinntp!interramp.com!usenet
From: dcmyers@access.digex.net
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Segmentation violation under jdk
Date: 5 Oct 1996 03:49:42 GMT
Organization: PSI Public Usenet Link
Lines: 63
Sender: myers@freebsd.mindspring.com (dcmyers@access.digex.net <David C. Myers>)
Message-ID: <534lsm$s0c@usenet11.interramp.com>
NNTP-Posting-Host: 38.12.171.3
X-Newsreader: knews 0.9.6



Many, many thanks to the folks who ported jdk to FreeBSD.  I'm bringing
over some applets I wrote under Solaris, and find the following error when
attempting to run them.  The applet in question actually makes a socket
connection to a Postgres database and does a bunch of other stuff; all of
that stuff appears to work fine.  This error occurs when the AWT code is
invoked:


/home/myers/java/addressbook >java AddressBook

SIGSEGV   11*  segmentation violation
    sig 11, code 12 or 0xc, sc 0xefbfb75c, addr 0x93e0fff
        stackbase=0xefbfd648, stackpointer=0xefbfcf00

Full thread dump:
    "Finalizer thread" (TID:0x85653b0, sys_thread_t:0x9369f28) prio=1
    "Async Garbage Collector" (TID:0x8565368, sys_thread_t:0x9348f28) prio=1
    "Idle thread" (TID:0x8565320, sys_thread_t:0x9327f28) prio=0
    "clock handler" (TID:0x85651f8, sys_thread_t:0x9306f28) prio=11
    "main" (TID:0x85650a0, sys_thread_t:0x135300) prio=5 *current thread*
        sun.awt.motif.MToolkit.<init>(MToolkit.java:49)
        java.awt.Toolkit.getDefaultToolkit(Toolkit.java:199)
        java.awt.Window.getToolkit(Window.java:163)
        java.awt.Frame.addNotify(Frame.java:90)
        java.awt.Window.show(Window.java:114)
        AddressBook.main(AddressBook.java:585)
Monitor Cache Dump:
    java.lang.Class@8567580/17A580 (key=0x8567580):     monitor owner: "main"
    AddressBook@85658B8/859A640 (key=0x85658b8):     monitor owner: "main"
    sun.awt.motif.MToolkit@8567650/85A2220 (key=0x8567650):     monitor owner: "main"
    unknown key (key=0x9348f28):     unowned
        Waiting to be notified:
            "Async Garbage Collector"
Registered Monitor Dump:
    Finalize me queue lock:     unowned
        Waiting to be notified:
            "Finalizer thread"
    Thread queue lock:     unowned
    Class lock:     unowned
    Java stack lock:     unowned
    Code rewrite lock:     unowned
    Heap lock:     unowned
    Has finalization 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 handler"
    Monitor cache lock:     unowned
    Monitor registry:     monitor owner: "main"
Thread Alarm Q:
    sys_thread_t 0x9348f28   [Timeout in 65 ms]
Abort


Any ideas?

-David.