{
  "id": "go/select-no-case-ready-timeout",
  "signature": "fatal error: all goroutines are asleep - deadlock! (select with no ready case)",
  "signature_zh": "致命错误: 所有 goroutine 都处于休眠状态 - 死锁！（select 无就绪分支）",
  "regex": "fatal\\ error:\\ all\\ goroutines\\ are\\ asleep\\ \\-\\ deadlock!\\ \\(select\\ with\\ no\\ ready\\ case\\)",
  "domain": "go",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A select statement has no default and none of its channel cases are ready, and no other goroutine can make them ready, causing a global deadlock.",
  "root_cause_type": "generic",
  "root_cause_zh": "select 语句没有 default 分支，且其 channel 分支都未就绪，也没有其他 goroutine 能使它们就绪，导致全局死锁。",
  "versions": [
    {
      "version": "1.0+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Busy-looping burns CPU and may still never see data if the producer is also blocked.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Add a timeout case with time.After and return an error on expiry.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Ensure at least one case is a send that can always proceed, or restructure so the producer runs before the select.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-09-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}