Bug #1251

Segfault on Windows version -- common.c (stable), line 1658

Added by IDWMaster about 2 years ago. Updated about 2 years ago.

Status:NewStart date:06/21/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Engine
Target version:1.0

Description

I am experiencing a random segfault on line 1658 ( result = _vsnprintf_s (buffer, buffersize, _TRUNCATE, format, args);) in the stable debug version of Xonotic. This only occurs in darkplaces-dedicated, and does not effect the client version.

Local variables:
buffer = Content-Type: s64 08:47:35 Jun 18 2012 0.6.0
buffersize = 1024
_TRUNCATE
format = Content-Type: %s
args = Sº÷

OS: Windows 8

History

#1 Updated by IDWMaster about 2 years ago

IDWMaster wrote:

I am experiencing a random segfault on line 1658 ( result = _vsnprintf_s (buffer, buffersize, _TRUNCATE, format, args);) in the stable debug version of Xonotic. This only occurs in darkplaces-dedicated, and does not effect the client version.

Local variables:
buffer = Content-Type: s64 08:47:35 Jun 18 2012 0.6.0
buffersize = 1024
_TRUNCATE
format = Content-Type: %s
args = Sº÷

OS: Windows 8

Replacing that line with this code seems to work (so far):
result = _vsnprintf_s (buffer, buffersize,buffersize, format, args);

#2 Updated by IDWMaster about 2 years ago

UPDATE: This proposed fix didn't work. The server still crashes....

#3 Updated by tZork about 2 years ago

How are you compiling the engine?

#4 Updated by IDWMaster about 2 years ago

I'm using the Debug x64 Visual Studio build, using the solution that is provided with Darkplaces.

#5 Updated by tZork about 2 years ago

  • Target version changed from 0.6 to 1.0

Also available in: Atom PDF