Chad Dougherty | 12 Oct 2005 02:19

emu crash

there's a nasty bug either somewhere in emu or the inferno ps
command.  the following causes emu to hang completely on at least
linux and macosx:

% for i in 1 2 3 4 5 {ps > /dev/null}

(sometimes it takes a few consecutive attempts)

another user on #inferno was able to reproduce this as well.  emu
running under plan 9 or windows doesn't appear to exhibit this
problem.

	-Chad

Chad Dougherty | 12 Oct 2005 04:19

Re: emu crash

On Tue, Oct 11, 2005 at 08:19:32PM -0400, Chad Dougherty wrote:
> there's a nasty bug either somewhere in emu or the inferno ps
> command.  the following causes emu to hang completely on at least
> linux and macosx:
> 

(here's some more information.  if there's something else I can
send, let me know.)
Caerwyn suggested a bug in prog(3) and the following tends to support
that:

$ gdb emu
GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin".
Reading symbols for shared libraries ...... done
(gdb) run -r/Users/Shared/Inferno-20050720
Starting program: /Users/Shared/Inferno-20050720/MacOSX/power/bin/emu -r/Users/Shared/Inferno-20050720
Reading symbols for shared libraries ..... done
; load std
; for i in 1 2 3 4 5 {ps > /dev/null}
; for i in 1 2 3 4 5 {ps > /dev/null}
; for i in 1 2 3 4 5 {ps > /dev/null}
; for i in 1 2 3 4 5 {ps > /dev/null}
; for i in 1 2 3 4 5 {ps > /dev/null}
; for i in 1 2 3 4 5 {ps > /dev/null}
(Continue reading)

Charles Forsyth | 12 Oct 2005 10:30

Re: emu crash

i think it's a surprisingly old problem i repaired recently,
but since i'm now having trouble reproducing it without the
fix, i'll need to fuss with it a bit more ...
(i could reproduce it, though, from time to time)
From: Chad Dougherty <chad@...>
Subject: Re: [inferno-list] emu crash
Date: 2005-10-12 02:19:35 GMT
On Tue, Oct 11, 2005 at 08:19:32PM -0400, Chad Dougherty wrote:
> there's a nasty bug either somewhere in emu or the inferno ps
> command.  the following causes emu to hang completely on at least
> linux and macosx:
> 

(here's some more information.  if there's something else I can
send, let me know.)
Caerwyn suggested a bug in prog(3) and the following tends to support
that:

$ gdb emu
GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
(Continue reading)

C H Forsyth | 17 Oct 2005 14:01
Favicon

Re: building under macosx

>>	limbo -I/Users/Shared/Inferno-20050720/module -gw units.b
>>	fatal limbo compiler error: no file specified for       movw    $1,4(48(fp))

i've finally fixed that.  i'd been looking in completely the wrong place for it,
partly because it actually was wrong on all platforms (as i'd normally expect),
not just Linux or MacOSX, but manifested itself differently enough to escape
the fatal error on some other platforms (but generate rubbish sbl entries).
it was actually a bug in creating function references.  the resulting code
was correct but the source reference was not.  i just now had a better example
that made it quite obvious.

if it causes trouble before the next .iso is out (shortly),
apply the one line fix:

/n/dump/2005/1017/usr/inferno/limbo/ecom.c:1229 a /usr/inferno/limbo/ecom.c:1230
> 			tr.src = *src;

(the following line is tr.op = Oind, for context)

Richard Bilson | 18 Oct 2005 21:48
Picon

Re: Inferno on win98?

Just to follow up on this, I did eventually compile an emu that works on Windows 98. It required the Unicode support module (unicows.dll), as well as a couple of other minor tweaks. If others are interested I can tease out the specific changes relative to the current source.

On 5/31/05, Charles Forsyth <forsyth <at> terzarima.net > wrote:
> Just curious: are there particular (technical?)
> reasons for that, or is it just a case of simplifying
> maintenance by removing support for an older platform?

it was a bit of both.

the system changed to improve Unicode support
in the Windows-specific code, but that required an optional Unicode support
module that had to be tracked down on the MS site,
and when it was tracked down, didn't seem to make a
difference when i installed it.
subsequently, it either moved or vanished.

by then, we had no remaining Windows 98 (or even Me)
machines, and that made it more difficult to test.
the problem was the use of some Unicode-related calls
in os.c and devfs.c.  you could compile it to see what happens.


rog | 19 Oct 2005 20:32
Favicon

Re: Inferno on win98?

> Just to follow up on this, I did eventually compile an emu that works on
> Windows 98. It required the Unicode support module (unicows.dll), as well as
> a couple of other minor tweaks. If others are interested I can tease out the
> specific changes relative to the current source.

out of interest, would this version also run under Windows 2000/XP/... ?

Richard Bilson | 19 Oct 2005 20:46
Picon

Re: Inferno on win98?



On 10/19/05, rog-VZPH4yCFGSyB+jHODAdFcQ@public.gmane.org <rog-VZPH4yCFGSyB+jHODAdFcQ@public.gmane.org> wrote:
> Just to follow up on this, I did eventually compile an emu that works on
> Windows 98. It required the Unicode support module (unicows.dll), as well as
> a couple of other minor tweaks. If others are interested I can tease out the
> specific changes relative to the current source.

out of interest, would this version also run under Windows 2000/XP/... ?

Yes.

 


John Francis Lee | 20 Oct 2005 12:22

vnc viewer for inferno

Has anyone heard of a vnc viewer that will run on inferno?

--

-- 
John Francis Lee
1/9-10 Thanon Trairat
Muang Chiang Rai 57000
Thailand

Caerwyn B Jones | 20 Oct 2005 14:58
Favicon

Re: vnc viewer for inferno


http://www.vitanuova.com/inferno/co/vnc/index.html

it's for 3rd edition inferno. so it needs updating. i've never actually
seen it work.

-Caerwyn

Sascha Retzki | 22 Oct 2005 17:33
Picon
Picon

Some questions regarding Limbo/Tk

Hello everybody,

I've got some questions with regards to Tk. First of, "A Decent into
Limbo"[0], section 2.2 has a Tk-example which does:
	t := tk->toplevel(ctxt.screen, "");
Which makes my Limbo (I installed from some CD I found, labeled "5th
edition" unhappy:
hw.b: 18: tk->toplevel: argument type mismatch: expected ref
Draw->Display, saw ctxt.screen of type ref Draw->Screen.
Piece of cake, I changed it to:
        t := tk->toplevel(ctxt.display, "");
Which makes it compile, however the 1-to-1 copy of the 2.2-example (in
short, a button labeled {Hello World}) does not work. 
So what is the problem? Version mismatch, old/wrong documentation? What
am I doing wrong? ;-)

Mfg, Sascha Retzki


Gmane