masaori335 commented on issue #7380:
URL: https://github.com/apache/trafficserver/issues/7380#issuecomment-748701998


   I was tackling down #7379, ASan detected a leak. If I revert `ac7ed9580`, 
this leak is gone.
   
   # ASan report
   ```
   Direct leak of 256 byte(s) in 1 object(s) allocated from:                    
                                                                                
                         #0 0x10a9ebbb3 in wrap_posix_memalign+0xb3 
(libclang_rt.asan_osx_dynamic.dylib:x86_64+0x46bb3)
       #1 0x10a12f1d9 in ats_memalign ink_memory.cc:102
       #2 0x10a160ff1 in 
jearena::JemallocNodumpAllocator::allocate(_InkFreeList*) JeAllocator.cc:118
       #3 0x10a1356e9 in malloc_new(_InkFreeList*) ink_queue.cc:269
       #4 0x10a131127 in ink_freelist_new ink_queue.cc:192
       #5 0x108faf9df in ClassAllocator<HTTPCacheAlt>::alloc() Allocator.h:133
       #6 0x108faf90f in HTTPInfo::create() HTTP.cc:1969
       #7 0x108d7a83b in 
HttpTransact::handle_cache_operation_on_forward_server_response(HttpTransact::State*)
 HttpTransact.cc:4269
       #8 0x108d70903 in 
HttpTransact::handle_forward_server_connection_open(HttpTransact::State*) 
HttpTransact.cc:3850
       #9 0x108d69335 in 
HttpTransact::handle_response_from_server(HttpTransact::State*) 
HttpTransact.cc:3498
       #10 0x108d2c124 in HttpTransact::HandleResponse(HttpTransact::State*) 
HttpTransact.cc:3200
       #11 0x108c51906 in HttpSM::call_transact_and_set_next_state(void 
(*)(HttpTransact::State*)) HttpSM.cc:7161
       #12 0x108c6ca00 in HttpSM::handle_api_return() HttpSM.cc:1590
       #13 0x108c6a9d6 in HttpSM::state_api_callout(int, void*) HttpSM.cc:1525
       #14 0x108cb78e9 in HttpSM::do_api_callout_internal() HttpSM.cc:5103
       #15 0x108c464ac in HttpSM::do_api_callout() HttpSM.cc:340
       #16 0x108c809c5 in HttpSM::state_read_server_response_header(int, void*) 
HttpSM.cc:1945
       #17 0x108c4539c in HttpSM::main_handler(int, void*) HttpSM.cc:2558
       #18 0x108af3b57 in Continuation::handleEvent(int, void*) 
I_Continuation.h:160
       #19 0x1093a05b8 in read_signal_and_update(int, UnixNetVConnection*) 
UnixNetVConnection.cc:83
       #20 0x10939e2dc in read_from_net(NetHandler*, UnixNetVConnection*, 
EThread*) UnixNetVConnection.cc:327
       #21 0x10939c6e4 in UnixNetVConnection::net_read_io(NetHandler*, 
EThread*) UnixNetVConnection.cc:916
       #22 0x10936e0e0 in NetHandler::process_ready_list() UnixNet.cc:399
       #23 0x109370469 in NetHandler::waitForActivity(long long) UnixNet.cc:532
       #24 0x10941895b in EThread::execute_regular() UnixEThread.cc:278
       #25 0x109419b74 in EThread::execute() UnixEThread.cc:331
       #26 0x1094142ef in spawn_thread_internal(void*) Thread.cc:85
       #27 0x7fff2036c94f in _pthread_start+0xdf 
(libsystem_pthread.dylib:x86_64+0x694f)
       #28 0x7fff2036847a in thread_start+0xe 
(libsystem_pthread.dylib:x86_64+0x247a)
   ```
   
   # Repro
   Origin: httpbin on port 8001
   
   ATS
   ```
   CONFIG proxy.config.http.negative_caching_enabled INT 1
   CONFIG proxy.config.http.number_of_redirections INT 1
   ```
   
   Client
   ```
   curl -vsk --http1.1 
"http://localhost:8080/httpbin/redirect-to?status_code=302&url=http%3A%2F%2Flocalhost%3A8001%2F";
 -o /dev/null
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to