Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #006446

  • 0 - None Assigned

  • Fixed

Issue Confirmations

  • Yes (5)No (2)
Photo

Map Server Disconnects when WoE starts and ends

Posted by Hercules Bot on 09 August 2012 - 11:21 PM

Originally posted by Lelouch vi Britannia
This is strange when the woe starts and ends the map server disconnects.

Originally posted by Lelouch vi Britannia
Sweet Heaven's i hate this crash ahaha. Btw after i opened the core dump i noticed something in it here
<br />Core was generated by `./map-server_sql'.<br />Program terminated with signal 11, Segmentation fault.<br />#0  0x081ad200 in _mmalloc (size=40, file=0x81c8154 "db.c", line=1387,<br />	func=0x81e5438 "db_obj_iterator") at malloc.c:245<br />245			 if(hash2size(size_hash) > BLOCK_DATA_SIZE - sizeof(struct unit_h						ead)) {<br />


Also here is a new core dump info after the crash. It just a small part again because its quite a big file to open /hum
<br />#0  0x081ad200 in _mmalloc (size=40, file=0x81c8154 "db.c", line=1387,<br />	func=0x81e5438 "db_obj_iterator") at malloc.c:245<br />		block = <value optimized out><br />		head = <value optimized out><br />#1  0x081ad6a0 in _mcalloc (num=1, size=40, file=0x81c8154 "db.c", line=1387,<br />	func=0x81e5438 "db_obj_iterator") at malloc.c:334<br />		p = <value optimized out><br />#2  0x081aaed7 in db_obj_iterator (self=0xaefae83c) at db.c:1387<br />		db = <value optimized out><br />		__FUNCTION__ = "db_obj_iterator"<br />#3  0x08189f27 in guild_mapindex2gc (mapindex=690) at guild.c:212<br />		gc = <value optimized out><br />		iter = <value optimized out><br />#4  0x080e9034 in mob_spawn_guardian (mapname=0xabdcdc9c "arug_cas05", x=65,<br />	y=171, mobname=0x97212eec "1st Guardian Stone", class_=1907,<br />	event=0xacaf7234 "df1#arug_cas05::OnGuardianStoneDied", guardian=-1,<br />	has_index=0 '\000') at mob.c:690<br />		md = <value optimized out><br />		data = {class_ = 1907, m = 654, x = 65, y = 171, xs = 0, ys = 0,<br />		  num = 1, active = 0, delay1 = 0, delay2 = 0, state = {size = 0,<br />			ai = 0, dynamic = 0, boss = 0},<br />		  name = "1st Guardian Stone\000\000\000\000\000",<br />		  eventname = "df1#arug_cas05::OnGuardianStoneDied", '\000' <repeats 15											  ---Type <return> to continue, or q <return> to quit---return<br />times>}<br />		g = <value optimized out><br />		gc = <value optimized out><br />		m = <value optimized out><br />		__FUNCTION__ = "mob_spawn_guardian"<br />#5  0x08102873 in buildin_guardian (st=0x9704bc14) at script.c:11484<br />		class_ = 1907<br />		x = 65<br />		y = 171<br />		guardian = 0<br />		str = 0x97212eec "1st Guardian Stone"<br />		map = 0xabdcdc9c "arug_cas05"<br />		evt = 0xacaf7234 "df1#arug_cas05::OnGuardianStoneDied"<br />		data = <value optimized out><br />#6  0x080ef416 in run_func (st=0x9704bc14) at script.c:3468<br />		data = 0x81ebf20<br />		i = -1762568372<br />		end_sp = <value optimized out><br />#7  0x0810ecc2 in run_script_main (st=0x9704bc14) at script.c:3716<br />		c = C_PARAM<br />		cmdcount = 655239<br />		gotocount = 2044<br />		sd = <value optimized out><br />		stack = 0x97212ebc<br />		nd = <value optimized out><br />#8  0x080d2976 in npc_event_do_sub (key=..., data=0xcb76e20,<br />	ap=0xbf3fc2d8 "\364\302?\277\214.!\227\232.!\227@\245\034\b\f")<br />	at npc.c:336<br />		c = 0xbf3fc2f4<br />		name = <value optimized out><br />#9  0x081abb86 in db_obj_vforeach (self=0xaec6371c,<br />	func=0x80d2900 <npc_event_do_sub>,<br />	args=0xbf3fc2d8 "\364\302?\277\214.!\227\232.!\227@\245\034\b\f")<br />	at db.c:1931<br />		argscopy = 0xbf3fc2d8 "\364\302?\277\214.!\227\232.!\227@\245\034\b\f"<br />		db = <value optimized out><br />		i = 54<br />		sum = 0<br />		node = <value optimized out><br />		parent = 0xbf3fc07b<br />#10 0x081aace6 in db_obj_foreach (self=0xbf3fc07b,<br />	func=0x80d2900 <npc_event_do_sub>) at db.c:1977<br />		args = 0xbf3fc2d8 "\364\302?\277\214.!\227\232.!\227@\245\034\b\f"<br />		ret = <value optimized out><br />#11 0x080d1874 in npc_event_do (name=0x97212e8c "df1#arug_cas05::OnEnable")<br />	at npc.c:351<br />		c = 0<br />#12 0x08105d9b in buildin_donpcevent (st=0x9704bbc4) at script.c:8963<br />		event = 0x97212e8c "df1#arug_cas05::OnEnable"<br />#13 0x080ef416 in run_func (st=0x9704bbc4) at script.c:3468<br />		data = 0x96f15454<br />		i = 5<br />		end_sp = <value optimized out><br />#14 0x0810ecc2 in run_script_main (st=0x9704bbc4) at script.c:3716<br />		c = C_PARAM<br />		cmdcount = 655326<br />		gotocount = 2048<br />		sd = <value optimized out><br />		stack = 0x97212e2c<br />		nd = <value optimized out><br />#15 0x080d2976 in npc_event_do_sub (key=..., data=0xcb770c0,<br />	ap=0xbf3fc448 "d\304?\277\\.!\227l.!\227@\245\034\b\f") at npc.c:336<br />		c = 0xbf3fc464<br />		name = <value optimized out><br />#16 0x081abb86 in db_obj_vforeach (self=0xaec6371c,<br />	func=0x80d2900 <npc_event_do_sub>,<br />	args=0xbf3fc448 "d\304?\277\\.!\227l.!\227@\245\034\b\f") at db.c:1931<br />		argscopy = 0xbf3fc448 "d\304?\277\\.!\227l.!\227@\245\034\b\f"<br />		db = <value optimized out><br />		i = 98<br />		sum = 0<br />		node = <value optimized out><br />		parent = 0xbf3fc07b<br />#17 0x081aace6 in db_obj_foreach (self=0xbf3fc07b,<br />	func=0x80d2900 <npc_event_do_sub>) at db.c:1977<br />		args = 0xbf3fc448 "d\304?\277\\.!\227l.!\227@\245\034\b\f"<br />		ret = <value optimized out><br />#18 0x080d1874 in npc_event_do (name=0x97212e5c "gard1#arug_cas05::OnReset")<br />	at npc.c:351<br />		c = 0<br />#19 0x08105d9b in buildin_donpcevent (st=0x9704bb74) at script.c:8963<br />		event = 0x97212e5c "gard1#arug_cas05::OnReset"<br />#20 0x080ef416 in run_func (st=0x9704bb74) at script.c:3468<br />		data = 0x96f15144<br />		i = 5<br />		end_sp = <value optimized out><br />#21 0x0810ecc2 in run_script_main (st=0x9704bb74) at script.c:3716<br />		c = C_PARAM<br />		cmdcount = 655302<br />		gotocount = 2048<br />		sd = <value optimized out><br />		stack = 0x97212dcc<br />		nd = <value optimized out><br />#22 0x080d2976 in npc_event_do_sub (key=..., data=0xcb770c0,<br />	ap=0xbf3fc5b8 "\324\305?\277\374-!\227\f.!\227@\245\034\b\f") at npc.c:336<br />		c = 0xbf3fc5d4<br />		name = <value optimized out><br />#23 0x081abb86 in db_obj_vforeach (self=0xaec6371c,<br />	func=0x80d2900 <npc_event_do_sub>,<br />	args=0xbf3fc5b8 "\324\305?\277\374-!\227\f.!\227@\245\034\b\f")<br />	at db.c:1931<br />		argscopy = 0xbf3fc5b8 "\324\305?\277\374-!\227\f.!\227@\245\034\b\f"<br />		db = <value optimized out><br />		i = 98<br />		sum = 0<br />		node = <value optimized out><br />		parent = 0xbf3fc07b<br />#24 0x081aace6 in db_obj_foreach (self=0xbf3fc07b,<br />	func=0x80d2900 <npc_event_do_sub>) at db.c:1977<br />		args = 0xbf3fc5b8 "\324\305?\277\374-!\227\f.!\227@\245\034\b\f"<br />		ret = <value optimized out><br />#25 0x080d1874 in npc_event_do (name=0x97212dfc "gard1#arug_cas05::OnReset")<br />	at npc.c:351<br />		c = 0<br />#26 0x08105d9b in buildin_donpcevent (st=0x9704bb24) at script.c:8963<br />		event = 0x97212dfc "gard1#arug_cas05::OnReset"<br />#27 0x080ef416 in run_func (st=0x9704bb24) at script.c:3468<br />		data = 0x96f14e34<br />		i = 5<br />		end_sp = <value optimized out><br />#28 0x0810ecc2 in run_script_main (st=0x9704bb24) at script.c:3716<br />		c = C_PARAM<br />		cmdcount = 655302<br />		gotocount = 2048<br />		sd = <value optimized out><br />		stack = 0x97212d6c<br />		nd = <value optimized out><br />#29 0x080d2976 in npc_event_do_sub (key=..., data=0xcb770c0,<br />	ap=0xbf3fc728 "D\307?\277\234-!\227\254-!\227@\245\034\b\f") at npc.c:336<br />		c = 0xbf3fc744<br />		name = <value optimized out><br />#30 0x081abb86 in db_obj_vforeach (self=0xaec6371c,<br />	func=0x80d2900 <npc_event_do_sub>,<br />	args=0xbf3fc728 "D\307?\277\234-!\227\254-!\227@\245\034\b\f") at db.c:1931<br />		argscopy = 0xbf3fc728 "D\307?\277\234-!\227\254-!\227@\245\034\b\f"<br />		db = <value optimized out><br />		i = 98<br />		sum = 0<br />		node = <value optimized out><br />		parent = 0xbf3fc07b<br />#31 0x081aace6 in db_obj_foreach (self=0xbf3fc07b,<br />	func=0x80d2900 <npc_event_do_sub>) at db.c:1977<br />		args = 0xbf3fc728 "D\307?\277\234-!\227\254-!\227@\245\034\b\f"<br />		ret = <value optimized out><br />#32 0x080d1874 in npc_event_do (name=0x97212d9c "gard1#arug_cas05::OnReset")<br />	at npc.c:351<br />		c = 0<br />#33 0x08105d9b in buildin_donpcevent (st=0x9704bad4) at script.c:8963<br />		event = 0x97212d9c "gard1#arug_cas05::OnReset"<br />#34 0x080ef416 in run_func (st=0x9704bad4) at script.c:3468<br />		data = 0x96f14b24<br />		i = 5<br />		end_sp = <value optimized out><br />#35 0x0810ecc2 in run_script_main (st=0x9704bad4) at script.c:3716<br />		c = C_PARAM<br />		cmdcount = 655302<br />		gotocount = 2048<br />		sd = <value optimized out><br />		stack = 0x97212d0c<br />		nd = <value optimized out><br />#36 0x080d2976 in npc_event_do_sub (key=..., data=0xcb770c0,<br />	ap=0xbf3fc898 "\264\310?\277<-!\227L-!\227@\245\034\b\f") at npc.c:336<br />		c = 0xbf3fc8b4<br />		name = <value optimized out><br />#37 0x081abb86 in db_obj_vforeach (self=0xaec6371c,<br />	func=0x80d2900 <npc_event_do_sub>,<br />	args=0xbf3fc898 "\264\310?\277<-!\227L-!\227@\245\034\b\f") at db.c:1931<br />		argscopy = 0xbf3fc898 "\264\310?\277<-!\227L-!\227@\245\034\b\f"<br />		db = <value optimized out><br />		i = 98<br />		sum = 0<br />		node = <value optimized out><br />		parent = 0xbf3fc07b<br />#38 0x081aace6 in db_obj_foreach (self=0xbf3fc07b,<br />	func=0x80d2900 <npc_event_do_sub>) at db.c:1977<br />		args = 0xbf3fc898 "\264\310?\277<-!\227L-!\227@\245\034\b\f"<br />		ret = <value optimized out><br />#39 0x080d1874 in npc_event_do (name=0x97212d3c "gard1#arug_cas05::OnReset")<br />	at npc.c:351<br />		c = 0<br />#40 0x08105d9b in buildin_donpcevent (st=0x9704ba84) at script.c:8963<br />		event = 0x97212d3c "gard1#arug_cas05::OnReset"<br />#41 0x080ef416 in run_func (st=0x9704ba84) at script.c:3468<br />		data = 0x96f14814<br />		i = 5<br />		end_sp = <value optimized out><br />#42 0x0810ecc2 in run_script_main (st=0x9704ba84) at script.c:3716<br />		c = C_PARAM<br />		cmdcount = 655302<br />		gotocount = 2048<br />		sd = <value optimized out><br />		stack = 0x97212cac<br />		nd = <value optimized out><br />#43 0x080d2976 in npc_event_do_sub (key=..., data=0xcb770c0,<br />	ap=0xbf3fca08 "$\312?\277\334,!\227\354,!\227@\245\034\b\f") at npc.c:336<br />		c = 0xbf3fca24<br />		name = <value optimized out><br />#44 0x081abb86 in db_obj_vforeach (self=0xaec6371c,<br />	func=0x80d2900 <npc_event_do_sub>,<br />	args=0xbf3fca08 "$\312?\277\334,!\227\354,!\227@\245\034\b\f") at db.c:1931<br />		argscopy = 0xbf3fca08 "$\312?\277\334,!\227\354,!\227@\245\034\b\f"<br />		db = <value optimized out><br />		i = 98<br />		sum = 0<br />		node = <value optimized out><br />		parent = 0xbf3fc07b<br />#45 0x081aace6 in db_obj_foreach (self=0xbf3fc07b,

Edited by Lelouch vi Britannia, 15 August 2012 - 07:50 PM.


Originally posted by Ind

Sweet Heaven's i hate this crash ahaha. Btw after i opened the core dump i noticed something in it here

Core was generated by `./map-server_sql'.Program terminated with signal 11, Segmentation fault.#0  0x081ad200 in _mmalloc (size=40, file=0x81c8154 "db.c", line=1387,    func=0x81e5438 "db_obj_iterator") at malloc.c:245245             if(hash2size(size_hash) > BLOCK_DATA_SIZE - sizeof(struct unit_h                        ead)) {

