[PR #12566] [MERGED] ollamarunner: fix deadlock #12614

Closed
opened 2025-11-12 16:40:48 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12566
Author: @mxyng
Created: 10/10/2025
Status: Merged
Merged: 10/10/2025
Merged by: @mxyng

Base: mainHead: mxyng/fix-deadlock


📝 Commits (1)

  • 76e3d05 ollamarunner: fix deadlock

📊 Changes

1 file changed (+3 additions, -13 deletions)

View changed files

📝 runner/ollamarunner/runner.go (+3 -13)

📄 Description

hardErrCh will deadlock since forwardBatch is blocked on computeStartedCh which never gets sent. since the response to hardErrCh is to panic, just panic instead


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/12566 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 10/10/2025 **Status:** ✅ Merged **Merged:** 10/10/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/fix-deadlock` --- ### 📝 Commits (1) - [`76e3d05`](https://github.com/ollama/ollama/commit/76e3d050c8209a235b556d8c5acb903aadd7f920) ollamarunner: fix deadlock ### 📊 Changes **1 file changed** (+3 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `runner/ollamarunner/runner.go` (+3 -13) </details> ### 📄 Description hardErrCh will deadlock since forwardBatch is blocked on computeStartedCh which never gets sent. since the response to hardErrCh is to panic, just panic instead --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the
pull-request
label 2025-11-12 16:40:48 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#12614
No description provided.