Closed
Description
I am seeing a core in production with proxy.config.http.number_of_redirections set to 1 and PR #4145.
s_hh = 0
s_heap = 0
d_heap = 0x2b2d2c160800
d_hh = 0x2b2d2c160800
[ 0 ] traffic_server http_hdr_clone ( HTTP.cc:371 )
[ 1 ] traffic_server HTTPHdr::copy(HTTPHdr const*) ( HTTP.h:816 )
[ 2 ] traffic_server HttpTransactHeaders::copy_header_fields(HTTPHdr*, HTTPHdr... ( HttpTransactHeaders.cc:207 )
[ 3 ] traffic_server HttpTransact::build_response_copy(HttpTransact::State*, H... ( HttpTransact.cc:3894 )
[ 4 ] traffic_server HttpTransact::OSDNSLookup(HttpTransact::State*) ( HttpTransact.cc:1676 )
[ 5 ] traffic_server HttpSM::call_transact_and_set_next_state(void (*)(HttpTra... ( HttpSM.cc:7109 )
[ 6 ] traffic_server HttpSM::state_hostdb_lookup(int, void*) ( HttpSM.cc:2197 )
[ 7 ] traffic_server HttpSM::main_handler(int, void*) ( HttpSM.cc:2543 )
[ 8 ] traffic_server Continuation::handleEvent(int, void*) ( I_Continuation.h:160 )
[ 9 ] traffic_server reply_to_cont ( HostDB.cc:492 )
[ 10 ] traffic_server HostDBContinuation::dnsEvent(int, HostEnt*) ( HostDB.cc:1500 )
[ 11 ] traffic_server Continuation::handleEvent(int, void*) ( I_Continuation.h:160 )
[ 12 ] traffic_server DNSEntry::postEvent(int, Event*) ( DNS.cc:1413 )
[ 13 ] traffic_server Continuation::handleEvent(int, void*) ( I_Continuation.h:160 )
[ 14 ] traffic_server EThread::process_event(Event*, int) ( UnixEThread.cc:131 )
[ 15 ] traffic_server EThread::process_queue(Queue<Event, Event::Link_link>*, i... ( UnixEThread.cc:170 )
[ 16 ] traffic_server EThread::execute_regular() ( UnixEThread.cc:230 )
[ 17 ] traffic_server EThread::execute() ( UnixEThread.cc:325 )
[ 18 ] traffic_server spawn_thread_internal ( Thread.cc:85 )
[ 19 ] libpthread-2.17.so start_thread ( :undefined )
Activity
[-]ATS 8.0.0 rc2 core dump with PR #4145[/-][+]ATS 8.0.0 rc2 core dump with Adds configurable behavior on redirect to loopback #4145[/+]d2r commentedon Sep 19, 2018
It is a null dereference when attempting to copy a header. (The client response header I think.) I am looking into it.
d2r commentedon Sep 21, 2018
The issue is caused by attempting to follow a redirect response that is read from the cache. This can happen if configurations are changed such that a 3xx response exists in cache prior to enabling the following of redirects. Need to think about how to handle this.
d2r commentedon Sep 21, 2018
In #4289 the approach is to prevent following redirects after a cache hit.
bryancall commentedon May 30, 2019
Looks like this has been fixed. Please reopen if there is still an issue.