can you post the whole thing?

Originally posted by Euphy
Upload it to Mediafire, Dropbox, etc.

Originally posted by Lelouch vi Britannia

Sweet Heaven's i hate this crash ahaha. Btw after i opened the core dump i noticed something in it here

Core was generated by `./map-server_sql'.Program terminated with signal 11, Segmentation fault.#0  0x081ad200 in _mmalloc (size=40, file=0x81c8154 "db.c", line=1387,	func=0x81e5438 "db_obj_iterator") at malloc.c:245245			 if(hash2size(size_hash) > BLOCK_DATA_SIZE - sizeof(struct unit_h						ead)) {

can you post the whole thing?

I edited my post above and added a little part of the core dump

Upload it to Mediafire, Dropbox, etc.

Yeah i already attempted it but getting a 618mb core dump in a VPS host is a big big problem of mine with slow internet connection /hum

Edited by Lelouch vi Britannia, 15 August 2012 - 08:25 PM.


Originally posted by Brynner

Fixed in [rev=16638] Special thanks to lelouch vi britannia for the dump.

Its not fixed already i tryed to updated ng server svn till r16638 but the map server still crashes after WoE SE Ends. if i can give you the full core dump but quite too big 548mb geez!!


aw youre right still crashing :(

Originally posted by MarkZD

Sweet Heaven's i hate this crash ahaha. Btw after i opened the core dump i noticed something in it here

Core was generated by `./map-server_sql'.Program terminated with signal 11, Segmentation fault.#0  0x081ad200 in _mmalloc (size=40, file=0x81c8154 "db.c", line=1387,	func=0x81e5438 "db_obj_iterator") at malloc.c:245245			 if(hash2size(size_hash) > BLOCK_DATA_SIZE - sizeof(struct unit_h						ead)) {

