Originally posted by [b]LightFox[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4613
Can you please tell me what caused my errors so that I can avoid it?
I don't know if it's ok to post here but I really need some help on this error since I don't know the cause.
If compiled using Release SQL, the error in the map server only shows:
Server received crash signal!
Saving all online characters.
I decided to compile using Debug SQL and turned on the dump plugin.
This is the stacktrace of my errors (I didn't include the bytes since it's kinda space consuming):
CODE
Stacktrace:
#0 0x0054FAC5 in _mfree+0x35 (ptr=(void*)0x00002FB2 , file=(char*)0x007D58D8 "c:\\...\\...\\...\\src\\map\\pc.c", line=(int)1968, func=(char*)0x007B84D4 "") at c:\...\...\...src\common\malloc.c:374
374 if(head->size == 0) {
head = (struct unit_head*)0x00002FA6 <invalid memory>
#1 0x0065A2D7 in pc_delautobonus+0x1B7 (sd=(struct map_session_data*)0x11CA0620
after some scroll down.
CODE
if( autobonus[i].bonus_script ) aFree(autobonus[i].bonus_script);
i = (int)0
#2 0x0070E2AA in status_calc_pc_+0x50A (sd=(struct map_session_data*)0x11CA0620
CODE
pc_delautobonus(sd,sd->autobonus,ARRAYLENGTH(sd->autobonus),true);
sc = (struct status_change*)0x11CA08C4
CODE
status = (struct status_data*)0x11CA081C
b_weight = (int)0
b_max_weight = (int)0
b_skill = (struct s_skill[2550])
CODE
index = (int)-858993460
i = (int)100
skill = (int)-858993460
refinedef = (int)0
#3 0x00714EB8 in status_calc_bl_+0xE8 (bl=(struct block_list*)0x11CA0620
CODE
case BL_PC: status_calc_pc_(BL_CAST(BL_PC,bl), first); break;
sta tus = (struct status_data*)0x11CA0870
b_status = (struct status_data)
0x00658A82 in pc_reg_received+0x512 (sd=(struct map_session_data*)0x11CA0620
CODE
#4 0x00658A82 in pc_reg_received+0x512 (sd=(struct map_session_data*)0x11C55040
CODE
status_calc_pc(sd,1);
j = (int)0
i = (int)0
#5 0x0060ACE3 in intif_parse_Registers+0x343 (fd=(int)2) at c:\...\...\...\src\map\intif.c:949
949 pc_reg_received(sd); //Received all registry values, execute init scripts and what-not. [Skotlex]
j = (int)0
max = (int)16
node = (struct auth_node*)0x0C94C650
flag = (int)1
account_id = (int)2001567
reg = (struct global_reg*)0x11CC406C
len = (int)-858993460
sd = (struct map_session_data*)0x11CA0620
CODE
qty = (int*)0x11CC4068 0
p = (int)13
char_id = (int)162768
#6 0x00610AF4 in intif_parse+0x344 (fd=(int)2) at c:\...\...\...\src\map\intif.c:2112
2112 case 0x3804: intif_parse_Registers(fd); break;
cmd = (int)14340
packet_len = (int)13
#7 0x005AA633 in chrif_parse+0x123 (fd=(int)2) at c:\...\...\...\src\map\chrif.c:1506
1506 int r = intif_parse(fd); // intif‚É“n‚·
r = (int)1
cmd = (int)14340
packet_len = (int)-858993460
#8 0x00557C93 in do_sockets+0x263 (next=(int)50) at c:\...\...\...\src\common\socket.c:779
779 session[i]->func_parse(i);
timeout = (struct timeval)<bytes:0000000050C30000>
ret = (int)1
rfd = (struct fd_set)
CODE
i = (int)2
#9 0x00544362 in main+0x102 (argc=(int)1, argv=(char**)0x003C30C8) at c:\...\...\...\src\common\core.c:257
257 do_sockets(next);
next = (int)50
#10 0x00753907 in __tmainCRTStartup+0x117 () at f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c:266
mainret = (int)0
managedapp = (int)0
initret = (int)0
#11 0x007537DF in mainCRTStartup+0xF () at f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c:182
#12 0x77E6F23B in ProcessIdToSessionId+0x209 ()
This post has been edited by LightFox: Dec 4 2010, 01:04 PM