You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "bneradt (via GitHub)" <gi...@apache.org> on 2026/04/14 22:49:35 UTC

[PR] Fix cache_read_vc assertion crash in redirect flow [trafficserver]

bneradt opened a new pull request, #13089:
URL: https://github.com/apache/trafficserver/pull/13089

   This fixes a crash where the assertion at HttpCacheSM.cc:137 fails:
   
     ink_assert((cache_read_vc == nullptr) ||
                master_sm->t_state.redirect_info.redirect_in_process)
   
   The crash occurs when a redirect cache lookup completes after
   redirect_in_process has been cleared, but cache_read_vc from the
   original request is still set. The root cause is that reset() only
   resets captive_action but does not close the existing cache_read_vc
   or cancel any pending retry events.
   
   This patch adds the missing cleanup to reset(): it now closes any
   existing cache read VC and cancels pending retry events before
   starting a new cache operation. This ensures stale state from a
   previous cache operation cannot interfere with the new one.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix cache_read_vc assertion crash in redirect flow [trafficserver]

Posted by "bneradt (via GitHub)" <gi...@apache.org>.
bneradt merged PR #13089:
URL: https://github.com/apache/trafficserver/pull/13089


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix cache_read_vc assertion crash in redirect flow [trafficserver]

Posted by "masaori335 (via GitHub)" <gi...@apache.org>.
masaori335 commented on PR #13089:
URL: https://github.com/apache/trafficserver/pull/13089#issuecomment-4247776149

   [approve ci]


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix cache_read_vc assertion crash in redirect flow [trafficserver]

Posted by "cmcfarlen (via GitHub)" <gi...@apache.org>.
cmcfarlen commented on PR #13089:
URL: https://github.com/apache/trafficserver/pull/13089#issuecomment-4254934676

   Cherry-picked to 10.2.x


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org