nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨
https://nodejs.org
Other
107.6k stars 29.59k forks source link

SymGetLineFromAddr64 returned error : 487 in report tests #40001

Open targos opened 3 years ago

targos commented 3 years ago

Version

master

Platform

Microsoft Windows NT 10.0.22000.0 x64 (latest Windows 11 beta)

Subsystem

report

What steps will reproduce the bug?

Compile and run tests with vcbuild.bat debug test

How often does it reproduce? Is there a required condition?

Debug mode is required, otherwise the error isn't printed

What is the expected behavior?

Report tests should pass

What do you see instead?

Report tests fail:

``` === debug test-report-uv-handles === Path: report/test-report-uv-handles node:assert:123 throw new AssertionError(obj); ^ AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'SymGetLineFromAddr64 returned error : 487\r\n' + + 'SymGetLineFromAddr64 returned error : 487' - '' at ChildProcess. (D:\Git\nodejs\node\test\report\test-report-uv-handles.js:163:12) at ChildProcess. (D:\Git\nodejs\node\test\common\index.js:401:15) at ChildProcess.emit (node:events:394:28) at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'SymGetLineFromAddr64 returned error : 487\r\n' + 'SymGetLineFromAddr64 returned error : 487', expected: '', operator: 'strictEqual' } Command: D:\Git\nodejs\node\out\Debug\node.exe D:\Git\nodejs\node\test\report\test-report-uv-handles.js === debug test-report-writereport === Path: report/test-report-writereport Writing Node.js report to file: report.20210905.122500.31048.0.001.jsonSymGetLineFromAddr64 returned error : 487 SymGetLineFromAddr64 returned error : 487 Node.js report completed Writing Node.js report to file: report.20210905.122501.31048.0.002.jsonSymGetLineFromAddr64 returned error : 487 SymGetLineFromAddr64 returned error : 487 Node.js report completed Writing Node.js report to file: report.20210905.122502.31048.0.003.jsonSymGetLineFromAddr64 returned error : 487 SymGetLineFromAddr64 returned error : 487 Node.js report completed Writing Node.js report to file: report.20210905.122502.31048.0.004.jsonSymGetLineFromAddr64 returned error : 487 SymGetLineFromAddr64 returned error : 487 Node.js report completed Writing Node.js report to file: custom-name-1.jsonSymGetLineFromAddr64 returned error : 487 SymGetLineFromAddr64 returned error : 487 Node.js report completed Writing Node.js report to file: custom-name-2.jsonSymGetLineFromAddr64 returned error : 487 SymGetLineFromAddr64 returned error : 487 Node.js report completed Writing Node.js report to file: custom-name-3.jsonSymGetLineFromAddr64 returned error : 487 SymGetLineFromAddr64 returned error : 487 Node.js report completed D:\Git\nodejs\node\test\common\report.js:40 throw new TypeError( ^ TypeError: validateContent() expects a JSON string or JavaScript Object at Object.validateContent (D:\Git\nodejs\node\test\common\report.js:40:13) at Object. (D:\Git\nodejs\node\test\report\test-report-writereport.js:115:10) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) at node:internal/main/run_main_module:17:47 Command: D:\Git\nodejs\node\out\Debug\node.exe D:\Git\nodejs\node\test\report\test-report-writereport.js === debug test-report-fatal-error === Path: report/test-report-fatal-error undefined:1 {"header":{"reportVersion":2,"event":"Allocation failed - JavaScript heap out of memory","trigger":"FatalError","filename":"stderr","dumpEventTime":"2021-09-05T12:25:07Z","dumpEventTimeStamp":"1630837507623","processId":68988,"threadId":null,"cwd":"D:\\Git\\nodejs\\node","commandLine":["D:\\Git\\nodejs\\node\\out\\Debug\\node.exe","--report-on-fatalerror","--report-compact","--report-filename=stderr","--max-old-space-size=20","D:\\Git\\nodejs\\node\\test\\report\\test-report-fatal-error.js","child"],"nodejsVersion":"v17.0.0-pre","wordSize":64,"arch":"x64","platform":"win32","componentVersions":{"node":"17.0.0-pre","v8":"9.3.345.16-node.10","uv":"1.42.0","zlib":"1.2.11","brotli":"1.0.9","ares":"1.17.2","modules":"96","nghttp2":"1.42.0","napi":"8","llhttp":"6.0.2","openssl":"1.1.1l+quic","cldr":"39.0","icu":"69.1","tz":"2021a","unicode":"13.0","ngtcp2":"0.1.0-DEV","nghttp3":"0.1.0-DEV"},"release":{"name":"node"},"osName":"Windows_NT","osRelease":"10.0.22000","osVersion":"Windows 10 Pro","osMachine":"x86_64","cpus":[{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":4837890,"nice":0,"sys":10371437,"idle":135610968,"irq":846203},{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":4601015,"nice":0,"sys":4568125,"idle":141650953,"irq":49609},{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":3578312,"nice":0,"sys":1732781,"idle":145508984,"irq":24890},{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":2838937,"nice":0,"sys":1786203,"idle":146194937,"irq":22156},{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":3081203,"nice":0,"sys":1744187,"idle":145994687,"irq":30687},{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":2581484,"nice":0,"sys":1454187,"idle":146784406,"irq":24656},{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":3743328,"nice":0,"sys":2786468,"idle":144290281,"irq":28250},{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":3592296,"nice":0,"sys":2674453,"idle":144553328,"irq":20437},{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":3032531,"nice":0,"sys":2167203,"idle":145620343,"irq":42015},{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":2314265,"nice":0,"sys":1553203,"idle":146952609,"irq":28109},{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":3291156,"nice":0,"sys":2983609,"idle":144545312,"irq":26281},{"model":"AMD Ryzen 5 3600 6-Core Processor ","speed":3593,"user":3693468,"nice":0,"sys":3981984,"idle":143144609,"irq":22937}],"networkInterfaces":[{"name":"ProtonVPN","internal":false,"mac":"00:00:00:00:00:00","address":"10.2.0.2","netmask":"255.255.255.255","family":"IPv4"},{"name":"Ethernet 2","internal":false,"mac":"24:4b:fe:5a:4a:9c","address":"192.168.1.197","netmask":"255.255.255.0","family":"IPv4"},{"name":"Loopback Pseudo-Interface 1","internal":true,"mac":"00:00:00:00:00:00","address":"::1","netmask":"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff","family":"IPv6","scopeid":0},{"name":"Loopback Pseudo-Interface 1","internal":true,"mac":"00:00:00:00:00:00","address":"127.0.0.1","netmask":"255.0.0.0","family":"IPv4"},{"name":"vEthernet (Ethernet 2)","internal":false,"mac":"00:15:5d:d3:4d:01","address":"fe80::a030:196b:d025:69fb","netmask":"ffff:ffff:ffff:ffff::","family":"IPv6","scopeid":23},{"name":"vEthernet (Ethernet 2)","internal":false,"mac":"00:15:5d:d3:4d:01","address":"172.31.16.1","netmask":"255.255.240.0","family":"IPv4"},{"name":"vEthernet (WSL)","internal":false,"mac":"00:15:5d:df:cc:a8","address":"fe80::75e0:6524:acc6:4166","netmask":"ffff:ffff:ffff:ffff::","family":"IPv6","scopeid":43},{"name":"vEthernet (WSL)","internal":false,"mac":"00:15:5d:df:cc:a8","address":"172.21.208.1","netmask":"255.255.240.0","family":"IPv4"}],"host":"DESKTOP-D2JQ6CO"},"javascriptStack":{"message":"No stack.","stack":["Unavailable."],"errorProperties":{}},"javascriptHeap":{"totalMemory":40734720,"totalCommittedMemory":40734720,"usedMemory":23010200,"availableMemory":47099688,"memoryLimit":71303168,"heapSpaces":{"read_only_space":{"memorySize":696320,"committedMemory":696320,"capacity":681696,"used":681696,"available":0},"old_space":{"memorySize":19263488,"committedMemory":19263488,"capacity":18933056,"used":18898968,"available":34088},"code_space":{"memorySize":368640,"committedMemory":368640,"capacity":94176,"used":94176,"available":0},"map_space":{"memorySize":532480,"committedMemory":532480,"capacity":244080,"used":244080,"available":0},"large_object_space":{"memorySize":3096576,"committedMemory":3096576,"capacity":3091280,"used":3091280,"available":0},"code_large_object_space":{"memorySize":0,"committedMemory":0,"capacity":0,"used":0,"available":0},"new_large_object_space":{"memorySize":0,"committedMemory":0,"capacity":8248576,"used":0,"available":8248576},"new_space":{"memorySize":16777216,"committedMemory":16777216,"capacity":8248576,"used":0,"available":8248576}}},"nativeStack":[{"pc":"0x00007ff6f8b633f9","symbol":"report::PrintNativeStack+169 [D:\\Git\\nodejs\\node\\src\\node_report.cc]:L586"},{"pc":"0x00007ff6f8b6238d","symbol":"report::WriteNodeReport+1213 [D:\\Git\\nodejs\\node\\src\\node_report.cc]:L292"},{"pc":"0x00007ff6f8b61d51","symbol":"report::TriggerNodeReport+1169 [D:\\Git\\nodejs\\node\\src\\node_report.cc]:L161"},{"pc":"0x00007ff6f8caf7c8","symbol":"node::OnFatalError+376 [D:\\Git\\nodejs\\node\\src\\node_errors.cc]:L445"},{"pc":"0x00007ff6fa4f0665","symbol":"v8::Utils::ReportOOMFailure+149 [D:\\Git\\nodejs\\node\\deps\\v8\\src\\api\\api.cc]:L319"},{"pc":"0x00007ff6fa4bf383","symbol":"v8::internal::V8::FatalProcessOutOfMemory+643 [D:\\Git\\nodejs\\node\\deps\\v8\\src\\api\\api.cc]:L279"},{"pc":"0x00007ff6fa0e7d6c","symbol":"v8::internal::Heap::FatalProcessOutOfMemory+28 [D:\\Git\\nodejs\\node\\deps\\v8\\src\\heap\\heap.cc]:L6107"},{"pc":"0x00007ff6fa0e24c3","symbol":"v8::internal::Heap::CollectGarbage+4083 [D:\\Git\\nodejs\\node\\deps\\v8\\src\\heap\\heap.cc]:L1878"},{"pc":"0x00007ff6fa0de1cb","symbol":"v8::internal::Heap::AllocateRawWithLightRetrySlowPath+187 [D:\\Git\\nodejs\\node\\deps\\v8\\src\\heap\\heap.cc]:L5399"},{"pc":"0x00007ff6fa0de45a","symbol":"v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath+74 [D:\\Git\\nodejs\\node\\deps\\v8\\src\\heap\\heap.cc]:L5417"},{"pc":"0x00007ff6f98cd580","symbol":"v8::internal::Heap::AllocateRawWith<1>+512 [D:\\Git\\nodejs\\node\\deps\\v8\\src\\heap\\heap-inl.h]:L336"},{"pc":"0x00007ff6fa12f87c","symbol":"v8::internal::Factory::NewFillerObject+60 [D:\\Git\\nodejs\\node\\deps\\v8\\src\\heap\\factory.cc]:L419"},{"pc":"0x00007ff6f99a8e37","symbol":"v8::internal::__RT_impl_Runtime_AllocateInYoungGeneration+743 [D:\\Git\\nodejs\\node\\deps\\v8\\src\\runtime\\runtime-internal.cc]:L402"},{"pc":"0x00007ff6f99a3925","symbol":"v8::internal::Runtime_AllocateInYoungGeneration+165 [D:\\Git\\nodejs\\node\\deps\\v8\\src\\runtime\\runtime-internal.cc]:L382"},{"pc":"0x00007ff6fa5af041","symbol":"Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit+61 [D:\\Git\\nodejs\\node\\out\\Debug\\obj\\v8_snapshot\\embedded.S]:L23145"},{"pc":"0x00000194daac4ad8"SymGetLineFromAddr64 returned error : 126 SyntaxError: Unexpected token S in JSON at position 7278 at JSON.parse () at Object. (D:\Git\nodejs\node\test\report\test-report-fatal-error.js:118:21) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) at node:internal/main/run_main_module:17:47 Command: D:\Git\nodejs\node\out\Debug\node.exe D:\Git\nodejs\node\test\report\test-report-fatal-error.js === debug test-abort-backtrace === Path: abort/test-abort-backtrace node:assert:171 throw err; ^ AssertionError [ERR_ASSERTION]: Each frame should start with a frame number: 1: 00007FF6F8DF4069 node::DumpBacktrace+169 [D:\Git\nodejs\node\src\debug_utils.cc]:L307 2: 00007FF6F8CAF628 node::Abort+24 [D:\Git\nodejs\node\src\node_errors.cc]:L259 3: 00007FF6F8B6FE1F node::Abort+15 [D:\Git\nodejs\node\src\node_process_methods.cc]:L72 4: 00007FF6FA411FF8 v8::internal::FunctionCallbackArguments::Call+440 [D:\Git\nodejs\node\deps\v8\src\api\api-arguments-inl.h]:L156 5: 00007FF6FA410318 v8::internal::`anonymous namespace'::HandleApiCallHelper<0>+1144 [D:\Git\nodejs\node\deps\v8\src\builtins\builtins-api.cc]:L114 6: 00007FF6FA411893 v8::internal::Builtin_Impl_HandleApiCall+387 [D:\Git\nodejs\node\deps\v8\src\builtins\builtins-api.cc]:L142 7: 00007FF6FA4114E4 v8::internal::Builtin_HandleApiCall+164 [D:\Git\nodejs\node\deps\v8\src\builtins\builtins-api.cc]:L130 8: 00007FF6FA5AF141 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit+61 [D:\Git\nodejs\node\out\Debug\obj\v8_snapshot\embedded.S]:L23155 9: 00007FF6FA5340CE Builtins_InterpreterEntryTrampoline+202 [D:\Git\nodejs\node\out\Debug\obj\v8_snapshot\embedded.S]:L5572 10: 00007FF6FA5340CE Builtins_InterpreterEntryTrampoline+202 [D:\Git\nodejs\node\out\Debug\obj\v8_snapshot\embedded.S]:L5572 11: 00007FF6FA5340CE Builtins_InterpreterEntryTrampoline+202 [D:\Git\nodejs\node\out\Debug\obj\v8_snapshot\embedded.S]:L5572 12: 00007FF6FA5340CE Builtins_InterpreterEntryTrampoline+202 [D:\Git\nodejs\node\out\Debug\obj\v8_snapshot\embedded.S]:L5572 13: 00007FF6FA5340CE Builtins_InterpreterEntryTrampoline+202 [D:\Git\nodejs\node\out\Debug\obj\v8_snapshot\embedded.S]:L5572 14: 00007FF6FA5340CE Builtins_InterpreterEntryTrampoline+202 [D:\Git\nodejs\node\out\Debug\obj\v8_snapshot\embedded.S]:L5572 15: 00007FF6FA5340CE Builtins_InterpreterEntryTrampoline+202 [D:\Git\nodejs\node\out\Debug\obj\v8_snapshot\embedded.S]:L5572 16: 00007FF6FA531CFF Builtins_JSEntryTrampoline+91 [D:\Git\nodejs\node\out\Debug\obj\v8_snapshot\embedded.S]:L5265 17: 00007FF6FA5318FB Builtins_JSEntry+215 [D:\Git\nodejs\node\out\Debug\obj\v8_snapshot\embedded.S]:L5223 18: 00007FF6FA203D6A v8::internal::`anonymous namespace'::Invoke+1834 [D:\Git\nodejs\node\deps\v8\src\execution\execution.cc]:L378 19: 00007FF6FA2030D9 v8::internal::Execution::Call+201 [D:\Git\nodejs\node\deps\v8\src\execution\execution.cc]:L472 20: 00007FF6FA4AE3CA v8::Function::Call+618 [D:\Git\nodejs\node\deps\v8\src\api\api.cc]:L5061 21: 00007FF6F8D3A170 node::ExecuteBootstrapper+432 [D:\Git\nodejs\node\src\node.cc]:L196 22: 00007FF6F8D3B198 node::StartExecution+808 [D:\Git\nodejs\node\src\node.cc]:L451 23: 00007FF6F8D39E36 node::StartExecution+1494 [D:\Git\nodejs\node\src\node.cc]:L508 24: 00007FF6F8E5BFC2 node::LoadEnvironment+98 [D:\Git\nodejs\node\src\api\environment.cc]:L409 25: 00007FF6F8C1736D node::NodeMainInstance::Run+77 [D:\Git\nodejs\node\src\node_main_instance.cc]:L146 26: 00007FF6F8C172AA node::NodeMainInstance::Run+314 [D:\Git\nodejs\node\src\node_main_instance.cc]:L139 27: 00007FF6F8D372F9 node::Start+393 [D:\Git\nodejs\node\src\node.cc]:L1153 28: 00007FF6F8839204 wmain+596 [D:\Git\nodejs\node\src\node_main.cc]:L88 29: 00007FF6FB1759C9 invoke_main+57 [d:\a01\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl]:L91 30: 00007FF6FB17586E __scrt_common_main_seh+302 [d:\a01\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl]:L288 31: 00007FF6FB17572E __scrt_common_main+14 [d:\a01\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl]:L331 32: 00007FF6FB175A5E wmainCRTStartup+14 [d:\a01\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_wmain.cpp]:L17 SymGetLineFromAddr64 returned error : 487 33: 00007FFA739954E0 BaseThreadInitThunk+16 SymGetLineFromAddr64 returned error : 487 34: 00007FFA7468485B RtlUserThreadStart+43 at Object. (D:\Git\nodejs\node\test\abort\test-abort-backtrace.js:18:14) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) at node:internal/main/run_main_module:17:47 { generatedMessage: false, code: 'ERR_ASSERTION', actual: undefined, expected: undefined, operator: 'fail' } Command: D:\Git\nodejs\node\out\Debug\node.exe D:\Git\nodejs\node\test\abort\test-abort-backtrace.js === debug test-addon-uv-handle-leak === Path: abort/test-addon-uv-handle-leak node:assert:1021 throw err; ^ AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^Close callback:/. Input: 'SymGetLineFromAddr64 returned error : 487' at Object. (D:\Git\nodejs\node\test\abort\test-addon-uv-handle-leak.js:105:16) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) at node:internal/main/run_main_module:17:47 { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'SymGetLineFromAddr64 returned error : 487', expected: /^Close callback:/, operator: 'match' } Command: D:\Git\nodejs\node\out\Debug\node.exe D:\Git\nodejs\node\test\abort\test-addon-uv-handle-leak.js ```

Additional information

No response

targos commented 3 years ago

@nodejs/diagnostics

shnooshnoo commented 9 months ago

Had a quick look into this, but was not able to fix it. Here are my findings anyway just in case: