Issue information

Issue ID
#6104
Status
Confirmed
Severity
Fair
Started
Hercules Elf Bot
Jun 24, 2012 23:43
Last Post
Hercules Elf Bot
Jun 27, 2012 18:18
Confirmation
Yes (1)
No (0)

Hercules Elf Bot - Jun 24, 2012 23:43

Originally posted by [b]jTynne[/b]
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

Hercules Elf Bot - Jun 24, 2012 23:49

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

Hercules Elf Bot - Jun 27, 2012 5:19

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

[CODE]sd->ed = ed = (struct elemental_data*)aCalloc(1,sizeof(struct elemental_data));[/CODE]

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.

This post has been edited by Protimus on Jun 27, 2012 5:23

Hercules Elf Bot - Jun 27, 2012 18:18

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