You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/01/29 14:46:27 UTC

[GitHub] [trafficserver] shinrich commented on pull request #6241: Make Allocator.h less silly (no creepy "proto" object).

shinrich commented on pull request #6241:
URL: https://github.com/apache/trafficserver/pull/6241#issuecomment-769847408


   I applied this patch to our current production ATS9 build, and it core's on start up with the following stack.  Appears that something is not getting correctly initialized on reading in the cache.  The member variable od of type OpenDirEntry appears to be bogus value.  I'm setting up an ASAN build to hopefully get more details.
   
   ```
   (gdb) bt
   #0  0x00000000006cdaae in remove (this=0xf8f4bb5c, e=0x2b6f1d20d800) at ../../../../../../_vcs/trafficserver9/iocore/cache/CacheDir.cc:138
   #1  OpenDir::close_write (this=0x2b6cea1061e0, cont=cont@entry=0x2b6f1d20d800) at ../../../../../../_vcs/trafficserver9/iocore/cache/CacheDir.cc:138
   #2  0x00000000006ede4c in close_write (cont=0x2b6f1d20d800, this=<optimized out>) at ../../../../../../_vcs/trafficserver9/iocore/cache/P_CacheInternal.h:765
   #3  CacheVC::openWriteCloseDir(int, Event*) () at ../../../../../../_vcs/trafficserver9/iocore/cache/CacheWrite.cc:1112
   #4  0x00000000006f1e86 in Cache::open_write(Continuation*, ats::CryptoHash const*, HTTPInfo*, long, ats::CryptoHash const*, CacheFragType, char const*, int) ()
       at ../../../../../../_vcs/trafficserver9/iocore/cache/CacheWrite.cc:1831
   #5  0x00000000006bc925 in CacheProcessor::open_write (this=<optimized out>, cont=cont@entry=0x2b6ceed085c8, expected_size=expected_size@entry=0, key=key@entry=0x2b6ce440d610, 
       request=request@entry=0x2b6ceed06fb0, old_info=<optimized out>, pin_in_cache=0, type=CACHE_FRAG_TYPE_HTTP) at ../../../../../../_vcs/trafficserver9/iocore/cache/Cache.cc:3254
   #6  0x00000000005dd2a8 in HttpCacheSM::open_write (this=this@entry=0x2b6ceed085c8, key=key@entry=0x2b6ce440d610, url=url@entry=0x2b6ceed06938, request=request@entry=0x2b6ceed06fb0, 
       old_info=old_info@entry=0x2b6f1d206558, pin_in_cache=<optimized out>, retry=true, allow_multiple=false) at ../../../../../../_vcs/trafficserver9/proxy/http/HttpCacheSM.cc:362
   #7  0x0000000000564a23 in HttpSM::do_cache_prepare_action(HttpCacheSM*, HTTPInfo*, bool, bool) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:4722
   #8  0x0000000000582765 in do_cache_prepare_write (this=0x2b6ceed06800) at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:4652
   #9  HttpSM::set_next_state() () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:7596
   #10 0x00000000005756b1 in HttpSM::state_api_callout(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:1547
   #11 0x0000000000579c07 in HttpSM::state_api_callback(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:1351
   #12 0x000000000051361f in TSHttpTxnReenable () at ../../../../../_vcs/trafficserver9/src/traffic_server/InkAPI.cc:6164
   #13 0x00002b6cef802a5d in (anonymous namespace)::cb (contp=<optimized out>, event=<optimized out>, edata=0x2b6ceed06800) at _vcs/quick_filter-9/quick_filter/quick_filter.cc:637
   #14 0x00000000004fe1d0 in INKContInternal::handle_event(int, void*) () at ../../../../../_vcs/trafficserver9/src/traffic_server/InkAPI.cc:1096
   #15 0x0000000000510a9b in handleEvent (data=0x2b6ceed06800, event=60003, this=0x2b6cd6650a00)
       at /home/shinrich/build-walt/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:167
   #16 handleEvent (data=0x2b6ceed06800, event=60003, this=0x2b6cd6650a00)
       at /home/shinrich/build-walt/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:163
   #17 APIHook::invoke(int, void*) const () at ../../../../../_vcs/trafficserver9/src/traffic_server/InkAPI.cc:1333
   #18 0x00000000005754ac in HttpSM::state_api_callout(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:1475
   #19 0x0000000000582abb in HttpSM::set_next_state() () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:7355
   #20 0x000000000056ab42 in HttpSM::do_hostdb_lookup() () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:4175
   #21 0x0000000000582b5a in HttpSM::set_next_state() () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:7671
   #22 0x00000000005756b1 in HttpSM::state_api_callout(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:1547
   #23 0x0000000000579c07 in HttpSM::state_api_callback(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:1351
   #24 0x000000000051361f in TSHttpTxnReenable () at ../../../../../_vcs/trafficserver9/src/traffic_server/InkAPI.cc:6164
   #25 0x00002b6d07cda97e in main_handler (cont=<optimized out>, event=<optimized out>, edata=0x2b6ceed06800) at ../../../../../_vcs/trafficserver9/plugins/regex_revalidate/regex_revalidate.c:453
   #26 0x00000000004fe1d0 in INKContInternal::handle_event(int, void*) () at ../../../../../_vcs/trafficserver9/src/traffic_server/InkAPI.cc:1096
   #27 0x0000000000510a9b in handleEvent (data=0x2b6ceed06800, event=60015, this=0x2b6cda99b980)
       at /home/shinrich/build-walt/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:167
   #28 handleEvent (data=0x2b6ceed06800, event=60015, this=0x2b6cda99b980)
       at /home/shinrich/build-walt/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:163
   #29 APIHook::invoke(int, void*) const () at ../../../../../_vcs/trafficserver9/src/traffic_server/InkAPI.cc:1333
   #30 0x00000000005754ac in HttpSM::state_api_callout(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:1475
   #31 0x0000000000579c07 in HttpSM::state_api_callback(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:1351
   #32 0x000000000051361f in TSHttpTxnReenable () at ../../../../../_vcs/trafficserver9/src/traffic_server/InkAPI.cc:6164
   #33 0x00002b6cfab731cd in carpLookup(tsapi_cont*, TSEvent, void*) () at _vcs/carp-9/carp/carp.cc:767
   #34 0x00000000004fe1d0 in INKContInternal::handle_event(int, void*) () at ../../../../../_vcs/trafficserver9/src/traffic_server/InkAPI.cc:1096
   #35 0x0000000000510a9b in handleEvent (data=0x2b6ceed06800, event=60015, this=0x2b6cd6652120)
       at /home/shinrich/build-walt/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:167
   #36 handleEvent (data=0x2b6ceed06800, event=60015, this=0x2b6cd6652120)
   ---Type <return> to continue, or q <return> to quit---
       at /home/shinrich/build-walt/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:163
   #37 APIHook::invoke(int, void*) const () at ../../../../../_vcs/trafficserver9/src/traffic_server/InkAPI.cc:1333
   #38 0x00000000005754ac in HttpSM::state_api_callout(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:1475
   #39 0x0000000000582abb in HttpSM::set_next_state() () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:7355
   #40 0x00000000005756b1 in HttpSM::state_api_callout(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:1547
   #41 0x0000000000582abb in HttpSM::set_next_state() () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:7355
   #42 0x0000000000577bce in HttpSM::state_cache_open_read(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:2553
   #43 0x0000000000578a7b in HttpSM::main_handler(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpSM.cc:2615
   #44 0x00000000005dd031 in handleEvent (data=0x2b6f1d206400, event=1102, this=0x2b6ceed06800)
       at /home/shinrich/build-walt/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:167
   #45 handleEvent (data=0x2b6f1d206400, event=1102, this=0x2b6ceed06800)
       at /home/shinrich/build-walt/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:163
   #46 HttpCacheSM::state_cache_open_read(int, void*) () at ../../../../../../_vcs/trafficserver9/proxy/http/HttpCacheSM.cc:114
   #47 0x00000000006e7717 in handleEvent (data=0x2b6f1d206400, event=1102, this=0x2b6ceed085c8)
       at /home/shinrich/build-walt/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:167
   #48 handleEvent (data=0x2b6f1d206400, event=1102, this=0x2b6ceed085c8)
       at /home/shinrich/build-walt/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:163
   #49 CacheVC::callcont (this=this@entry=0x2b6f1d206400, event=event@entry=1102) at ../../../../../../_vcs/trafficserver9/iocore/cache/P_CacheInternal.h:639
   #50 0x00000000006e2f8e in CacheVC::openReadStartEarliest(int, Event*) () at ../../../../../../_vcs/trafficserver9/iocore/cache/CacheRead.cc:996
   #51 0x00000000006c41f4 in CacheVC::handleReadDone(int, Event*) () at ../../../../../../_vcs/trafficserver9/iocore/cache/Cache.cc:2301
   #52 0x00000000006c6b1e in AIOCallbackInternal::io_complete (this=0x2b6f1d206588, event=<optimized out>, data=<optimized out>)
       at /home/shinrich/build-walt/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/iocore/aio/P_AIO.h:121
   #53 0x00000000007cf2fb in handleEvent (data=0x2b6d25601360, event=1, this=0x2b6f1d206588) at ../../../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:167
   #54 handleEvent (data=0x2b6d25601360, event=1, this=0x2b6f1d206588) at ../../../../../../_vcs/trafficserver9/iocore/eventsystem/I_Continuation.h:163
   #55 EThread::process_event(Event*, int) () at ../../../../../../_vcs/trafficserver9/iocore/eventsystem/UnixEThread.cc:132
   #56 0x00000000007cf9ce in EThread::process_queue (this=this@entry=0x2b6cda63a740, NegativeQueue=NegativeQueue@entry=0x2b6ce440e600, ev_count=ev_count@entry=0x2b6ce440e5fc, 
       nq_count=nq_count@entry=0x2b6ce440e5f8) at ../../../../../../_vcs/trafficserver9/iocore/eventsystem/UnixEThread.cc:167
   #57 0x00000000007cfe34 in EThread::execute_regular (this=this@entry=0x2b6cda63a740) at ../../../../../../_vcs/trafficserver9/iocore/eventsystem/UnixEThread.cc:227
   #58 0x00000000007d04c6 in execute (this=0x2b6cda63a740) at ../../../../../../_vcs/trafficserver9/iocore/eventsystem/UnixEThread.cc:332
   #59 EThread::execute (this=0x2b6cda63a740) at ../../../../../../_vcs/trafficserver9/iocore/eventsystem/UnixEThread.cc:310
   #60 0x00000000007ce8a9 in spawn_thread_internal (a=0x2b6cd2adf840) at ../../../../../../_vcs/trafficserver9/iocore/eventsystem/Thread.cc:92
   #61 0x00002b6cd0df8ea5 in start_thread (arg=0x2b6ce4410700) at pthread_create.c:307
   #62 0x00002b6cd1b2e8dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
   (gdb) 
   ```


----------------------------------------------------------------
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:
users@infra.apache.org