From: oreillym@tartarus.uwa.edu.au (Michael O'Reilly) Subject: Re: Can't get LP-Mud 3.1.2 to work well under Linux... Date: 8 Nov 1992 14:01:24 GMT
Dr Algirdas Avizienis (aviz@lanai.cs.ucla.edu) wrote:
: Hello there!
:
: I am using Linux 0.98pl3 w/TCP/IP compiled in on a 386/25
: with 8 megs of RAM. For the last few days i've been
: trying to get LPmud 3.1.2 to work, but to no avail.
First a quick fix. Try and get the latest TCP patches.
: I've gotten it compiled, and it runs and all, but
: if I log onto the MUD, it crashes usually in about
: 10 minutes.
:
: I usually get the message:
: dev_rint: dropping packets due to lack of memory
: and then I get the message:
: accept: out of memory
:
: and an IOT trap/Abort (core dumped).
:
: However, when this happens I usually still have at
: least 5 megs left! I thought it might have been
: a problem with smalloc.c, so I tried gmalloc.c,
: but I had the same problem.
The problem is that accept() doesn't properly free inode's when it
fails.
: I've tried linking with the -static option on gcc,
: because someone previously had mentioned that
: if you linked dynamically, there would be problems
: with smalloc, but it didn't help either.
:
: Can someone PLEASE give me some advice? I
: am quite stuck.
:
: Thanks a lot.
Another fix.
Modify comm1.c to select() on the socket, and only try to accept() if
select() returns true on the socket. If you don't know what this
means, then just go look hard for the patches. Sorry, I don't have
them. Subscribe to the NET mailing list.
Michael