kgersen / Allegiance

Allegiance - RTS + FPS Space Combat game
http://www.freeallegiance.org/
MIT License
18 stars 26 forks source link

AllSrv crashs (randomly?) while removing treasuresets #59

Open kgersen opened 8 years ago

kgersen commented 8 years ago

AllSrv crashs randomly, while removing treasuresets.

Example: 03/07 13:12:22.500 Player SumVeritas@XT, ship=120 quitting side 1, mission=e38a18 03/07 13:12:22.500 sending lobby our mission info for e38a18 listening on port 0 03/07 13:12:22.500 Timer: 0.003000s spent setting session details, 0.145000s total (longest so far) 03/07 13:12:22.500 DeactivateSide side=1. 03/07 13:12:22.500 Destroying .Miner121, id=121 03/07 13:12:22.500 Destroying .Miner123, id=123 03/07 13:12:22.500 Destroying .Carrier128, id=128 03/07 13:12:22.500 Destroying .Miner129, id=129 03/07 13:12:22.500 Destroying .Miner131, id=131 03/07 13:12:22.500 SetStage, stage=0, mission=e38a18 03/07 13:12:22.500 SetStage, stage=4, mission=e38a18 03/07 13:12:22.515 Terminating mission id=24, this=2198008 igccount=0 03/07 13:12:22.515 moving 0 ships to NULL mission 03/07 13:12:22.515 nuking 0 clusters 03/07 13:12:22.515 nuking 2 sides 03/07 13:12:22.515 Nuking 1 treasureset(s): 03/07 13:12:22.515 Curt's Cool Crap (1) //End of Logfile

A few times, AllSrv hangs within a inf loop, until the OS crashs with bluescreen: 01/17 15:57:36.802 SetStage, stage=4, mission=dede40 01/17 15:57:36.802 sending lobby our mission info for dede40 listening on port 0 01/17 15:57:36.802 Terminating mission id=53, this=188a008 igccount=0 01/17 15:57:36.802 moving 0 ships to NULL mission 01/17 15:57:36.802 nuking 0 clusters 01/17 15:57:36.802 nuking 2 sides 01/17 15:57:36.802 Nuking 1 treasureset(s): 01/17 15:57:36.802 Curt's Cool Crap (1) 01/17 15:57:36.802 Curt's Cool Crap (1) 01/17 15:57:36.802 Curt's Cool Crap (1) 01/17 15:57:36.802 Curt's Cool Crap (1) 01/17 15:57:36.802 Curt's Cool Crap (1) // Inset a few thousand more lines between here 01/17 15:57:40.052 Curt's Cool Crap (1) 01/17 15:57:40.052 Curt's Cool Crap (1) 01/17 15:57:40.052 Curt's Coo //End of logfile (Bluescreen)

Full AllSrv logfiles of...

... crashs with Bluescreen: http://www.german-borg.de/server/hardcrashs_2010.zip

... crashs without bluescreen (called stacks at gmail): http://www.german-borg.de/server/softcrashs_Feb_2010.zip

Imported from trac ticket #61, created by pkk on 03-08-2010 at 19:53, last modified: 11-25-2012 at 01:39

kgersen commented 8 years ago

I believe this crash is actually caused from the logging! how ironic....

Trac comment by anonymous on 03-08-2010 at 19:54

kgersen commented 8 years ago

I opened core file with hex editor, there are no invisible "fucked up" chars, just nine regular spaces (see attachment)?!

Trac comment by pkk on 03-09-2010 at 18:41

kgersen commented 8 years ago

what I'm seeing is a buffer overflow, resulting in "fucked up" chars. The name of the treasureset is too long, removing the extra characters may help.

Trac comment by Imago on 03-10-2010 at 06:30

kgersen commented 8 years ago

For the protocol:

Removing "fucked up" chars will not fix older cores without renaming all treasuresets. It's preferred to get things working like before changes of revision 485.

Trac comment by pkk on 03-20-2010 at 21:17

kgersen commented 8 years ago

It still crashs, even with CC_09 with renamed treasureset...

