Another deadlock
#1
Rev 437

Code:
ServerTickThread
Waits for cServer::m_CSClients (owned by cSocketThread)

cSocketThread
Waits for cChunkMap::m_CSLayers (owned by ChunkSender) in cChunkMap::CompareChunkClients
Owns cServer::m_CSClients in cServer::AuthenticateUser

ChunkSender
Waits for cServer::m_CSClients (owned by cSocketThread) in cServer::Broadcast
Owns cChunkMap::m_CSLayers in cChunkMap::BroadcastToChunk

Need dump?
Reply
Thanks given by:
#2
maybe a stacktrace for the second and third thread?
Reply
Thanks given by:
#3
As you wish Smile

cSocketThread
[Image: Screenshot-2012-03-29_18.05.42.png]

ChunkSender
[Image: Screenshot-2012-03-29_18.06.32.png]

Just lemme know when I can stop debugging and update the serverTongue
Reply
Thanks given by:
#4
You know it's possible to generate a crashdump even for a process being debugged, right? Smile There's a MS cmdline tool for that, it can create a crashdump of any process, given its ID.
http://www.microsoft.com/download/en/det...en&id=4060

So you can create a dump (and archive the sources + pdb + exe) and continue in whatever you were doing before the crash Smile

I'll have a look at the deadlock later today.
Reply
Thanks given by:
#5
Fine, I'll make a dump and restart the server Smile

EDIT: Nvm, I don't feel like backing up the source tooTongue I think you have enough info
Reply
Thanks given by:
#6
take a dump, whatever Wink))

you need the sources' backup if you mad any local modifications, of course. Not needed if it's straight from svn.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)