Cuberite Forum
Crash on deleting cPlayer::m_CreativeInventory - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Crash on deleting cPlayer::m_CreativeInventory (/thread-402.html)



Crash on deleting cPlayer::m_CreativeInventory - FakeTruth - 03-21-2012

I don't know why this happens, but this crash happens a lot on my server...

In cPlayer::~cPlayer() it apparently deletes a dangling pointer which doesn't make any sense to me..

The call stack is really not that interesting
[Image: Screenshot-2012-03-21_13.45.54.png]

And here are some variables
[Image: Screenshot-2012-03-21_13.46.45.png]

I also got a dump file from VS2010 so I don't know if that's any help...


RE: Crash on deleting cPlayer::m_CreativeInventory - xoft - 03-21-2012

Alright, let's try the dump file (but you need to give me the PDBs as well Wink
Looking at the callstack, it doesn't seem like a dangling ptr to inventory, but rather a corrupted inventory - the failing delete[] is the one deleting inventory's items.


RE: Crash on deleting cPlayer::m_CreativeInventory - FakeTruth - 03-21-2012

It's 50MB so let's just wait forever until it's done uploadingTongue


RE: Crash on deleting cPlayer::m_CreativeInventory - FakeTruth - 03-21-2012

http://dl.dropbox.com/u/27784874/MCServerDump.rar


RE: Crash on deleting cPlayer::m_CreativeInventory - xoft - 03-21-2012

Eh, I need the EXE, too.
(Updated the How to report crashes guide with this new insight Smile


RE: Crash on deleting cPlayer::m_CreativeInventory - FakeTruth - 03-22-2012

http://dl.dropbox.com/u/27784874/MCServer_debug.rar


RE: Crash on deleting cPlayer::m_CreativeInventory - xoft - 03-22-2012

won't open - did you recompile in the meantime? All the files (pdb, exe, dmp) need to matchTongue That's why we need to archive PDB files for nightbuilds - it is not possible to "just recompile" them.
i guess it's useless - i can't seem to get msvcr100d.dll not msvcp100d.dll symbols anyway, so i couldn't debug your issue.


RE: Crash on deleting cPlayer::m_CreativeInventory - FakeTruth - 03-22-2012

Yeah I did recompile Sad

Lesson learned for next time!