Skip to content
Snippets Groups Projects
  • Craig Tiller's avatar
    43a2b176
    Fix a TSAN reported race · 43a2b176
    Craig Tiller authored
    I think this was the frequent crash in uds_cancel_after_invoke.
    
    The race happens because a channel is deleted concurrently with an address being resolved (and UDS gets the resolution fast enough for this to actually happen).
    
    The fix is to guarantee no callbacks will be made after cancel has been called (which was the original guaranteee that got lost somewhere).
    43a2b176
    History
    Fix a TSAN reported race
    Craig Tiller authored
    I think this was the frequent crash in uds_cancel_after_invoke.
    
    The race happens because a channel is deleted concurrently with an address being resolved (and UDS gets the resolution fast enough for this to actually happen).
    
    The fix is to guarantee no callbacks will be made after cancel has been called (which was the original guaranteee that got lost somewhere).