9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Help!
@ 2001-04-02 13:16 presotto
  0 siblings, 0 replies; 12+ messages in thread
From: presotto @ 2001-04-02 13:16 UTC (permalink / raw)
  To: bawei, 9fans

	8.out 1497: warning: process exceeds 100 file descriptors

That's just a warning.  It's almost always a mistake to have this
many open.  You can take the warning out of the kernel or push it
to complain at a higher number if you want.

	8.out 1497: suicide: sys: trap: fault read addr=0x0 pc=0x00000000

I can't say with certainty.  Did you happen to change and recompile/relink
the program while you were running it?  This isn't Unix, i.e., the file server
doesn't keep the old version of the file around for anyone that might have it
open.  It looks like a return through a zeroed stack which is almost always
a binary that's been rewritten or an array boundary violation on a stack
variable.  One of the debuggers (acid or db) will help with the latter case
though you may have to manually dump the stack.

	/net/tcp/511

	And cannot connect.
	What's wrong?

We have a fixed maximum number of tcp connections.  You can increase the number by
recompiling the kernel.  In /sys/src/9/ip/tcp.c look at the last routine,
tcpinit, and change Nchans to something bigger.  Or if you want to have more
possible connections for all protocols, change the definition of Nchans in
/sys/src/9/ip/ip.h.  Changing the number eats up little memory if you never
use the connections.


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [9fans] Help!
@ 2008-01-11 22:57 clinton
  2008-01-11 23:02 ` john
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: clinton @ 2008-01-11 22:57 UTC (permalink / raw)
  To: 9fans

I've installed plan9 a few times and found it to be a complete
mind-bender; it was more of a leap for me than deserting win95 for
slackware. I know I should Read The Fine Manuals ... but which are the
best ones to read first, and where do I find them? I've been an unix
enthusiast for some time (but perhaps not as long as some of you) and
I've been completely FAT-free for more than ten years now, so I'm not
scared of a steep learning curve. I've read the theoretical documents
about plan9; are there some sort of practical ones for newcomers?


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [9fans] help!
@ 2001-08-29  9:04 Lei Ding
  2001-08-29 13:12 ` Nicholas Waples
  0 siblings, 1 reply; 12+ messages in thread
From: Lei Ding @ 2001-08-29  9:04 UTC (permalink / raw)
  To: 9fans

Currently I am using linux, But I found not stable.
So I decided to try pLan9, I am already downloaded the floppy and 60mb
tgz file.
But the floppy boots and then says sth. strange errrors stops.
Why?
Could any one tell me the whole process from a to z on how to install
plan9 on a nvidia tnt.
Note: I found that files on members.optusnet.com.au/~nwaples/binaries were
deleted,so please tell me where to download
My system:
Pentium3 450
64mb x 2
IBM 30g(7200rpm,IDE)
MSI 6199
Nvidia riva tnt


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [9fans] HELP!
@ 2001-04-22 23:12 forsyth
  0 siblings, 0 replies; 12+ messages in thread
From: forsyth @ 2001-04-22 23:12 UTC (permalink / raw)
  To: 9fans

>>How do i create a password for new user?

on the console of the cpu server that's acting as authentication server,
use auth/changeuser (see changeuser(8)) to create the authentication file
entry for each new user.



^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re[2]: [9fans] X on Plan 9
@ 2001-04-22 14:18 David Lukes
  2001-04-22 22:53 ` [9fans] HELP! Dave Iafrate - CSCI/F1997
  0 siblings, 1 reply; 12+ messages in thread
From: David Lukes @ 2001-04-22 14:18 UTC (permalink / raw)
  To: 9fans

> I tired to get it to boot with bochs to no avail.
     ^^   Freudian slip?:-)
> from www.bochs.com :

> might be interesting project for someone to port and then run win95
> under plan9!

<sickness-warning>
For those with a strong stomach and a burning desire to support more hardware,
this would also provide a way to poke around devices
that have a win95 driver but no documentation/willing-manufacturer,
with a view to writing drivers

I seem to remember this approach has been used by someone
writing a Linux driver,
although I can't remember whether the attempt was actually successful ...
</sickness-warning>

	Dave.


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [9fans] Help!
@ 2001-04-02  8:50 bawei
  0 siblings, 0 replies; 12+ messages in thread
From: bawei @ 2001-04-02  8:50 UTC (permalink / raw)
  To: 9fans

This is a program for testing.

#include <u.h>
#include <libc.h>
  int dfd[1000];
  int num;
int echo_server(void)
{
  int pid;
  int i;
  char buf[256];
  int lcfd;
  int clnum;
   char adir[40], ldir[40];
   int n;
  num=0;
  if(announce("tcp!*!8888", adir) < 0) return -1;
  for(;;){
    lcfd = listen(adir, ldir);//listen for a call
    if(lcfd < 0) return -1;
        dfd[num] = accept(lcfd, ldir);
       if(dfd[num] < 0) return -1;
        print("num : %d\n",dfd[num]);

      clnum=num;
      num++;
    pid = rfork(RFPROC|RFMEM);
    switch(pid){// fork a process to echo
      case 0:
      print("%s\n",ldir);
        while((n = read(dfd[clnum], buf, sizeof(buf))) > 0)      {for (i=0;i<num;i++)write(dfd[i], buf, n);   }
        exits(0);
      case -1:
        perror("forking");
      default:
        close(lcfd);
        break;
    }
  }
}
void main(){
  echo_server();
}

And I try to connect from my Windows.

term% 8.out
num : 5
/net/tcp/2
num : 6
/net/tcp/3
..
num : 99
8.out 1497: warning: process exceeds 100 file descriptors
..
num : 110
/net/tcp/106
8.out 1497: suicide: sys: trap: fault read addr=0x0 pc=0x00000000

Some other time I retry it.
term% 8.out
num : 5
/net/tcp/2
..
num : 515
/net/tcp/511

And cannot connect.
What's wrong?

Thanks.


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

end of thread, other threads:[~2008-01-22 17:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-02 13:16 [9fans] Help! presotto
  -- strict thread matches above, loose matches on Subject: below --
2008-01-11 22:57 clinton
2008-01-11 23:02 ` john
2008-01-22 17:01   ` Glenn Becker
2008-01-11 23:06 ` john
2008-01-11 23:09 ` Pietro Gagliardi
2001-08-29  9:04 [9fans] help! Lei Ding
2001-08-29 13:12 ` Nicholas Waples
2001-08-30 18:59   ` geerten kuiper
2001-04-22 23:12 [9fans] HELP! forsyth
2001-04-22 14:18 Re[2]: [9fans] X on Plan 9 David Lukes
2001-04-22 22:53 ` [9fans] HELP! Dave Iafrate - CSCI/F1997
2001-04-02  8:50 [9fans] Help! bawei

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).