fuzzilli icon indicating copy to clipboard operation
fuzzilli copied to clipboard

I got "[Fuzzer] Cannot execute programs" when I try to test QJS

Open SkyCrystal opened this issue 3 years ago • 3 comments

revert commit Remove 'main' function from profiles could fix this problem. Is this expected?

SkyCrystal avatar Jan 05 '23 03:01 SkyCrystal

Hi! Are you sure that reverting that commit fixes the problem? It shouldn't really have any effect on the validity of the JavaScript code, and the error sounds more like a problem with the REPRL implementation on the QJS side. You could try running qjs using the REPRLRun tool and see if that works: swift run REPRLRun path/to/qjs --reprl

saelo avatar Jan 05 '23 09:01 saelo

Oh it fails. So maybe the patch I used on QJS has some bug? We use a modified version of QJS so maybe there's the problem. Thanks a lot.

SkyCrystal avatar Jan 05 '23 09:01 SkyCrystal

Well it looks that when I call execute("") it fails. However execute(";") workes fine. So after that commit, it really passes an empty string to QJS and then causes the problem?

SkyCrystal avatar Jan 05 '23 09:01 SkyCrystal