From: Jean Baptiste Favre Date: Tue, 9 Jul 2019 16:46:56 +0000 (+0100) Subject: fix-segfault X-Git-Tag: archive/raspbian/8.0.3+ds-3+rpi1~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1e27ef0fbe007e4f148b80713e9f3f1f7a2f84a5;p=trafficserver.git fix-segfault Gbp-Pq: Name 0011-fix-segfault.patch --- diff --git a/iocore/cache/CachePages.cc b/iocore/cache/CachePages.cc index 4578c4b2..089cb590 100644 --- a/iocore/cache/CachePages.cc +++ b/iocore/cache/CachePages.cc @@ -337,6 +337,13 @@ ShowCache::handleCacheEvent(int event, Event *e) CacheHTTPInfoVector *vec = &(cache_vc->vector); int alt_count = vec->count(); if (alt_count) { + // check cache_vc->first_buf is NULL, response cache lookup busy. + if (cache_vc->first_buf == nullptr) { + cache_vc->do_io_close(-1); + CHECK_SHOW(show("

Cache Lookup Busy, please try again

\n")); + return complete(event, e); + } + Doc *d = (Doc *)(cache_vc->first_buf->data()); time_t t; char tmpstr[4096];