summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python/src/Python/pythonrun.c
diff options
context:
space:
mode:
authorandybg <[email protected]>2026-03-08 23:23:32 +0300
committerandybg <[email protected]>2026-03-08 23:40:37 +0300
commit5e4443cb23a723cb03b9a208a3b481e4c03d393e (patch)
treef6933cc329eb17f8c7fee7b68ada19b4cfb1567d /contrib/tools/python/src/Python/pythonrun.c
parente8d346c15514532339c9070f0a412b7a7cb1bb98 (diff)
Fix race condition in grpc_shutdown causing use-after-free in c-ares
Testing CI with shutdown order fix. This PR swaps the order of grpc_iomgr_shutdown() and grpc_resolver_dns_ares_shutdown() in grpc_shutdown_internal_locked() to prevent race condition. **Root Cause:** - Timer destructors (~grpc::Alarm) call grpc_timer_cancel() - Parallel grpc_shutdown() frees c-ares resources - Results in use-after-free **Fix:** Stop timers (grpc_iomgr_shutdown) BEFORE freeing c-ares (grpc_resolver_dns_ares_shutdown). commit_hash:be77a0b79bcd97534a559650ceaa79f526d2217f
Diffstat (limited to 'contrib/tools/python/src/Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions