Server hangs

Post here if you need help setting up your server, etc.
Post Reply
User avatar
Uzix
On Lightcycle Grid
Posts: 12
Joined: Thu May 12, 2011 7:21 pm
Location: Russia
Contact:

Server hangs

Post by Uzix »

I'm created my own server (named Tron Trek), but it's have some problems with stability. When in server many players in random time it hangs. Last messages in log:

Code: Select all

[7] debra entered the game.
[0] Timestamp: 2011/05/12 22:11:22
[1]   Terminated              /usr/pkg/opt/arm...
(terminated by pkill)
'top' say that 'armagetronad' process uses 100% of cpu.

there is output of gdb backtrace:

Code: Select all

(gdb) backtrace
#0  0x081469dc in uActionPlayer::Find ()
#1  0x080d7532 in eNetGameObject::ReceiveControlNet ()
#2  0x0811ecfb in net_control_handler ()
#3  0x08131de0 in nDescriptor::HandleMessage ()
#4  0x0813277e in rec_peer ()
#5  0x08133117 in sn_Receive ()
#6  0x08069d9b in sg_Receive ()
#7  0x0806ac6c in sg_EnterGameCore ()
#8  0x0806ad1d in sg_EnterGame ()
#9  0x0806b1ae in own_game ()
#10 0x08076694 in sg_HostGame ()
#11 0x0804dbe9 in main ()
(gdb)
this operation

Code: Select all

(gdb) return
Make selected stack frame return now? (y or n) y
#0  0x080d7532 in eNetGameObject::ReceiveControlNet ()
(gdb)
has no effect.

Compiled latest stable sources (but sty+ct have same problem) with options '--enable-dedicated --enable-respawn'.
OS is NetBSD 5.1
Image
Image
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Re: Server hangs

Post by Tank Program »

Could you please create a debug recording and upload it?
Image
User avatar
Uzix
On Lightcycle Grid
Posts: 12
Joined: Thu May 12, 2011 7:21 pm
Location: Russia
Contact:

Re: Server hangs

Post by Uzix »

Sure.
Attachments
arm1.rec.bz2
(4.95 MiB) Downloaded 148 times
Image
Image
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Server hangs

Post by Z-Man »

Thanks! You're a hero! (The recording didn't play back, but the callstack and reading the recording by hand helped)
Your fix should be here: http://forums3.armagetronad.net/viewtop ... 24#p247324
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1876
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Server hangs

Post by kyle »

Z-Man wrote:Your fix should be here: http://forums3.armagetronad.net/viewtop ... 24#p247324
IN the developers section we can't see :)
Image
User avatar
theroze
Match Winner
Posts: 596
Joined: Mon Aug 10, 2009 7:30 am
Location: 47 72 69 64

Re: Server hangs

Post by theroze »

I heard Z-man is failing again :rat:
apparition wrote:You being able to kill so many players that quickly and efficiently is evidence that the community skill level must be dropping... Sad :/
Reigning champion of: Sir-spam-a-lot 2011
User avatar
Uzix
On Lightcycle Grid
Posts: 12
Joined: Thu May 12, 2011 7:21 pm
Location: Russia
Contact:

Re: Server hangs

Post by Uzix »

Z-Man wrote:Your fix should be here: http://forums3.armagetronad.net/viewtop ... 24#p247324
I get the message "You are not authorised to read this forum.".
Image
Image
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Re: Server hangs

Post by Tank Program »

Minor details... Here's z-man's patch.
Attachments
freezefix.patch.bz2
(512 Bytes) Downloaded 160 times
Image
User avatar
Uzix
On Lightcycle Grid
Posts: 12
Joined: Thu May 12, 2011 7:21 pm
Location: Russia
Contact:

Re: Server hangs

Post by Uzix »

Tank Program wrote:Minor details... Here's z-man's patch.
This is patch for version other than 0.2.8.3.1?
Ok, problem solved by decreasing MAX_CLIENTS to 10.
Image
Image
User avatar
AI-team
Shutout Match Winner
Posts: 1020
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: Server hangs

Post by AI-team »

I think the server version does not matter (I might be wrong ;))
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Server hangs

Post by Z-Man »

Yeah, it should work for 0.2.4 to current trunk.
Post Reply