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

  • #006104

  • 2 - Fair

  • Confirmed

Issue Confirmations

  • Yes (1)No (0)
Photo

map server leaks 16316

Posted by Hercules Bot on 24 June 2012 - 11:43 PM

Originally posted by jTynne
Not sure if something in here is what's causing random disconnects of all players, however, here's the leaks from the latest mass DC:


Memory manager: Memory leaks found at 2012/06/23 22h59m45s (Revision 16316).
0001 : harmonycore.c line 219 size 180 address 0x0xad5096fc

0002 : pc.c line 1866 size 41 address 0x0xaae81a9c
0003 : pc.c line 1867 size 34 address 0x0xaae81f5c
0004 : pc.c line 1866 size 41 address 0x0xaae8319c
0005 : pc.c line 1867 size 34 address 0x0xaae8321c
0006 : pc.c line 1867 size 29 address 0x0xaa5aee54
0007 : pc.c line 1867 size 29 address 0x0xaa5b24b4
0008 : pc.c line 1867 size 29 address 0x0xaa5b27e4
0009 : pc.c line 1866 size 25 address 0x0xaa5b2964
0010 : pc.c line 1867 size 31 address 0x0xaa5b51b4
0011 : pc.c line 1866 size 52 address 0x0xa8f3d124
0012 : pc.c line 1866 size 52 address 0x0xa8f41224
0013 : pc.c line 1866 size 52 address 0x0xa8f43d94
0014 : elemental.c line 174 size 5936 address 0x0xa87929d4
0015 : elemental.c line 174 size 5936 address 0x0xa8794124

Originally posted by Ind
the pc.c ones are memory leaks present since eathena and which we didn't figure yet, the elemental ones are weird o-o

Originally posted by Protimus
That still happens? I made a check in elemental.c line 174:

sd->ed = ed = (struct elemental_data*)aCalloc(1,sizeof(struct elemental_data));

Probably the problem is in the struct of elemental_data and the allocation of aCalloc.

I try check any problem in pc.c and I see no reason to cause a leak, it's very weird.

Originally posted by GreenBox
Maybe the client disconnected in some way that the PC cleanup wasn't executed, still very weird