You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test using a Lock works fine. The test without a lock reliably causes a segmentation fault.
Error messages
Running the above script with a nogil build produces the following output:
nogil True
Testing with lock
18.856343030929565
8000000
Testing without lock
Segmentation fault: 11
Your environment
CPython versions tested on: Tested with the current nogil-3.12-bugfix branch at ef5bac94da. The same issue occurs with or without configuring --enable-optimizations. The issue does not occur with the 3.12.0b4 beta release.
Operating system and architecture: macOS 13.4.1, MacBook Pro with quad-core Intel i7.
Notes
The crash can occur with as few as 2 threads, but it shows up more quickly when more threads are used.
While this sort of multiple access is likely to lead to incorrect results, it shouldn't crash the interpreter!
The text was updated successfully, but these errors were encountered:
Crash report
Multiple threads attempting to write to a single global variable without a lock can lead to a segmentation fault on macOS.
The script below reproduces the error:
The test using a
Lock
works fine. The test without a lock reliably causes a segmentation fault.Error messages
Running the above script with a
nogil
build produces the following output:Your environment
CPython versions tested on: Tested with the current
nogil-3.12-bugfix
branch atef5bac94da
. The same issue occurs with or without configuring--enable-optimizations
. The issue does not occur with the 3.12.0b4 beta release.Operating system and architecture: macOS 13.4.1, MacBook Pro with quad-core Intel i7.
Notes
The crash can occur with as few as 2 threads, but it shows up more quickly when more threads are used.
While this sort of multiple access is likely to lead to incorrect results, it shouldn't crash the interpreter!
The text was updated successfully, but these errors were encountered: