-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
(function() {
"use asm";
(function(){});
})();
$ /home/skywinlinvm/chakracore/BuildLinux/Debug/ch test.js
Segmentation fault (core dumped)
$ file /home/skywinlinvm/chakracore/BuildLinux/Debug/ch
/home/skywinlinvm/chakracore/BuildLinux/Debug/ch: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32
Git hash: 3769053
OS: Ubuntu Linux 16.04.1 LTS
Arch: x86_64
Thread 1 "ch" received signal SIGSEGV, Segmentation fault.
Ident::GetPropertyId (this=0x0) at /home/skywinlinvm/chakracore/lib/Runtime/../Parser/Hash.h:296
296 Js::PropertyId GetPropertyId() const { return m_propertyId; }
(gdb) bt
#0 Ident::GetPropertyId (this=0x0) at /home/skywinlinvm/chakracore/lib/Runtime/../Parser/Hash.h:296
#1 0x00007ffff52a4564 in ByteCodeGenerator::AssignPropertyId (this=0x7fffffffc5d0, pid=0x0) at /home/skywinlinvm/chakracore/lib/Runtime/ByteCode/ByteCodeGenerator.cpp:1113
#2 0x00007ffff54c51bb in Js::AsmJsModuleCompiler::CreateNewFunctionEntry (this=0x7fffffffbb68, pnodeFnc=0x7ff7f16a57c0) at /home/skywinlinvm/chakracore/lib/Runtime/Language/AsmJsModule.cpp:1083
#3 0x00007ffff547e5ef in Js::AsmJSCompiler::CheckFunction (m=..., fncNode=0x7ff7f16a57c0) at /home/skywinlinvm/chakracore/lib/Runtime/Language/AsmJs.cpp:834
#4 0x00007ffff547e716 in Js::AsmJSCompiler::CheckFunctionsSequential (m=...) at /home/skywinlinvm/chakracore/lib/Runtime/Language/AsmJs.cpp:852
#5 0x00007ffff547f4f7 in Js::AsmJSCompiler::CheckModule (cx=0x7fffffffc198, parser=@0x7fffffffc0d8: 0x7ff7f16a5c40, stmtList=0x0) at /home/skywinlinvm/chakracore/lib/Runtime/Language/AsmJs.cpp:1161
#6 0x00007ffff547f7a8 in Js::AsmJSCompiler::Compile (cx=0x7fffffffc198, parser=0x7ff7f16a5c40, stmtList=0x0) at /home/skywinlinvm/chakracore/lib/Runtime/Language/AsmJs.cpp:1212
#7 0x00007ffff52734f0 in ByteCodeGenerator::EmitScopeList (this=0x7fffffffc5d0, pnode=0x7ff7f16a5210, breakOnBodyScopeNode=0x0) at /home/skywinlinvm/chakracore/lib/Runtime/ByteCode/ByteCodeEmitter.cpp:3616
#8 0x00007ffff52737e3 in ByteCodeGenerator::EmitScopeList (this=0x7fffffffc5d0, pnode=0x7ff7f16a5160, breakOnBodyScopeNode=0x0) at /home/skywinlinvm/chakracore/lib/Runtime/ByteCode/ByteCodeEmitter.cpp:3679
#9 0x00007ffff527369f in ByteCodeGenerator::EmitScopeList (this=0x7fffffffc5d0, pnode=0x7ff7f16a5030, breakOnBodyScopeNode=0x0) at /home/skywinlinvm/chakracore/lib/Runtime/ByteCode/ByteCodeEmitter.cpp:3665
#10 0x00007ffff52733df in ByteCodeGenerator::EmitProgram (this=0x7fffffffc5d0, pnodeProg=0x7ff7f16a5030) at /home/skywinlinvm/chakracore/lib/Runtime/ByteCode/ByteCodeEmitter.cpp:2759
#11 0x00007ffff52a7f85 in ByteCodeGenerator::Generate (pnode=0x7ff7f16a5030, grfscr=4096, byteCodeGenerator=0x7fffffffc5d0, ppRootFunc=0x7fffffffc880, sourceIndex=0, forceNoNative=false, parser=0x7fffffffca00, functionRef=0x0) at /home/skywinlinvm/chakracore/lib/Runtime/ByteCode/ByteCodeGenerator.cpp:1883
#12 0x00007ffff52abba1 in GenerateByteCode (pnode=0x7ff7f16a5030, grfscr=4096, scriptContext=0x55555590b440, ppRootFunc=0x7fffffffc880, sourceIndex=0, forceNoNative=false, parser=0x7fffffffca00, pse=0x7fffffffd1a0, parentScopeInfo=0x0, functionRef=0x0) at /home/skywinlinvm/chakracore/lib/Runtime/ByteCode/ByteCodeGenerator.cpp:2068
#13 0x00007ffff51a5939 in Js::ScriptContext::GenerateRootFunction (this=0x55555590b440, parseTree=0x7ff7f16a5030, sourceIndex=0, parser=0x7fffffffca00, grfscr=4096, pse=0x7fffffffd1a0, rootDisplayName=0x7ffff5e8d2f0 <Js::Constants::GlobalCode> u"Global code") at /home/skywinlinvm/chakracore/lib/Runtime/Base/ScriptContext.cpp:1943
#14 0x00007ffff51a5429 in Js::ScriptContext::LoadScript (this=0x55555590b440, script=0x5555558b87d0 "(function() {\n \"use asm\";\n (function(){});\n})();", cb=54, pSrcInfo=0x7fffffffce60, pse=0x7fffffffd1a0, ppSourceInfo=0x7fffffffce58, rootDisplayName=0x7ffff5e8d2f0 <Js::Constants::GlobalCode> u"Global code", loadScriptFlag=(LoadScriptFlag_Utf8Source | LoadScriptFlag_ExternalArrayBuffer), scriptSource=0x7ff7f1f30050) at /home/skywinlinvm/chakracore/lib/Runtime/Base/ScriptContext.cpp:1897
#15 0x00007ffff4bd02d5 in RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_73::operator()(Js::ScriptContext*, TTD::TTDJsRTActionResultAutoRecorder&) const (this=0x7fffffffd0a0, scriptContext=0x55555590b440, _actionEntryPopper=...) at /home/skywinlinvm/chakracore/lib/Jsrt/Jsrt.cpp:2928
#16 0x00007ffff4bcffc7 in _JsErrorCode ContextAPINoScriptWrapper<RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_73>(RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_73, bool, bool)::{lambda(Js::ScriptContext*)#1}::operator()(Js::ScriptContext*) const (this=0x7fffffffd028, scriptContext=0x55555590b440) at /home/skywinlinvm/chakracore/lib/Jsrt/JsrtInternal.h:293
#17 0x00007ffff4bcf8cd in ContextAPINoScriptWrapper_Core<_JsErrorCode ContextAPINoScriptWrapper<RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_73>(RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_73, bool, bool)::{lambda(Js::ScriptContext*)#1}>(_JsErrorCode ContextAPINoScriptWrapper<RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_73>(RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_73, bool, bool)::{lambda(Js::ScriptContext*)#1}, bool, bool) (fn=..., allowInObjectBeforeCollectCallback=false, scriptExceptionAllowed=false) at /home/skywinlinvm/chakracore/lib/Jsrt/JsrtInternal.h:254
#18 0x00007ffff4ba47d8 in ContextAPINoScriptWrapper<RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_73>(RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**)::$_73, bool, bool) (fn=..., allowInObjectBeforeCollectCallback=false, scriptExceptionAllowed=false) at /home/skywinlinvm/chakracore/lib/Jsrt/JsrtInternal.h:291
#19 0x00007ffff4ba4689 in RunScriptCore (scriptSource=0x7ff7f1f30050, script=0x5555558b87d0 "(function() {\n \"use asm\";\n (function(){});\n})();", cb=54, loadScriptFlag=(LoadScriptFlag_Utf8Source | LoadScriptFlag_ExternalArrayBuffer), sourceContext=0, sourceUrl=0x7ff7f16a0000 u"/home/skywinlinvm/chakracoretest/bb19.js", parseOnly=false, parseAttributes=JsParseScriptAttributeNone, isSourceModule=false, result=0x0) at /home/skywinlinvm/chakracore/lib/Jsrt/Jsrt.cpp:2877
#20 0x00007ffff4ba72ce in CompileRun (scriptVal=0x7ff7f1f30050, sourceContext=0, sourceUrl=0x7ff7f1f09020, parseAttributes=JsParseScriptAttributeNone, result=0x0, parseOnly=false) at /home/skywinlinvm/chakracore/lib/Jsrt/Jsrt.cpp:4336
#21 JsRun (scriptVal=0x7ff7f1f30050, sourceContext=0, sourceUrl=0x7ff7f1f09020, parseAttributes=JsParseScriptAttributeNone, result=0x0) at /home/skywinlinvm/chakracore/lib/Jsrt/Jsrt.cpp:4358
#22 0x000055555555eafe in ChakraRTInterface::JsRun (script=0x7ff7f1f30050, sourceContext=0, sourceUrl=0x7ff7f1f09020, parseAttributes=JsParseScriptAttributeNone, result=0x0) at /home/skywinlinvm/chakracore/bin/ch/ChakraRtInterface.h:367
#23 0x000055555555ca92 in RunScript (fileName=0x5555558d5e90 "bb19.js", fileContents=0x5555558b87d0 "(function() {\n \"use asm\";\n (function(){});\n})();", bufferValue=0x0, fullPath=0x7fffffffd990 "/home/skywinlinvm/chakracoretest/bb19.js") at /home/skywinlinvm/chakracore/bin/ch/ch.cpp:321
#24 0x000055555555deb0 in ExecuteTest (fileName=0x5555558d5e90 "bb19.js") at /home/skywinlinvm/chakracore/bin/ch/ch.cpp:594
#25 0x000055555555dfb0 in ExecuteTestWithMemoryCheck (fileName=0x5555558d5e90 "bb19.js") at /home/skywinlinvm/chakracore/bin/ch/ch.cpp:642
#26 0x000055555555e4f0 in main (argc=2, c_argv=0x7fffffffdd08) at /home/skywinlinvm/chakracore/bin/ch/ch.cpp:869
(gdb)