Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Running the server ➜ Cygwin Erorr.. Connection

Cygwin Erorr.. Connection

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1 2  

Posted by AliasCodec   USA  (26 posts)  Bio
Date Fri 13 Jan 2006 12:07 AM (UTC)
Message
Ok.. I have been looking for a while and cannot for the life of me find anything on the web about this, only vague references and no answers.

About a year ago I ran my ROM MUD with no problems using Cygwin. But now, with the new Cygwin, I am unable to recieve any connections. Here's what happens..

I start up Cygwin and go to my area folder as usual. Out of habit I run in gdb and specify my port just for safety. It get's up and running, then I go to log in.. that is where the issue occurs. It is programmed in the MUD to send a string when a connection is attempted, but nothing happens. My telnet client says connected to localhost (what I use instead of 127.0.0.1 or my network IP) then after 5 seconds it disconnects. Cygwin never recognizes that it connected.

In all honesty, I cannot say that this is purely a Cygwin problem. I am also unable to get Ventrilo Server running and connectable. Currently running WINXP SP2, so if anyone has experienced this before, I would greatly appreciate any help. I have disabled the firewall, all router firewalls, set up all port forwarding, yet nothing is working for the incoming connections, not even when I try and connect from my own computer, the server.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Fri 13 Jan 2006 12:26 AM (UTC)
Message
If your logfile never sees you connect, then something is wrong. Make sure you're connecting to the right port. Another thing I would say to try is running another MUD codebase to see if that works. Something that works fine under Cygwin such as SmaugFUSS.

I don't think a firewall would block you from connecting to localhost. I've never had that problem. Test to make sure that the port you're running on is open, just in case.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by AliasCodec   USA  (26 posts)  Bio
Date Reply #2 on Fri 13 Jan 2006 02:38 AM (UTC)
Message
Thank you very much for pointing me in that direction. It is indeed my codebase that is having an issue. SmaugFUSS worked perfectly, so now I am completely lost.
Top

Posted by AliasCodec   USA  (26 posts)  Bio
Date Reply #3 on Fri 13 Jan 2006 03:04 AM (UTC)

Amended on Fri 13 Jan 2006 03:15 AM (UTC) by AliasCodec

Message
Somehow or another I got it to give me my greeting. As the program started up, I told my client to connect and as the program finished it's startup, I got the greeting on my client then got kicked. This is.. rather confusing for me, as I have never had any issues dealing with connection before and have not read about anyone having this issue.

Edit:

Thought it would be better to edit thank just postcount++ myself heh..

Ok, I went back and pulled an old copy of my MUD that worked in the past and was from before I did an overhaul over a year ago.. Anyways, that one wont connect either. So I am thinking that it may not be my code exactly, but the way that either my system or Cygwin is handling the way that connections are dealt with in my base. This is beyond me at the moment. I am thinking of scouring the internet for a pervious version of Cygwin if possible to see if that fixes it at all.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #4 on Fri 13 Jan 2006 03:17 AM (UTC)
Message
You got kicked? Did the MUD crash, or did it just disconnect you? Either way, you can use gdb to find out what's wrong.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by AliasCodec   USA  (26 posts)  Bio
Date Reply #5 on Fri 13 Jan 2006 03:26 AM (UTC)

Amended on Fri 13 Jan 2006 03:27 AM (UTC) by AliasCodec

Message
Just got kicked. I am not all too familiar with using GDB except for when it gives me an error on crash and points me to where my errors are at. I apologize for seeming like a complete fool about this, but after not needing help for so long I am completely in the dark.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #6 on Fri 13 Jan 2006 03:30 AM (UTC)
Message
This is a great guide to gdb:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3653

Basically, you should make a break in the function that handles connections and watch what happens.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #7 on Fri 13 Jan 2006 03:55 AM (UTC)
Message
Quote:

I have disabled the firewall, all router firewalls ...


I hope you have re-enabled them. If you can't get it to work with localhost, that is obviously your first thing to fix.