04/02 20:08:52.109 SetStage, stage=0, mission=8e88b8 04/02 20:08:52.109 sending lobby our mission info for 8e88b8 listening on port 0 04/02 20:08:52.109 SetStage, stage=4, mission=8e88b8 04/02 20:08:52.109 Terminating mission id=37, this=2457008 igccount=0 04/02 20:08:52.109 moving 0 ships to NULL mission 04/02 20:08:52.109 nuking 0 clusters 04/02 20:08:52.109 nuking 2 sides 04/02 20:08:52.109 Nuking 1 treasureset(s): 04/02 20:08:52.109 treasures (1) 04/02 20:08:52.109 treasures (1) 04/02 20:08:52.109 treasures (1) // Inset a few thousand more lines between here 04/02 20:08:52.953 treasures (1) 04/02 20:08:52.953 treasures (1) 04/02 20:0 //End of logfile (Bluescreen)

Trac comment by pkk on 05-06-2010 at 18:07

kgersen commented 8 years ago

pass alogn thanks for whoever renamed the treasureset... it was worth a shot and I appreciate it.

a mini dump is now created for handled and unhanded exceptions. zip up and attach your dmp files!

Trac comment by anonymous on 06-21-2010 at 22:49

kgersen commented 8 years ago

the core dev renamed the suspect treasure set and this crash hasn't resurfaced.

Trac comment by Imago on 07-19-2010 at 03:29

kgersen commented 8 years ago

AllSrv is still crashing:

05/09 19:03:11.077 Terminating mission id=47, this=22b93a0 igccount=0 05/09 19:03:11.077 moving 0 ships to NULL mission 05/09 19:03:11.077 nuking 0 clusters 05/09 19:03:11.077 nuking 2 sides 05/09 19:03:11.077 Nuking 1 treasureset(s): 05/09 19:03:11.077 treasures (1)

For dumb see Gmail account.

PS: There was another crash, but no dumb on 06/20 19:17:33.

Trac comment by pkk on 07-19-2010 at 11:08

kgersen commented 8 years ago

what version of the server is this that you have crashing under R6? The only active R6 servers with players on it that I've seen are BETA and CDN. I'm not aware of any other sysops for beta servers.

Trac comment by anonymous on 07-19-2010 at 17:06

kgersen commented 8 years ago

that crash was from May, closing again. please re-open if you get a similar crash in a build that is current. ;-)

Trac comment by Imago on 07-19-2010 at 17:29

kgersen commented 8 years ago

Milestone R5.1 deleted

Trac comment by pkk on 01-09-2011 at 19:57

kgersen commented 8 years ago

I have to reopen it, because my server still crashs.

Need a dump first to fix it...

Trac comment by pkk on 02-25-2012 at 15:50

kgersen commented 8 years ago

Note to dump:

Build is technical R5, but includes changes of 505, 514 and 1042.

Since there were no changes on igc/missionigc.h, igc/missionigc.cpp and igc/treasuresetigc.h the tagged version of R5 should be congruent.

Symbol files: http://dl.dropbox.com/u/2975104/beta/AllSrv_R5d2_Sep_2001_VS2010.zip

Trac comment by pkk on 03-15-2012 at 17:39

kgersen commented 8 years ago

pkk, is this still happening? I've never seen this on my end.

Trac comment by Spunky on 07-17-2012 at 19:49

kgersen commented 8 years ago

AllSrv didn't crash for that reason on R6. We should close this in 1-2 months if it doesn't happen again.

Trac comment by pkk on 07-17-2012 at 20:43

kgersen commented 8 years ago

Finally some dumps...

http://dl.dropbox.com/u/2975104/beta/DevLead/Mach3%20crashs%20July%202012.zip

Trac comment by pkk on 07-23-2012 at 23:35

kgersen commented 8 years ago

First look, no clue. Only the last dump is usable, and the crash frame doesn't appear at all. Can you trigger this by repeatedly launching and killing games?

Trac comment by Spunky on 07-24-2012 at 03:28