[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Bus error



------ =_NextPart_000_01BBE80F.6FD3B700
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Run Hello.b program from Inferno shell.


----------
From: 	Shankar Narayanaswamy
Sent: 	Wednesday, December 11, 1996 1:31 PM
To: 	inferno@interstice.com
Subject: 	Bus error

My very simple program (from Kernighan's paper) crashes. The
problem is in the line 
	t := tk->toplevel(ctxt.screen, "");
Any ideas why? emu is running on a Sparc Ultra 1, Solaris 2.5.1 .
The mux application appears to work.

Thanks.
Shankar


Here is the program:


implement hello2;
 
include "sys.m";
        sys: Sys;
 
include "draw.m";
        draw: Draw;
 
include "tk.m";
        tk: Tk;
 
hello2: module
{
        init: fn(ctxt: ref Draw->Context, argv: list of string);
};
 
init(ctxt: ref Draw->Context, argv: list of string)
{
        sys = load Sys Sys->PATH;
        sys->print("foo");
        draw = load Draw Draw->PATH;
        tk = load Tk Tk->PATH;
 
        t := tk->toplevel(ctxt.screen, "");
 
#       tk->cmd(t, "button .b -text {hello, world}");
#       tk->cmd(t, "pack .b");
#       tk->cmd(t, "update");
 
#       sys->sleep(1000);
}


I get:

sleepless$ hello2
foo
[hello2] 6574 OSFault "Bus error"
[hello2] PC 11 INST movp        0(32(fp)), 32(44(fp))
[hello2] Broken: "Bus error"
16 "hello2":Bus error
sleepless$ 






------ =_NextPart_000_01BBE80F.6FD3B700
Content-Type: application/ms-tnef
Content-Transfer-Encoding: base64

eJ8+IjARAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEEkAYAKAEAAAEAAAAMAAAAAwAAMAIAAAAL
AA8OAAAAAAIB/w8BAAAASwAAAAAAAACBKx+kvqMQGZ1uAN0BD1QCAAAAAGluZmVybm9AaW50ZXJz
dGljZS5jb20AU01UUABpbmZlcm5vQGludGVy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