I am building from the master branch on an xp sp3 machine w/ vs2010. It looks like recently there was support added for the windows perf counters (InitPerfCountersWin32). However, it looks like functions such as PerfStartProviderEx are only available since Vista. There is a runtime check for advapi32.dll, but not for the individual GetProcAddress calls. Easiest solution would just be to add a NULL check on the dynamic function lookups.
I could write a patch, but basically:
if (!perfctr_startProvider) return;
I guess that should be directed @sblom.
WINDOWS: Fix perfctr crash on Windows XP and Windows Server 2003
windows: fix perfctr crash on XP and 2003
Some performance counter related functions are not available on Windows
XP and Windows Server 2003, which caused node to call a NULL pointer.