{
  "id": "redis/rdb-load-corrupt-double-free",
  "signature": "RDB checksum mismatch: expected 0xabc123 but got 0xdef456, possible data corruption or double-free detected",
  "signature_zh": "RDB 校验和不匹配：预期 0xabc123 但实际为 0xdef456，可能检测到数据损坏或双重释放",
  "regex": "RDB checksum mismatch: expected 0x[0-9a-fA-F]+ but got 0x[0-9a-fA-F]+",
  "domain": "redis",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The RDB file's checksum does not match the computed checksum, indicating file corruption during write, transfer, or storage, possibly due to a double-free memory error in the dump process.",
  "root_cause_type": "generic",
  "root_cause_zh": "RDB 文件的校验和与计算值不匹配，表明在写入、传输或存储过程中文件损坏，可能是转储过程中的双重释放内存错误所致。",
  "versions": [
    {
      "version": "6.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "7.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.0-m3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Re-run the RDB save command to overwrite the corrupted file.",
      "why_fails": "If the corruption is due to underlying disk or memory issues, the new save may also be corrupted.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a backup RDB file from a different time without verifying its integrity.",
      "why_fails": "The backup may have the same corruption if it was written during the same problematic period.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "Disable checksum verification in redis.conf by setting rdbchecksum no.",
      "why_fails": "This ignores the error but does not fix the corruption; loading corrupted data can cause crashes or data loss.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use the redis-check-rdb tool to repair the RDB file: redis-check-rdb --fix /path/to/dump.rdb",
      "success_rate": 0.75,
      "how": "Use the redis-check-rdb tool to repair the RDB file: redis-check-rdb --fix /path/to/dump.rdb",
      "condition": "",
      "sources": []
    },
    {
      "action": "Restore from a known good backup taken before the corruption occurred. Example: copy backup.rdb to dump.rdb and restart Redis.",
      "success_rate": 0.85,
      "how": "Restore from a known good backup taken before the corruption occurred. Example: copy backup.rdb to dump.rdb and restart Redis.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the corruption is due to memory errors, run memtest on the server hardware and replace faulty RAM, then restore from backup.",
      "success_rate": 0.7,
      "how": "If the corruption is due to memory errors, run memtest on the server hardware and replace faulty RAM, then restore from backup.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Use the redis-check-rdb tool to repair the RDB file: redis-check-rdb --fix /path/to/dump.rdb",
    "Restore from a known good backup taken before the corruption occurred. Example: copy backup.rdb to dump.rdb and restart Redis.",
    "If the corruption is due to memory errors, run memtest on the server hardware and replace faulty RAM, then restore from backup."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://redis.io/docs/latest/operate/oss_admin/persistence/",
  "official_doc_section": null,
  "error_code": "ERR",
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.7,
  "resolvable": "partial",
  "first_seen": "2024-01-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}