mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
239 stars 94 forks source link

nscp crashes when check_nrpe with CheckHelpers alias is called #665

Open slivkam opened 4 years ago

slivkam commented 4 years ago

Issue and Steps to Reproduce

nscp.exe process will crash with any standard CheckHelpers alias call (checkversion, checkok, ) tested in x64 versions: 0.5.2.35, 0.5.2.39, 0.5.3.4

nsclient.ini: CheckHelpers = enabled

check_nrpe -H 192.168.1.2 -c checkversion

Expected Behavior

nscp.exe should not crash, CheckHelpers alias should work

Actual Behavior

nscp.exe is crashing

Details

Additional Details

NSClient++ log: there is nothing in log (also with debug mode)

windows event log:
Faulting application name: nscp.exe, version: 0.5.3.4, time stamp: 0x5ae2226f
Faulting module name: ntdll.dll, version: 10.0.17763.831, time stamp: 0x1f1a0210
Exception code: 0xc0000374
Fault offset: 0x00000000000fb049
Faulting process id: 0x1374
Faulting application start time: 0x01d5d82e69430f73
Faulting application path: C:\NSClient++\nscp.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
mintsoft commented 4 years ago

@slivkam Is this completely reproducable or intermittant? Is it possible for you to configure DebugDiag (https://www.microsoft.com/en-us/download/details.aspx?id=49924) to get a memory dump when the process crashes?

slivkam commented 4 years ago

@mintsoft its reproducable, any CheckHelpers call = nsclient crash

Dump is here: https://github.com/slivkam/temp/blob/master/dump.rar Created with: check_nrpe -H x.x.x.x -c timeout NSClient++ version: 0.5.3.4 Windows server 2019 Standard, version 1809