27 Dec, 2008, absinthewolf wrote in the 1st comment:
Votes: 0
Hello everyone. I am working on setting up the empiremud 1.0 code just for my own personal interest. I have it running but it keeps disconnecting me. The syslog.crash gives me this error:

Dec 26 20:04:39 :: Binding to all IP interfaces on this host.
SYSERR: bind: Address already in use

Any advice on how I can fix that? Thanks in advance.
27 Dec, 2008, Zeno wrote in the 2nd comment:
Votes: 0
Is the port open that you're trying to run it on?
27 Dec, 2008, absinthewolf wrote in the 3rd comment:
Votes: 0
Yes. I do have a router but it is forwarded and open. You can connect it just kicks you off after about 30-50 seconds and produces the above error.
27 Dec, 2008, Zeno wrote in the 4th comment:
Votes: 0
Does it crash? Or does it just kick the user off?
27 Dec, 2008, absinthewolf wrote in the 5th comment:
Votes: 0
Just kicks the user off. You can relog immediately. But it's rare if you can get past creation before it kicks you.
27 Dec, 2008, absinthewolf wrote in the 6th comment:
Votes: 0
This is my entire syslog.crash file if it helps any….
autorun starting game Fri Dec 26 20:26:17 EST 2008
running bin/empire 4000
Dec 26 20:26:17 :: EmpireMUD 1.0
Dec 26 20:26:17 :: Using lib as data directory.
Dec 26 20:26:17 :: Running game on port 4000.
Dec 26 20:26:17 :: Finding player limit.
Dec 26 20:26:17 :: Setting player limit to 300 using rlimit.
Dec 26 20:26:17 :: Opening mother connection.
Dec 26 20:26:17 :: Binding to all IP interfaces on this host.
SYSERR: bind: Address already in use
Using file descriptor for logging.
27 Dec, 2008, Tricky wrote in the 7th comment:
Votes: 0
Is this your own computer that you hosting off of? It looks like something is already running on port 4000. Have you tried changing the port number to say 7777? Are you allowed to open other ports on the host you are running the mud on?

Tricky
27 Dec, 2008, absinthewolf wrote in the 8th comment:
Votes: 0
It is and no i haven't tried that but i will now. This is a fresh install of Ubuntu I am using right now so I didn't think anything would be running off of 4000. Thanks for that tip I will try it and let you know if it worked.
27 Dec, 2008, Zeno wrote in the 9th comment:
Votes: 0
That's what I meant if it was open.
27 Dec, 2008, absinthewolf wrote in the 10th comment:
Votes: 0
Sorry Zero..I'm half dead lol. It's been a rather LONG week. Sorry for mis- understanding.
27 Dec, 2008, Zeno wrote in the 11th comment:
Votes: 0
What confuses me is that it shouldn't boot if something is already binded to the port.
27 Dec, 2008, absinthewolf wrote in the 12th comment:
Votes: 0
ok well i tried a diff port and i connected and got a lot further this time but it still did the same thing..only now my syslog crash report is even larger :p

Dec 26 20:40:49 :: Loading mobs and generating index.
Dec 26 20:40:49 :: 34 mobs, 544 bytes in index, 13600 bytes in prototypes.
Dec 26 20:40:49 :: Loading objs and generating index.
Dec 26 20:40:49 :: 169 objs, 2704 bytes in index, 21632 bytes in prototypes.
Dec 26 20:40:49 :: Loading help entries.
Dec 26 20:40:49 :: 560 entries, 8960 bytes.
Dec 26 20:40:49 :: Generating player index.
Dec 26 20:40:49 :: Loading empires.
Dec 26 20:40:49 :: 43 empires, 6880 bytes.
Dec 26 20:40:49 :: Calculating territory and members…
Dec 26 20:40:50 :: SYSERR: Zero bytes or less requested at empire.c:479.
Dec 26 20:40:50 :: Loading fight messages.
Dec 26 20:40:50 :: Loading social messages.
Dec 26 20:40:50 :: Sorting command list.
Dec 26 20:40:50 :: Booting mail system.
Dec 26 20:40:50 :: 600 bytes read.
Dec 26 20:40:50 :: Mail file read – 2 messages.
Dec 26 20:40:50 :: Reading banned site and invalid-name list.
Dec 26 20:40:50 :: Deleting timed-out crash and rent files:
Dec 26 20:40:50 :: Done.
Dec 26 20:40:52 :: Beginning experience cycle at 112.
Dec 26 20:40:52 :: Boot db – DONE.
Dec 26 20:40:52 :: Signal trapping.
Dec 26 20:40:52 :: Entering game loop.
Dec 26 20:40:52 :: No connections. Going to sleep.
Dec 26 20:41:00 :: New connection. Waking up.
Dec 26 20:41:55 :: Autoauthorization approved for Daegon
Dec 26 20:41:58 :: NEW: Daegon [127.0.0.1]
Dec 26 20:42:06 :: Daegon entering game with no equipment.
Segmentation fault
27 Dec, 2008, Tricky wrote in the 13th comment:
Votes: 0
Possibly a software firewall issue and nothing to do with the router port forwarding at all.

Tricky
27 Dec, 2008, Zeno wrote in the 14th comment:
Votes: 0
Quote
Segmentation fault

Time to whip out gdb.
27 Dec, 2008, absinthewolf wrote in the 15th comment:
Votes: 0
I suppose so…I didn't remember this code being that buggy. I had one runing years ago and never had trouble with it..It must have been a differen't source of empiremud that has been lost in time… Thanks for your help!
27 Dec, 2008, absinthewolf wrote in the 16th comment:
Votes: 0
Dec 26 21:18:01 :: SYSERR: Zero bytes or less requested at empire.c:479.
Hmmmm. Not sure on this one. Any more advice?
27 Dec, 2008, Zeno wrote in the 17th comment:
Votes: 0
Can you show that line?
27 Dec, 2008, absinthewolf wrote in the 18th comment:
Votes: 0
here are lines 475-480
475 if (rnum < 0 || rnum > top_of_empiret)
return;

log_to_empire(rnum, "This empire has been deleted");

480 idnum = empire[rnum].leader;
27 Dec, 2008, absinthewolf wrote in the 19th comment:
Votes: 0
if (rnum < 0 || rnum > top_of_empiret)
return;

log_to_empire(rnum, "This empire has been deleted");

idnum = empire[rnum].leader;

CREATE(new_empire, struct empire_data, top_of_empiret);

for (i = 0; i <= top_of_empiret; i++) {
27 Dec, 2008, Omega wrote in the 20th comment:
Votes: 0
is top_of_empiret 0……… Since that log is generated by CREATE, one would assume top_of_empiret is 0.
0.0/28