If you get kicked, is there some sort of message? Maybe a breakpoint on the message would let you traceback to find the reason it is appearing. For example, your IP address is on a list that it rejects.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by AliasCodec   USA  (26 posts)  Bio
Date Reply #8 on Fri 13 Jan 2006 04:02 AM (UTC)
Message
I put breaks in create_ident, nanny, and process_ident. Nothing came up. I may just be missing the function that deals with connections, as I cannot find where. I'm amazed as how little I know about the connection, never had to deal with it before. =\
Top

Posted by AliasCodec   USA  (26 posts)  Bio
Date Reply #9 on Fri 13 Jan 2006 04:05 AM (UTC)
Message
Actually Nick, I was able to run Smaug with no issues at all. Able to connect, had a friend connect over the internet. It seems that my ROM base is having an issue. I get no message whatsoever. When using ZMud, it connects, then sits for about 5 seconds before disconnecting, with no message in Cygwin whatsoever recognizing that there was a connection. If I do not have the program running in Cygwin, ZMud will not connect at all.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #10 on Fri 13 Jan 2006 05:11 AM (UTC)
Message
Assuming your version is similar to mine, this is where new connections are detected:


        if ( select( maxdesc+1, &in_set, &out_set, &exc_set, &null_time ) < 0 )
        {
            perror( "Game_loop: select: poll" );
            exit( 1 );
        }

        /*
         * New connection?
         */
        if ( FD_ISSET( control, &in_set ) )
            init_descriptor( control );


I put a break on the bold line, and that was where it stopped when I connected. You could see how far it gets after that.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by AliasCodec   USA  (26 posts)  Bio
Date Reply #11 on Fri 13 Jan 2006 05:13 AM (UTC)
Message
Ok, I found an old version of my base that works. I compared the comm.c files and nothing is different that has to do with the connection of clients.

Something that I did notice earlier when I was able to get the greeting when I connected midstartup, the clients shows the "Sorry we are rebooting" message then it shows the greeting and options to enter the game. This is obviously something I have done, but I have no touched my base in so long it totally eludes me. I also cannot find my notebook full of the changes I have made, so that can't help. Is anyone familiar with ROM and what is called before "Exec failed; Closing child." line is printed? Because my mud does not even get to that line unless I.. hmm.

Actually, from the looks of it, the entire program is freezing. I cannot CTRL+C in Cygwin to close it as I once was able to. And it is freezing immediatly after it is fully up.
Top

Posted by AliasCodec   USA  (26 posts)  Bio
Date Reply #12 on Fri 13 Jan 2006 05:21 AM (UTC)
Message
Came up with..

Quote:
Fri Jan 13 00:14:18 2006 :: Accursed Faction is ready to rock on port 4000.

Breakpoint 1, game_loop_unix (control=4) at comm.c:718
warning: Source file is more recent than executable.

718 d->outtop = 0;
(gdb)


When I put in that breakpoint..

Alright, I brought up task manager and watched it as it booted. It's doing a hotreboot but not reporting so in Cygwin, and then freezing when it completes. I see it start the new .exe and close the old one. It is actually rebooting over and over. Hrmm...
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #13 on Fri 13 Jan 2006 11:30 AM (UTC)
Message
Sounds like you have one of those "crashover" systems installed where the MUD will perform a copyover when it's about to crash instead. These kinds of strange "connection" problems are exactly why I always advise against using them.

Your MUD has a problem, that problem causes a segfault, your MUD intercepts the segfault signal and instead of letting it crash and dump a core, it does a copyover instead. You of course get no clue what might have happened and there is no core dump to try and debug.

So the first thing I'd look for now is someplace in the code that calls copyover after receiving the SIGSEGV signal. Disable that somehow and then try running the MUD again.
Top

Posted by AliasCodec   USA  (26 posts)  Bio
Date Reply #14 on Sat 14 Jan 2006 03:57 AM (UTC)

Amended on Sat 14 Jan 2006 03:59 AM (UTC) by AliasCodec

Message
When I noticed the copyover routine repeating, that is the first thing I did. I took out all of the handlers for when it crashes to reboot and such. Now as soon as it gets running, it gives me the message in Cygwin saying that it exited normally. No errors in GDB, nothing.

Quote:
Fri Jan 13 22:57:52 2006 :: Accursed Faction is ready to rock on port 4000.

Program exited normally.
(gdb)
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


72,787 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.