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

Generator ScriptFunctions should only be invoked by generator APIs with the pair of arguments they pass in #6960

Open
anbu1024 opened this issue Nov 30, 2023 · 3 comments

Comments

@anbu1024
Copy link

ChakraCore version:
commit c3ead3f

Build cmd:

./build.sh --debug --static

Test case:

function opt(){
	async function foo(a) {
		for (let i = 3705358555; i < foo; i = i + 3705358555) {
		    const v7 = await a;
		}
		function bar() {
		    'use strict';
		    const x = [5.0];
		    const y = new Int32Array();
		    y[x] = 5.0;
		}
		const z = bar();
	}
	const zz = foo();
	return zz;
}

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

Execute

./ch ./test.js

Error msg:

ASSERTION 2776368: (ChakraCore/lib/Backend/BailOut.cpp, line 1536) Generator ScriptFunctions should only be invoked by generator APIs with the pair of arguments they pass in -- the generator object and a resume yield object
 Failure: (args.Info.Count == 2)
Illegal instruction
@pseudoSOURABH
Copy link

i would like to work on this issue?

@ppenzin
Copy link
Member

ppenzin commented Apr 8, 2024

Please go ahead, let me know if you need help.

@rhuanjl
Copy link
Collaborator

rhuanjl commented Apr 22, 2024

This bug is yet another generator jit issue - doesn't look like a repeat of the bug that led me to give up on having it ready for our next release.

I think some aspects of the whole approach to generator jit need re-working; I wonder if we should switch it off by default in master?

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

No branches or pull requests

4 participants