9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] xen progress ...
@ 2004-11-23 19:27 Ronald G. Minnich
  2004-11-23 19:49 ` andrey mirtchovski
  2004-11-24  2:26 ` Russ Cox
  0 siblings, 2 replies; 14+ messages in thread
From: Ronald G. Minnich @ 2004-11-23 19:27 UTC (permalink / raw)
  To: 9fans

ok, I resolved my odd problem with srvold9p. It makes no sense however. 

You can see the problem below. 

srvold9p:->Rwrite tag 10 count 29
srvold9p:<-Twrite tag 10 fid 298 offset 52 count 5 'cpu% '
srvold9p:=>old Twrite tag 10 fid 298 offset 52 count 5 'cpu% '
srvold9p:->Rwrite tag 10 count 5
srvold9p:<-Tread tag 10 fid 296 offset 5 count 512
srvold9p:=>old Tread tag 10 fid 296 offset 5 count 512
srvold9p:->Rread tag 10 count 3 'ps
'
srvold9p:<-Twrite tag 8 fid 298 offset 57 count 3667 'bootes            1    0:01   0:04      88K Await    init
bootes'
srvold9p:=>old Twrite tag 8 fid 298 offset 57 count 3667 'bootes            1    0:01   0:04      88K Await    init
bootes'
srvold9p: (pid 101, errstr read or write too large) wrote -1 to old system; should be 3683

So srvold9p goes to write to the old9p fd and gets an error that makes no
sense on a tcp socket. I'm still trying to find the source of the error in
the kernel (I modified fatal() in srvold9p to use %r, hence the errstr ...
part of that message).

If I change srvold9p to respond to Tversion with an Rversion that says it 
only supports up to 1024 byte messages, then everything is fine. The 
reason is that no 9p2000 messages come in to srvold9p larger than 1024 
bytes, so srvold9p can only send 1024 byte messages on the 9p1 channel, 
and the failure won't occur. 

Has anyone modified tcp in the kernel to try to preserve message 
boundaries? This problem is really weird. You shouldn't get an error like 
this on a tcp socket, I would think.

Is there a 9p2000 drawterm? 

I can now run clock in the drawterm window. Anything that uses a font gets 
this error:

getsubfont: can't read /lib/font/bit/whatever/whatever: bad count in \
bufimage


any place I should start looking? 

thanks

ron


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-11-24 19:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-23 19:27 [9fans] xen progress Ronald G. Minnich
2004-11-23 19:49 ` andrey mirtchovski
2004-11-23 19:53   ` Skip Tavakkolian
2004-11-23 20:04     ` andrey mirtchovski
2004-11-23 23:16       ` David Leimbach
2004-11-23 23:33         ` David Leimbach
2004-11-24  2:26 ` Russ Cox
2004-11-24 16:07   ` Ronald G. Minnich
2004-11-24 16:11     ` David Leimbach
2004-11-24 16:22       ` Ronald G. Minnich
2004-11-24 16:27         ` David Leimbach
2004-11-24 16:10   ` Ronald G. Minnich
2004-11-24 16:39     ` Fco. J. Ballesteros
2004-11-24 19:20     ` Skip Tavakkolian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).