Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion Failure in ChakraCore/lib/Runtime/./Types/RecyclableObject.h, VarIs<T>(aValue) #6962

Open
anbu1024 opened this issue Nov 30, 2023 · 1 comment

Comments

@anbu1024
Copy link

ChakraCore version:
commit c3ead3f

Build cmd:

./build.sh --debug --static

Test case:

function test(){

	async function foo(x) {
		const F = Float32Array;
		const S = Set;
		const A = Array;
		const R = Reflect;
		const O = Object;
		const isF = isFinite;
		const P = Proxy;
		const Sym = Symbol;
		const Boo = Boolean;
		const JS = JSON;
		const ev = eval;
		
		for (let i = 536870912; i < x; i = i ** x) {
		    const f = await foo;
		    const s = i.splice();
		}
		
		async function bart() {
		    const w = new WeakMap();
		    const s = w.set();
		}
		const ret = bart();
	}
	
	const r = foo();
	return r;
}

for(let i=0; i<1024; i++)
{
	test();
}

Execute

./ch ./test.js

Error msg:

ASSERTION 2785381: (ChakraCore/lib/Runtime/./Types/RecyclableObject.h, line 527) VarIs<T>(aValue)
 Failure: (VarIs<T>(aValue))
Illegal instruction
@ppenzin
Copy link
Member

ppenzin commented Jul 30, 2024

I can't reproduce it on the master following the exact steps provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants