Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-1808

Varnish agent crash in VRTPRIV_dynamic_kill



    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.0-38, 4.2.0
    • 4.2.2
    • Web Agents
    • Varnish agent


      Agent installed in CDSSO mode, under the load, randomly crashes with the following stack trace:

      Thread 1 (Thread 0x2b9f18020700 (LWP 4771)):
      #0 0x0000003bb16328a5 in raise () from /lib64/libc.so.6
      #1 0x0000003bb1634085 in abort () from /lib64/libc.so.6
      #2 0x0000000000434b55 in pan_ic (func=0x47b9a0 "child_signal_handler", file=0x47b299 "mgt/mgt_child.c", line=<value optimized out>, cond=<value optimized out>, kind=<value optimized out>) at cache/cache_panic.c:556
      #3 0x0000000000455a4e in child_signal_handler (s=6, si=<value optimized out>, c=<value optimized out>) at mgt/mgt_child.c:294
      #4 <signal handler called>
      #5 0x0000003bb16328a5 in raise () from /lib64/libc.so.6
      #6 0x0000003bb1634085 in abort () from /lib64/libc.so.6
      #7 0x0000003bb166ffe7 in __libc_message () from /lib64/libc.so.6
      #8 0x0000003bb1675916 in malloc_printerr () from /lib64/libc.so.6
      #9 0x00002b9f09e1f0bd in am_config_free (cp=<value optimized out>) at source/config_file.c:634
      #10 0x00002b9f09e907c9 in priv_req_cleanup (priv=0x2b9f60002660) at source/varnish/agent.c:594
      #11 0x0000000000445412 in VRTPRIV_dynamic_kill (privs=0x2b9f5c00a368, id=47963581518344) at cache/cache_vrt_priv.c:103
      #12 0x0000000000435e9a in Req_Cleanup (sp=<value optimized out>, wrk=0x2b9f1801fc10, req=<value optimized out>) at cache/cache_req.c:167
      #13 0x000000000045176e in HTTP1_Session (wrk=0x2b9f1801fc10, req=0x2b9f643d11f0) at http1/cache_http1_fsm.c:274
      #14 0x000000000043c4bd in SES_Proto_Req (wrk=0x2b9f1801fc10, arg=0x2b9f643d11f0) at cache/cache_session.c:325
      #15 0x000000000044c67d in Pool_Work_Thread (qp=0x2b9ee4001670, stacksize=<value optimized out>, thread_workspace=<value optimized out>) at cache/cache_wrk.c:372
      #16 WRK_Thread (qp=0x2b9ee4001670, stacksize=<value optimized out>, thread_workspace=<value optimized out>) at cache/cache_wrk.c:122
      #17 0x000000000044cb00 in pool_thread (priv=0x2b9ef0017c90) at cache/cache_wrk.c:403
      #18 0x0000003bb1a07851 in start_thread () from /lib64/libpthread.so.0
      #19 0x0000003bb16e811d in clone () from /lib64/libc.so.6


      Reproduction steps (a):

      1) create Varnish configuration (and add approproate pages to the backend server) according to this guide: https://varnish-cache.org/docs/4.1/users-guide/esi.html

      2) request protected page (with "<esi:include>" element in it)

      3) observe Varnish server crash



      Reproduction steps (b):

      1) login to protected page

      2) stop AM server

      3) remove ipdp cookie from the browser

      4) start AM server

      5) open protected page again, you should be redirected to AM for login

      6) agent will crash on return after authentication. Agent log will contain invalid-agent-session warning and repeated profile fetch and config cache update messages.




            mareks Mareks Malnacs
            mareks Mareks Malnacs
            0 Vote for this issue
            4 Start watching this issue