Skip to content

Instantly share code, notes, and snippets.

@ology
Created September 26, 2025 03:47
Show Gist options
  • Save ology/7503771817aea594287cf4d59a021af0 to your computer and use it in GitHub Desktop.
Save ology/7503771817aea594287cf4d59a021af0 to your computer and use it in GitHub Desktop.
Seg fault on 2nd thread?
^C
KeyboardInterrupt detected. Signaling threads to stop...
^CTraceback (most recent call last):
File "/Users/gene/sandbox/Music/midi-threads.py", line 44, in <module>
time.sleep(0.5) # keep main thread alive and respond to interrupts
~~~~~~~~~~^^^^^
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/gene/sandbox/Music/midi-threads.py", line 47, in <module>
clock_thread.join()
~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/Cellar/[email protected]/3.13.7/Frameworks/Python.framework/Versions/3.13/lib/python3.13/threading.py", line 1094, in join
self._handle.join(timeout)
~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyboardInterrupt
Segmentation fault: 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment