MuzTank / 3ceam

3ceam
0 stars 0 forks source link

Server Down / Crash #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Happens every few hours
2. After server crash, it will make a new file named core.xxxxx -> where xxxxx 
is random number. (File size ~300 MB)
3. -

What is the expected output? What do you see instead?
-

What version of the product are you using? On what operating system?
r601, CentOS 5.5 Final

Please provide any additional information below.
It happens after I update to r601. *from r600*
Src edit : add @go & edit mmo.h only

Am I must recompile again or how?

Tq

Original issue reported on code.google.com by edwin.k...@gmail.com on 18 Mar 2011 at 6:49

GoogleCodeExporter commented 8 years ago
Please upload to somewhere those core files together with your server files ( 
your mapserver binary ), so I can analyze to get the reason of the crash.

Note: the core usually can be compressed fairly well, so eventually after 
compression it wont be too big to upload somewhere.

Original comment by xazax.hun on 21 Mar 2011 at 8:20

GoogleCodeExporter commented 8 years ago
what server files u needed? how to get map server binary?

Original comment by edwin.k...@gmail.com on 22 Mar 2011 at 7:50

GoogleCodeExporter commented 8 years ago
Map server binary is the file you run. In the mos cases map-server_sql or 
something like that, so basically the executable file. And I need the core 
files of course. ( The more core file you provide is the better. )

Or of you don't want to share those files you can do the analyze yourself using 
gdb:

gdb map-server_binary_name core_filename

then you will get gdb> prompt. Type: bt full. Give me the output of that 
command.

Original comment by xazax.hun on 22 Mar 2011 at 4:30

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
this is src files I edited:
mapindex.h -> for @go
mmo.h -> change MAX_CHARS_SLOTS to 12; MAX_PARTY to 24; 
atcommand.c -> add town in @go; add @sit; add @freeze; add @unfreeze;
map.h -> change MAX_EVENTQUEUE to 5;
skill.c -> add this patch manually 
http://3ceam.googlecode.com/svn/Diff/Bug%20Fix/emgrcool.patch
status.c -> add this patch manually 
http://3ceam.googlecode.com/svn/Diff/Exploit%20Fix/statMVPim.patch

Original comment by edwin.k...@gmail.com on 22 Mar 2011 at 5:33

GoogleCodeExporter commented 8 years ago
I analyzed the core dumps and all the crashes are happened because one reason.

It is a known problem and will be fixed in the next revision.

Until than you can fix it yourself:
In battle.c search for: 
case SR_RAMPAGEBLASTER
around line: 2268
and replace the 2 "sd->spiritball_old" with "(sd?sd->spiritball_old:5)". 
Recompile after that, and it should be fixed than.

Original comment by xazax.hun on 23 Mar 2011 at 1:56

GoogleCodeExporter commented 8 years ago
ok, thx you

Original comment by edwin.k...@gmail.com on 23 Mar 2011 at 1:58

GoogleCodeExporter commented 8 years ago
so, it looks like this?
if( sc && sc->data[SC_EXPLOSIONSPIRITS] )
skillratio += 40 * skill_lv * (sd?sd->spiritball_old:5) - 100;
else
skillratio += 20 * skill_lv * (sd?sd->spiritball_old:5) - 100;

right?

Original comment by edwin.k...@gmail.com on 23 Mar 2011 at 4:56

GoogleCodeExporter commented 8 years ago
Right.

Original comment by xazax.hun on 23 Mar 2011 at 6:36

GoogleCodeExporter commented 8 years ago

Original comment by xazax.hun on 10 Jun 2011 at 6:09