[2591] in java-interest

home help back first fref pref prev next nref lref last post

Sockets dump

daemon@ATHENA.MIT.EDU (Roger Day)
Thu Oct 5 17:41:01 1995

Date: Thu, 5 Oct 1995 17:09:36 +0100
From: roger@ssynth.co.uk (Roger Day)
To: java-interest@java.Eng.Sun.COM

I'm running Solaris 2.4 with the last Beta Java software.

I declare some (extremely) mickey mouse classes like so:

public class TestClient extends java.applet.Applet {
	int portnumber = 5046;
	String host = "193.122.180.3";
	DataOutputStream out;
	DataInputStream in;
	Socket socket;
	public void meme()
	{
		System.out.println("we are here in meme with host: "+ host+ " and port: " + portnumber);
	}
	public void connect() 
	{ 
		System.out.println("are we here");
		try {
			socket = new Socket(host, portnumber);
			in = new DataInputStream(new
			BufferedInputStream(socket.getInputStream()));
	    		out = new DataOutputStream(new
			BufferedOutputStream(socket.getOutputStream()));

		} catch (UnknownHostException e){
			System.out.println("an exceptception occurred: " + e.getMessage());
			e.printStackTrace();

		} catch (IOException e) {
			System.out.println("an exceptception occurred: " + e.getMessage());
			e.printStackTrace();
		}
	}
	public static void main(String args[])
	{
		TestClient h;
		h = new TestClient();
		h.meme();
		h.connect();
	}
}

and I compile with "javac TestClient.java"

and run it thusly "java TestClient"

and I get this...

SIGSEGV   11*  segmentation violation
    si_signo [11]: SIGSEGV   11*  segmentation violation
    si_errno [0]: Error 0
    si_code [1]: SEGV_ACCERR [addr: 0xc]

	stackbase=EFFFF83C, stackpointer=EFFFAA50

Full thread dump:
    "Finalizer thread" (TID:0xee300620, sys_thread_t:0xef490de8) prio=1
    "Async Garbage Collector" (TID:0xee3005d0, sys_thread_t:0xef4c0de8) prio=1
    "Idle thread" (TID:0xee300558, sys_thread_t:0xef4f0de8) prio=0
    "clock handler" (TID:0xee300098, sys_thread_t:0xef5b0de8) prio=11
    "main" (TID:0xee300048, sys_thread_t:0x60148) prio=5 *current thread*
	java.net.InetAddress.getByName(InetAddress.java)
	java.net.InetAddress.<clinit>(InetAddress.java)
	java.net.PlainSocketImpl.connect(PlainSocketImpl.java)
	java.net.Socket.<init>(Socket.java)
	java.net.Socket.<init>(Socket.java)
	TestClient.connect(TestClient.java:45)
	TestClient.main(TestClient.java:65)
Monitor Cache Dump:
Monitor Cache Dump:
    java.lang.Class@EE3008E0/794D0 (key=0xee3008e0):     monitor owner: "main"
    unknown key (key=0xef4c0de8):     unowned
	Waiting to be notified:
	    "Async Garbage Collector"
    unknown key (key=0x96a08):     monitor owner: "main"
    unknown key (key=0xef72d900):     monitor owner: "main"
    unknown key (key=0x794d0):     monitor owner: "main"
    unknown key (key=0x75858):     monitor owner: "main"
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"
    Sbrk lock:     unowned
    Monitor cache lock:     unowned
    Monitor registry:     monitor owner: "main"
Thread Alarm Q:
    sys_thread_t 0xef4c0de8   [Timeout in 839 ms]
Segmentation Fault (core dumped)


    java.lang.Class@EE3008E0/794D0 (key=0xee3008e0):     monitor owner: "main"
 

I get a feeling that I've been here before. Is there a work-round? I need thi sfor a demo...so it might be back to good-old TCL if this doesn't work.

Cheers,

Roger.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post