mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Sigsegv during garbage collection under certian circumstances #259
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jacoblightning on GitHub (Apr 11, 2025).
There is a Python Sigsegv if garbage collection occurs too soon after iterating through a streamed chat.
(At least, I believe that's why it happens)
Minimal Reproducible Example
Expected result
The script exits with no error
Actual Result
The script segfaults
Traceback with
python -X faulthandler:Environment
Python 3.13.2 on Arch linux
@Jacoblightning commented on GitHub (Apr 11, 2025):
If this turns out to be a CPython error, please let me know. I already raised the issue Here (#132413)
@Jacoblightning commented on GitHub (Apr 11, 2025):
It was, in fact, not your bug. Sorry.