Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums: http://buildandshoot.com/

[Bug] Server Crash (pyspades)

For all your hosting needs.

[Bug] Server Crash (pyspades)

Postby Jouh » Thu Jun 28, 2012 6:53 am

Hey guys,

since a week I'm hosting a small Pyspades server on a linux machine (Vserver). Im amazed how smoothly it ran until now, but yesterday I had the second crash in two days. So I have two questions, but beforehand I'll show you the tracesback:

Code: Select all
2012-06-27 11:38:28+0000 [-] Unhandled Error
   Traceback (most recent call last):
     File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run
       self.mainLoop()
     File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
       self.runUntilCurrent()
     File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
       call.func(*call.args, **call.kw)
     File "/usr/lib/python2.7/dist-packages/twisted/internet/task.py", line 215, in __call__
       d = defer.maybeDeferred(self.f, *self.a, **self.kw)
   --- <exception caught here> ---
     File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
       result = f(*args, **kw)
     File "../pyspades/server.py", line 1570, in update
       self.world.update(UPDATE_FREQUENCY)
     File "world.pyx", line 377, in pyspades.world.World.update (./pyspades/world.cpp:6239)
      
     File "world.pyx", line 352, in pyspades.world.Grenade.update (./pyspades/world.cpp:5702)
      
     File "../pyspades/server.py", line 1022, in grenade_exploded
       grenade = grenade)
     File "../pyspades/server.py", line 854, in set_hp
       self.kill(hit_by, type, grenade)
     File "../pyspades/server.py", line 894, in kill
       if self.on_kill(by, type, grenade) is False:
     File "/home/u148754/pyspades/feature_server/scripts/ratio.py", line 41, in on_kill
       return connection.on_kill(self, killer, type, grenade)
     File "/home/u148754/pyspades/feature_server/scripts/squad.py", line 261, in on_kill
       return connection.on_kill(self, killer, type, grenade)
     File "/home/u148754/pyspades/feature_server/scripts/airstrike.py", line 120, in on_kill
       connection.on_kill(self, killer, type, grenade)
     File "/home/u148754/pyspades/feature_server/scripts/ratio.py", line 41, in on_kill
       return connection.on_kill(self, killer, type, grenade)
     File "/home/u148754/pyspades/feature_server/scripts/rampage.py", line 133, in on_kill
       killer = killer.name)
   exceptions.UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)


Is it possible for some capable person to send malformed packets that can lead to a crash? It doesn't necessarily be the cause of _this_ problem here, but I'd be interested if ppl know something about it and if yes so, if there is some sort of enhancement coming.

Second thing is: What exactly led to the server crash here? From what i read out of that traceback, there's some ASCII symbol that cant be encoded connected to the rampage script- is that the common Ä/Ö/Ü/ß problem pyspades got? Or is it something special here? Maybe there is someone with special characters in name going on rampage? I dunno...

Thanks for your help in advance,

Jouh
Das Haus der Freuden - Ein kleiner, deutscher Server der nur auf euch wartet ;)
Jouh
Member
 
Posts: 2
Joined: Thu Jun 28, 2012 6:44 am

Re: [Bug] Server Crash (pyspades)

Postby ZaRcHRoNiCa » Thu Jun 28, 2012 7:49 am

I've seen that sort of thing.. it'll show up that there was an error from an IP & then it shows a bunch of slashes like /%\Ø/¶ but longer... at one point my system restarted... I don't see the need for these extra characters in the game personally... I think I may have saved one of the errors... if I find it I'll post it
User avatar
ZaRcHRoNiCa
Member
 
Posts: 14
Joined: Fri Jun 08, 2012 3:47 pm

Re: [Bug] Server Crash (pyspades)

Postby ZaRcHRoNiCa » Thu Jun 28, 2012 9:54 am

it's gone.. but next time I see it I'll save it..
User avatar
ZaRcHRoNiCa
Member
 
Posts: 14
Joined: Fri Jun 08, 2012 3:47 pm

Re: [Bug] Server Crash (pyspades)

Postby Jouh » Thu Jun 28, 2012 9:55 am

Well, since I'm hosting a server that shall be (at the moment) mainly for german ppl, special chars are needed - as are for austrians or swiss.

My question is: Is this assumption correct? Do those characters really cause the servercrash?
Das Haus der Freuden - Ein kleiner, deutscher Server der nur auf euch wartet ;)
Jouh
Member
 
Posts: 2
Joined: Thu Jun 28, 2012 6:44 am

Re: [Bug] Server Crash (pyspades)

Postby ZaRcHRoNiCa » Thu Jun 28, 2012 6:43 pm

(warning: processing '\t\x10\x01\x01\x02\x00\x00\x00\x00\x7f\x7f\x7fziomek\x00' from 83.26.8.252 took 37.2949998379)
User avatar
ZaRcHRoNiCa
Member
 
Posts: 14
Joined: Fri Jun 08, 2012 3:47 pm


Return to Server



Who is online

Users browsing this forum: No registered users and 3 guests

cron