-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Graal Engine Issue with Multi Threaded Access #6992
Comments
It did run, and was disabled when an unhandled exception was hit. |
This is a known issue with the Graal.js engine. |
@thc202 Can you point me to some possible documentation on the issue? Is there any known work around? Thanks. |
The issue is that the script is being accessed concurrently, which Graal.js engine does not support (https://github.com/oracle/graaljs/blob/e8ca82a9da934fb692f94eca67b7dff98e7c17fc/docs/user/Multithreading.md). Since you are still using Java 8 the "workaround" would be to use Nashorn engine, which allows concurrent access. |
Is there a workaround for this with Java > 8 or do users need to roll back to 8 and use Nashorn? |
I'm not aware of a workaround, Nashorn is still available in Java 11. |
Ah, my system rolled to 17 and it does not appear to be available. I'll install 11 and pin to that. It would be nice for the |
https://medium.com/swlh/porting-from-nashorn-how-to-handle-multi-threading-in-graal-js-957e359b7df5 ? 🤷♂️ (I'm far from versed in any of this) |
Allow the engines to declare if the scripts can be accessed by multiple threads or not, if not sync the access in the scripts cache. Part of zaproxy#6992. Signed-off-by: thc202 <thc202@gmail.com>
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
The Graal.js engine does not appear to work on windows.
To Reproduce
Run the following grail http sender script.
Manually proxy a chrome browser and navigate to http://www.google.com
The script crashes and is disabled. The following is the output from the script console.
Expected behavior
The above script should run. In general it is my understanding that graal should run be pretty much backward compatible with nashhorn.
Software versions
openjdk version "1.8.0_302"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_302-b08)
OpenJDK 64-Bit Server VM (Temurin)(build 25.302-b08, mixed mode)
Errors from the zap.log file
zap.log
Additional context
Add any other context about the problem here.
Would you like to help fix this issue?
I would be happy to help fix the issue if I have the expertise to do so.
The text was updated successfully, but these errors were encountered: