JavaScriptEngineSwitcher icon indicating copy to clipboard operation
JavaScriptEngineSwitcher copied to clipboard

The futex facility returned an unexpected error code when running ChakraCoreJsEngine on Linux

Open haihai1999 opened this issue 1 year ago • 1 comments

1: Related information: ChakraCoreJsEngine ver 3.24.1 Application. net 8 Server Ubuntu 22.4 2: Problems that arise The code is as follows: Var chakraCoreSet=new ChakraCoreSets { DisableEval=false, Enabling ExperimentalFeatures=true, DisableBackgroundWork=false }; Using (var_engine=new ChakraCoreJsEngine (chakraCoreSet)) { _engine Execute (jsCode)// JsCode is the executed JS code, with around 50 lines of code } When executing code, Linux directly reports the error The futex facility returned an unexpected error code service has been stopped. When the configuration item DisableBackgroundWork in chakraCoreSet is changed to true, the above error will not occur.

haihai1999 avatar Apr 25 '24 07:04 haihai1999

Hello!

ChakraCoreJsEngine ver 3.24.1

First, try updating to version 3.26.0. A similar error (“Futex_fatal_error in ./nptl/pthread_mutex_lock.c”) was recently fixed in the original library.

Taritsyn avatar Apr 25 '24 07:04 Taritsyn

I recently hit this on version: JavaScriptEngineSwitcher.ChakraCore.Native.linux-x64 Version="3.21.0" I'll try the upgrade to see if that resolves my problem.

Christian-Oleson avatar Sep 13 '24 12:09 Christian-Oleson

Updating my Versions to latest in both Native.Linux and the main JavaScriptEngineSwitcher fix the issue for me.

Christian-Oleson avatar Sep 13 '24 15:09 Christian-Oleson