can you post the whole thing?

I edited my post above and added a little part of the core dump

Upload it to Mediafire, Dropbox, etc.

Yeah i already attempted it but getting a 618mb core dump in a VPS host is a big big problem of mine with slow internet connection /hum


If you have an webserver installed on it you can move the file to some hidden directory within your site dir and pass the link to some developer by pm.

Or you can just create a ftpuser which have rights to read this file and send it to devs.

Edited by MarkZD, 16 August 2012 - 11:06 AM.


Originally posted by Ind
the reason the file gets so huge is because something (which is broken and we can only know what by seeing the whole file) is looping and calling endless amount of stuff, we need to identify what is that, and for that we need the whole file.

Originally posted by Lelouch vi Britannia

the reason the file gets so huge is because something (which is broken and we can only know what by seeing the whole file) is looping and calling endless amount of stuff, we need to identify what is that, and for that we need the whole file.

Ok Ind ill send you the link so you can view the whole core dump

Originally posted by Joseph
Fixed in [rev=16650].
Please tell me its fixed.

Originally posted by Brynner
have anyone tried the new update?

Originally posted by Lelouch vi Britannia
Finally its fixed!! Thanks Joseph for fixing it /no1

Edited by Lelouch vi Britannia, 17 August 2012 - 05:02 PM.


Originally posted by Brynner

Fixed in [rev=16650].Please tell me its fixed.


thanks for the fix. /no1

Originally posted by InfectedX
._. wait? really? then why my server takes a lot of time when it finishes the agit end 2 and also when it starts?