This repository has been archived by the owner on Jun 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
triggerReport() fails on x86 Windows #26
Comments
Test passes on 64-bit Windows Node v6.9.1 on the same machines. |
Looks like it's crashing here (first fprintf, L605 of nodereport.cc): if (SymFromAddr(hProcess, dwAddress, &dwOffset64, pSymbol)) {
DWORD dwOffset = 0;
IMAGEHLP_LINE64 line;
line.SizeOfStruct = sizeof(line);
if (SymGetLineFromAddr64(hProcess, dwAddress, &dwOffset, &line)) {
fprintf(fp, "%2d: [pc=0x%p] %s [+%d] in %s: line: %lu\n", i, pSymbol->Address, pSymbol->Name, dwOffset, line.FileName, line.LineNumber);
} else {
// SymGetLineFromAddr64() failed, just print the address and symbol
if (dwOffset64 <= 32) { // sanity check
fprintf(fp, "%2d: [pc=0x%p] %s [+%d]\n", i, pSymbol->Address, pSymbol->Name, dwOffset64);
} else {
fprintf(fp, "%2d: [pc=0x%p]\n", i, pSymbol->Address);
}
}
} else { // SymFromAddr() failed, just print the address
fprintf(fp, "%2d: [pc=0x%p]\n", i, pSymbol->Address);
} Callstack:
|
So when building with vs2015 I'm seeing these warnings that I'm not seeing with vs2013 that match up with the
Looks like |
richardlau
added a commit
to richardlau/nodereport
that referenced
this issue
Nov 18, 2016
pSymbol->Address is ULONG64 but fprintf's %p format on x86 expects 32-bits. Fixes nodejs#26
richardlau
added a commit
to richardlau/nodereport
that referenced
this issue
Nov 18, 2016
pSymbol->Address is ULONG64 but fprintf's %p format on x86 expects 32-bits. Fixes nodejs#26
richardlau
added a commit
to richardlau/nodereport
that referenced
this issue
Nov 22, 2016
pSymbol->Address is ULONG64 but fprintf's %p format on x86 expects 32-bits. Fixes nodejs#26
richardlau
added a commit
to richardlau/nodereport
that referenced
this issue
Dec 5, 2016
pSymbol->Address is ULONG64 but fprintf's %p format on x86 expects 32-bits. Fixes nodejs#26
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Node v6.9.1 win-x86
Reproduced on Windows 7 (Visual Studio 2012 or 2015) and Windows 10 (Visual Studio 2015)
Looks like the report is truncated, exit code suggests an ACCESS_VIOLATION.
The text was updated successfully, but these errors were encountered: