chakra-core/ChakraCore

ASSERTION: ChakraCore/lib/Backend/Inline.cpp, line 1096

anbu1024 opened this issue · 0 comments

ChakraCore version:
commit c3ead3f

Build cmd:

./build.sh --debug --static

Test case:

function foo(){
	
	function bar(a1, a2) {
		switch (bar) {
		    case a2:
		        const a3 = a1();
		        break;
		}
	}
		
	function baz(a1, a2, a3, a4) {
		const x = a2 && baz;
		const y = a2.apply(Uint16Array);
	}
	
	const r = baz(Uint16Array, bar, Uint16Array, bar);
	return r;
}

for(let i=0; i < 0x200; i++)
{
	foo();
}

Execute

./ch --bgjit --oopjit ./test.js

Error msg:

ASSERTION 2622358: (ChakraCore/lib/Backend/Inline.cpp, line 1096) defInstr != nullptr
 Failure: (defInstr != nullptr)
Illegal instruction (core dumped)