meeramn opened a new issue #8329:
URL: https://github.com/apache/trafficserver/issues/8329


   Strategies yaml config got loaded but seeing crash after sending curl 
request. 
   
   Please find the configuration below.
   
   **cat remap.config**
   map /nexthop-test/ http://httpbin.org/ @strategy=nexthop-test-strategy
   
   
   **cat strategies.yaml**
   hosts:
     - &nexthop-test-host
       host: test-host.xyz.com
       protocol:
         - scheme: http
           port: 80
         - scheme: https
           port: 443
   
   groups:
     - &nexthop-test-group
       - <<: *nexthop-test-host
         weight: 1.5
   
   strategies:
     - strategy: 'nexthop-test-strategy'
       policy: consistent_hash
       hash_key: path
       go_direct: false
       groups:
         - *nexthop-test-group
       scheme: http
       failover:
         ring_mode: alternate_ring
         response_codes:
           - 404
         markdown_codes:
           - 503
         health_check:
           - passive
   
   
   **Curl** 
   curl -vvv -o /dev/null http://localhost/nexthop-test/get
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     
0* About to connect() to localhost port 80 (#0)
   *   Trying ::1...
   * Connected to localhost (::1) port 80 (#0)
   > GET /nexthop-test/get HTTP/1.1
   > User-Agent: curl/7.29.0
   > Host: localhost
   > Accept: */*
   >
     0     0    0     0    0     0      0      0 --:--:--  0:00:34 --:--:--     
0* Empty reply from server
     0     0    0     0    0     0      0      0 --:--:--  0:00:34 --:--:--     0
   * Connection #0 to host localhost left intact
   curl: (52) Empty reply from server
   
   **Stack trace**
   
   traffic_server: received signal 11 (Segmentation fault)
   traffic_server - STACK TRACE:
   
/opt/bazinga/bin/traffic_server(_Z19crash_logger_invokeiP9siginfo_tPv+0x94)[0x55edd0cc3524]
   /lib64/libpthread.so.0(+0xf630)[0x7f8c4352f630]
   
/opt/bazinga/lib/trafficserver/libtscore.so.9(_ZN17ATSConsistentHash6lookupEPKcPNSt3__114__map_iteratorINS2_15__tree_iteratorINS2_12__value_typeImP21ATSConsistentHashNodeEEPNS2_11__tree_nodeIS8_PvEElEEEEPbP9ATSHash64+0xf3)[0x7f8c44a177d3]
   
/opt/bazinga/bin/traffic_server(_ZN21NextHopConsistentHash11findNextHopEP13tsapi_httptxnPvl+0x87f)[0x55edd0dc7e3f]
   /opt/bazinga/bin/traffic_server(+0x254617)[0x55edd0d93617]
   /opt/bazinga/bin/traffic_server(+0x2387be)[0x55edd0d777be]
   
/opt/bazinga/bin/traffic_server(_ZN12HttpTransact27handle_response_from_parentEPNS_5StateE+0xbaa)[0x55edd0d85f0a]
   
/opt/bazinga/bin/traffic_server(_ZN12HttpTransact14HandleResponseEPNS_5StateE+0x4a5)[0x55edd0d7adc5]
   
/opt/bazinga/bin/traffic_server(_ZN6HttpSM25handle_server_setup_errorEiPv+0x3a1)[0x55edd0d52491]
   
/opt/bazinga/bin/traffic_server(_ZN6HttpSM33state_read_server_response_headerEiPv+0x540)[0x55edd0d51e90]
   
/opt/bazinga/bin/traffic_server(_ZN6HttpSM12main_handlerEiPv+0x1ac)[0x55edd0d4099c]
   /opt/bazinga/bin/traffic_server(+0x409883)[0x55edd0f48883]
   
/opt/bazinga/bin/traffic_server(_ZN18UnixNetVConnection11net_read_ioEP10NetHandlerP7EThread+0xa94)[0x55edd0f47574]
   
/opt/bazinga/bin/traffic_server(_ZN10NetHandler18process_ready_listEv+0xa3)[0x55edd0f38793]
   
/opt/bazinga/bin/traffic_server(_ZN10NetHandler15waitForActivityEl+0x54e)[0x55edd0f38e6e]
   
/opt/bazinga/bin/traffic_server(_ZThn64_N10NetHandler15waitForActivityEl+0xd)[0x55edd0f38f3d]
   
/opt/bazinga/bin/traffic_server(_ZN7EThread15execute_regularEv+0x55f)[0x55edd0f68dff]
   /opt/bazinga/bin/traffic_server(_ZN7EThread7executeEv+0x179)[0x55edd0f69079]
   /opt/bazinga/bin/traffic_server(+0x428556)[0x55edd0f67556]
   /lib64/libpthread.so.0(+0x7ea5)[0x7f8c43527ea5]
   /lib64/libc.so.6(clone+0x6d)[0x7f8c42d288dd]
   Segmentation fault
   
   [Complete 
Logs](https://gist.github.com/meeramn/ab4add102e2900df9e81c7344168c332)
   
   [GDB](https://gist.github.com/meeramn/9f5f3dcf02dcbecdda3f5dedd195c447)


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

To unsubscribe, e-mail: issues-unsubscr...@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to