trunk/769c18b73de9dd328fd434728589fffdf47846e0: [rpc] Fix dangling this in RRef::handleError static map (#192960)
- PyTorch 近 90 天出现 1673 次
- PyTorch 近 90 天第 1654 次发版
- 上一次:同一天稍早 · ciflow/trunk/199095: [inductor] Isolate combo kernel grid tests from caches
发生了什么
The static errorHandlers map in RRef::handleError() used lambdas that captured this. Since the map is initialized once, all subsequent calls from any RRef instance would use the first caller's this pointer. This can cause a use-after-free if the first RRef is destroyed first, and even if not, the wrong RRef's timedOut_ flag is set, leading to incorrect error handling. Pass this as a parameter to the lambdas instead…
摘要按规则整理自下方来源原文