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
➜ SMAUG
➜ SMAUG coding
➜ SmaugFuss IMPORTANT Test
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
3
Posted by
| Matteo2303
(16 posts) Bio
|
Date
| Tue 23 Jan 2007 09:33 PM (UTC) |
Message
| Hello, is there someone that could be run the SmaugFuss in Windows (with cygwin+gdb) telling me the IP/PORT?
I need to test a possible crash with multiple connections that produce this error:
"accept_new: select: poll: Bad file descriptor"
Tnx
bye | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Tue 23 Jan 2007 09:43 PM (UTC) |
Message
| Could you maybe give a little more information on what exactly you are going to do? Multiple connections seem to work fine in most cases; have you found some kind of special problem? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Matteo2303
(16 posts) Bio
|
Date
| Reply #2 on Tue 23 Jan 2007 09:52 PM (UTC) |
Message
| I want open 50-100 connections in 10 seconds, and close them all in one. Mud crashes... Can I try with you? | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #3 on Tue 23 Jan 2007 10:01 PM (UTC) |
Message
| That's odd, my MUD just got spammed from a connection (someone from Italy). At least 60 connections in a few seconds. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Matteo2303
(16 posts) Bio
|
Date
| Reply #4 on Tue 23 Jan 2007 10:06 PM (UTC) |
Message
| Sorry Sorry Sorry, I call you in mud, but i press enter in my test program for mistake.
I think that there is a big vulnerability in all smaugfuss socks.
Sorry again Zeno.
I'm desolated. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #5 on Tue 23 Jan 2007 10:14 PM (UTC) |
Message
| That's what I thought you were going to do, some kind of DoS attack. As a general rule it really isn't very polite to do that to somebody without being very clear about what you're going to do beforehand. :)
It wouldn't surprise me if the default SMAUG networking code has vulnerabilities like that. Is there any reason why you're looking for Cygwin MUDs in particular? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #6 on Tue 23 Jan 2007 10:19 PM (UTC) |
Message
| Probably because Windows might have less of 'control' over sockets, IE the limit is not as large. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Matteo2303
(16 posts) Bio
|
Date
| Reply #7 on Tue 23 Jan 2007 10:19 PM (UTC) |
Message
| >As a general rule it really isn't very polite to do that
Yes, sorry, a true mistake. (the mud crashed)
>Is there any reason why you're looking for Cygwin MUDs in particular?
Becose I work on cygwin and smaugfuss and the problem exist.
Bye
matteo
| Top |
|
Posted by
| Matteo2303
(16 posts) Bio
|
Date
| Reply #8 on Tue 23 Jan 2007 10:25 PM (UTC) |
Message
| >Probably because Windows might have less of 'control' over sockets, IE the limit is not as large.
Ok that's is possible, but this mean that all the people that run smaug under windows can crash with a simple DoS attack? :( I cant belive. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #9 on Tue 23 Jan 2007 10:34 PM (UTC) |
Message
|
Quote: Yes, sorry, a true mistake. (the mud crashed)
Well, if you were referring to my MUD... no it hasn't crashed recently, at all. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Matteo2303
(16 posts) Bio
|
Date
| Reply #10 on Tue 23 Jan 2007 10:43 PM (UTC) |
Message
| >Well, if you were referring to my MUD... no it hasn't crashed recently, at all.
So strange. I'm 99% secure that smaugfuss v1.4-->v1.7 under cygwin the mud crash with the "accept_new: select: poll: Bad file descriptor". The latest version (1.7) is more stronger, and 500connections are necessary sometimes. Are you sure tha your mud don't fall down after my DoS? Do you use cygwin?
Bye | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #11 on Tue 23 Jan 2007 10:46 PM (UTC) |
Message
| When this happens and the MUD crashes, do you get any kind of log message besides the perror report?
The man page for select will complain if you try to select on sockets that are closed.
The accept_new function adds all connections it thinks are open to the in_set before selecting on it.
Therefore, if some of those sockets are closed but the MUD does not completely correctly remove them in the right order with respect to select, the select call will fail with EBADF which is the error message you are seeing.
So, I'd like to know if any of the connections coming in are getting through and closing before the MUD panics, or if it's the first few that cause it to die. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Matteo2303
(16 posts) Bio
|
Date
| Reply #12 on Tue 23 Jan 2007 11:02 PM (UTC) |
Message
| I dont speak well english :(
I can report my logs...
Smaugfuss 1.7 logs are different from smaugfuss 1.4. I report the two logs.
FUSS 1.7:
Wed Jan 24 00:55:17 2007 :: Sock.sinaddr: 127.0.0.1, port 4874.
Wed Jan 24 00:55:17 2007 :: Sock.sinaddr: 127.0.0.1, port 4875.
<LONG CUT>
Wed Jan 24 00:55:20 2007 :: Sock.sinaddr: 127.0.0.1, port 4887.
Wed Jan 24 00:55:21 2007 :: Sock.sinaddr: 127.0.0.1, port 4891.
Wed Jan 24 00:55:21 2007 :: Sock.sinaddr: 127.0.0.1, port 4902.
Wed Jan 24 00:55:21 2007 :: EOF encountered on read.
Wed Jan 24 00:55:21 2007 :: EOF encountered on read.
<LONG CUT>
Wed Jan 24 00:55:21 2007 :: EOF encountered on read.
Wed Jan 24 00:55:21 2007 :: EOF encountered on read.
Read_from_descriptor: Software caused connection abort
Wed Jan 24 00:55:21 2007 :: EOF encountered on read.
accept_new: select: poll: Bad file descriptor
Program exited with code 01.
(gdb) bt
No stack.
And under smaugfuss 1.4 (with some little changes)...
Wed Jan 24 01:01:40 2007 :: Broke all-time maximum player record: 66
Wed Jan 24 01:01:40 2007 :: Sock.sinaddr: 127.0.0.1, port 1432.
Wed Jan 24 01:01:40 2007 :: Broke all-time maximum player record: 67
Wed Jan 24 01:01:41 2007 :: Sock.sinaddr: 127.0.0.1, port 1434.
Wed Jan 24 01:01:41 2007 :: Broke all-time maximum player record: 68
Wed Jan 24 01:01:41 2007 :: [*****] BUG: Auth_check: exception found for (unknown)@127.0.0.1.
Wed Jan 24 01:01:45 2007 :: Sock.sinaddr: 127.0.0.1, port 1435.
Wed Jan 24 01:01:45 2007 :: Broke all-time maximum player record: 69
Wed Jan 24 01:01:45 2007 :: [*****] BUG: Auth_check: exception found for (unknown)@127.0.0.1.
Wed Jan 24 01:01:45 2007 :: [*****] BUG: Auth_check: exception found for (unknown)@127.0.0.1.
Wed Jan 24 01:01:51 2007 :: Sock.sinaddr: 127.0.0.1, port 1436.
Wed Jan 24 01:01:51 2007 :: Broke all-time maximum player record: 70
Wed Jan 24 01:01:51 2007 :: Sock.sinaddr: 127.0.0.1, port 1437.
Wed Jan 24 01:01:51 2007 :: Broke all-time maximum player record: 71
Wed Jan 24 01:01:52 2007 :: Sock.sinaddr: 127.0.0.1, port 1438.
Wed Jan 24 01:01:52 2007 :: Broke all-time maximum player record: 72
Wed Jan 24 01:01:52 2007 :: Sock.sinaddr: 127.0.0.1, port 1439.
Wed Jan 24 01:01:52 2007 :: Broke all-time maximum player record: 73
Wed Jan 24 01:01:52 2007 :: Sock.sinaddr: 127.0.0.1, port 1440.
Wed Jan 24 01:01:52 2007 :: Broke all-time maximum player record: 74
Wed Jan 24 01:01:52 2007 :: [*****] BUG: Auth_check: exception found for (unknown)@127.0.0.1.
Wed Jan 24 01:01:52 2007 :: [*****] BUG: Auth_check: exception found for (unknown)@127.0.0.1.
accept_new: select: poll: Bad file descriptor
Program exited with code 01.
(gdb) bt
No stack.
(gdb)
| Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #13 on Tue 23 Jan 2007 11:14 PM (UTC) |
Message
| Looks like an exit to me, and not a crash. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Matteo2303
(16 posts) Bio
|
Date
| Reply #14 on Tue 23 Jan 2007 11:24 PM (UTC) |
Message
| Yes, is an exit:
if ( select( maxdesc+1, &in_set, &out_set, &exc_set, &null_time ) < 0 )
{
perror( "accept_new: select: poll" );
exit( 1 );
}
...but how I can prevent this? I think that's a bug. The descriptor cant become "-1"... this can be only if there is a problem imho.
Tnx | 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.
84,594 views.
This is page 1, subject is 3 pages long: 1 2
3
It is now over 60 days since the last post. This thread is closed.
Refresh page
top