Repository navigation
Closed
Description
We have been getting some background crashes with variations of the following stack since we moved from a 9.0.0 based build to a 9.0.1 based build.
[ 00 ] traffic_server get_header_field ( HPACK.cc:357 )
[ 01 ] traffic_server HpackIndexingTable::lookup(char const*, int, char const*, int) const ( HPACK.cc:251 )
[ 02 ] traffic_server hpack_encode_header_block ( HPACK.cc:908 )
[ 03 ] traffic_server http2_encode_header_blocks ( HTTP2.cc:669 )
[ 04 ] traffic_server Http2ConnectionState::send_headers_frame(Http2Stream*) ( Http2ConnectionState.cc:1651 )
[ 05 ] traffic_server Http2Stream::update_write_request(IOBufferReader*, long, bool) ( Http2Stream.cc:626 )
[ 06 ] traffic_server Http2Stream::do_io_write(Continuation*, long, IOBufferReader*, bool) ( Http2Stream.cc:348 )
[ 07 ] traffic_server HttpTunnel::producer_run(HttpTunnelProducer*) ( HttpTunnel.cc:958 )
[ 08 ] traffic_server HttpTunnel::tunnel_run(HttpTunnelProducer*) ( HttpTunnel.cc:700 )
[ 09 ] traffic_server HttpSM::state_api_callout(int, void*) ( HttpSM.cc:1543 )
[ 10 ] traffic_server HttpSM::state_api_callback(int, void*) ( HttpSM.cc:1350 )
[ 11 ] traffic_server TSHttpTxnReenable ( InkAPI.cc:6230 )
[ 12 ] header_rewrite.so (deleted)
I will try to dig into an actual core file to get some more details. From what I can see in backtracio, the HPACK table looks ok and the index seems reasonable given the size of the map.
Activity
shinrich commentedon May 13, 2021
Appears to be a corruption of the _headers container.
The 19th (20th really) entry is an invalid pointer. Looks like maybe an ascii string.
maskit commentedon May 14, 2021
Just to make sure, you literally mean 9.0.1 but not 9.1.0?
git diff 9.0.0 9.0.1 --statsays there was no change under/proxy/http2nor/proxy/hdrbetween 9.0.0 and 9.0.1.shinrich commentedon May 17, 2021
I do mean 9.0.1. Since it is a memory override, the issue could have come from elsewhere. Or the issue was present before as well and something else changed in our environment around that time.
shinrich commentedon Jun 28, 2021
Also seeing this issue in 9.1.x branch. At this point I'm suspecting the HpackDynamicTable::_evict_overflowed_entries logic.