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

9 tests fail: Fatal Python error: PyEval_AcquireThread: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL) #3971

Open
yurivict opened this issue May 16, 2024 · 1 comment

Comments

@yurivict
Copy link

90% tests passed, 9 tests failed out of 87

Total Test time (real) =  14.42 sec

The following tests FAILED:
          1 - src/Cache/PPCacheTest.IncludeChangeTolerance (Subprocess aborted)
          2 - src/CommandLine/CommandLineParserTest.WorkingDirectories1 (Subprocess aborted)
          3 - src/CommandLine/CommandLineParserTest.WorkingDirectories2 (Subprocess aborted)
          4 - src/CommandLine/CommandLineParserTest.WorkingDirectories3 (Subprocess aborted)
          5 - src/CommandLine/CommandLineParserTest.WorkingDirectories4 (Subprocess aborted)
         14 - src/Common/PlatformFileSystemTest.WorkingDirs_NonIdeal (Subprocess aborted)
         15 - src/Common/PlatformFileSystemTest.WorkingDirs_Ideal (Subprocess aborted)
         16 - src/Common/PlatformFileSystemTest.InMemoryTest (Subprocess aborted)
         17 - src/Common/PlatformFileSystemTest.PortableCacheTest (Subprocess aborted)
Errors while running CTest
Output from these tests are in: /usr/ports/cad/surelog/work/.build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
*** Error code 8

LastTest.log contains errors like these:

[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from CommandLineParserTest
[ RUN      ] CommandLineParserTest.WorkingDirectories3
Fatal Python error: PyEval_AcquireThread: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)
Python runtime state: unknown

[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from CommandLineParserTest
[ RUN      ] CommandLineParserTest.WorkingDirectories3
Fatal Python error: PyEval_AcquireThread: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)
Python runtime state: unknown

Version: 1.83
python310-3.10.14
FreeBSD 14.0

@alaindargelas
Copy link
Collaborator

alaindargelas commented May 18, 2024

Looks like you are building with Python enabled.
Python is really only supported in UHDM, when building a standalone UHDM exe with Python.
Surelog Python API has not been supported for years.

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

2 participants