Opened 7 years ago

Last modified 7 months ago

#4574 new defect

Crash in the NetServerWorker in Debug mode

Reported by: Itms Owned by:
Priority: Must Have Milestone: Backlog
Component: Core engine Keywords:
Cc: Patch:

Description

I don't know whether this also happens on Unix.

When running in Debug mode, the game will crash when hosting a game (this happens both through the lobby and through the regular hosting interface). Apparently it happens in the deserializer but maybe the net server is to blame for passing wrong data, I didn't investigate further.

Expression: invalid null pointer

 pyrogenesis_dbg.exe!CStdDeserializer::Get(const char * name, unsigned char * data, unsigned int len) Ligne 82	C++
 pyrogenesis_dbg.exe!CStdDeserializer::ReadStringLatin1(const char * name, std::vector<unsigned char,std::allocator<unsigned char> > & str) Ligne 450	C++
 pyrogenesis_dbg.exe!CStdDeserializer::ScriptString(const char * name, JS::MutableHandle<JSString *> out) Ligne 478	C++
 pyrogenesis_dbg.exe!CStdDeserializer::ReadScriptVal(const char * __formal, JS::Handle<JSObject *> appendParent) Ligne 245	C++
 pyrogenesis_dbg.exe!CStdDeserializer::ReadScriptVal(const char * __formal, JS::Handle<JSObject *> appendParent) Ligne 221	C++
 pyrogenesis_dbg.exe!CStdDeserializer::ReadScriptVal(const char * __formal, JS::Handle<JSObject *> appendParent) Ligne 221	C++
 pyrogenesis_dbg.exe!CStdDeserializer::ReadScriptVal(const char * __formal, JS::Handle<JSObject *> appendParent) Ligne 221	C++
 pyrogenesis_dbg.exe!CStdDeserializer::ReadScriptVal(const char * __formal, JS::Handle<JSObject *> appendParent) Ligne 221	C++
 pyrogenesis_dbg.exe!CStdDeserializer::ScriptVal(const char * name, JS::MutableHandle<JS::Value> out) Ligne 495	C++
 pyrogenesis_dbg.exe!CGameSetupMessage::Deserialize(const unsigned char * pStart, const unsigned char * pEnd) Ligne 214	C++
 pyrogenesis_dbg.exe!CNetMessageFactory::CreateMessage(const void * pData, unsigned int dataSize, ScriptInterface & scriptInterface) Ligne 224	C++
 pyrogenesis_dbg.exe!CNetServerWorker::RunStep() Ligne 520	C++
 pyrogenesis_dbg.exe!CNetServerWorker::Run() Ligne 380	C++
 pyrogenesis_dbg.exe!CNetServerWorker::RunThread(void * data) Ligne 365	C++
 pyrogenesis_dbg.exe!thread_start(void * param) Ligne 624	C++

Change History (1)

comment:1 by phosit, 7 months ago

I can't reproduce it with linux on the current version [27886].
Can you still reproduce it on your machine?

Note: See TracTickets for help on using tickets.