Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-1563

thread-pool plugin example crash the server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.0
    • 7.2.0
    • Plugins
    • Ubuntu 12.04 /i686, traffic server configured as forward proxy

    Description

      I tried to build example/thread-pool (PSI plugin) but server craches with core dump

      env http_proxy=http://127.0.0.1:1080 curl -v http://openbsd.org

      • About to connect() to proxy 127.0.0.1 port 1080 (#0)
      • Trying 127.0.0.1... connected
        > GET http://openbsd.org HTTP/1.1
        > User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
        > Host: openbsd.org
        > Accept: /
        > Proxy-Connection: Keep-Alive
        >
      • Empty reply from server
      • Connection #0 to host 127.0.0.1 left intact
        curl: (52) Empty reply from server
      • Closing connection #0

      ~# /usr/local/bin/traffic_server -p 1080 -T"xpsi"
      [TrafficServer] using root directory '/usr/local'
      [Nov 7 15:03:08.192]

      {0xb702f700} STATUS: opened /usr/local/var/log/trafficserver/diags.log
      [Nov 7 15:03:08.192] {0xb702f700}

      NOTE: updated diags config
      [Nov 7 15:03:08.195] Server

      {0xb702f700} NOTE: cache clustering disabled
      [Nov 7 15:03:08.206] Server {0xb702f700}

      NOTE: cache clustering disabled
      [Nov 7 15:03:08.214] Server

      {0xb702f700} NOTE: logging initialized[11], logging_mode = 3
      [Nov 7 15:03:08.218] Server {0xb702f700}

      NOTE: loading plugin '/usr/local/libexec/trafficserver/psi.so'
      [Nov 7 15:03:08.219] Server

      {0xb702f700} DIAG: (xpsi) Plugin started
      [Nov 7 15:03:08.222] Server {0xb702f700}

      NOTE: traffic server running
      [Nov 7 15:03:08.250] Server

      {0xb5ed9b40}

      NOTE: cache enabled
      FATAL: InkAPI.cc:3144: failed assert `sdk_sanity_check_null_ptr((void*) value_len_ptr) == TS_SUCCESS`
      /usr/local/bin/traffic_server - STACK TRACE:
      /usr/local/lib/libtsutil.so.3(ink_fatal+0x2c)[0xb76ebb2c]
      /usr/local/lib/libtsutil.so.3(_ink_assert+0x3e)[0xb76ea93e]
      /usr/local/bin/traffic_server(TSMimeHdrFieldValueStringGet+0x11c)[0x80e1e0c]
      /usr/local/libexec/trafficserver/psi.so(+0x1d52)[0xb1f96d52]
      /usr/local/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0xdf)[0x817669f]
      /usr/local/bin/traffic_server(_ZN6HttpSM23do_api_callout_internalEv+0x54)[0x8176d54]
      /usr/local/bin/traffic_server(_ZN6HttpSM33state_read_server_response_headerEiPv+0x3d0)[0x8178930]
      /usr/local/bin/traffic_server(_ZN6HttpSM12main_handlerEiPv+0x14c)[0x8177ecc]
      /usr/local/bin/traffic_server[0x82d73c3]
      /usr/local/bin/traffic_server(_ZN10NetHandler12mainNetEventEiP5Event+0x1e3)[0x82d04b3]
      /usr/local/bin/traffic_server(_ZN7EThread13process_eventEP5Eventi+0x8f)[0x830180f]
      /usr/local/bin/traffic_server(_ZN7EThread7executeEv+0x5e1)[0x83022c1]
      /usr/local/bin/traffic_server[0x83003a3]
      /lib/i386-linux-gnu/libpthread.so.0(+0x6d4c)[0xb76c7d4c]
      /lib/i386-linux-gnu/libc.so.6(clone+0x5e)[0xb711fd3e]
      Aborted (core dumped)

      Attachments

        Activity

          People

            Unassigned Unassigned
            igor_kh Igor Khomyakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: