xiangdong chen created TS-4743:
----------------------------------

             Summary: parent use consitent_hash Strategy may cause crash while 
first parent is not set 
                 Key: TS-4743
                 URL: https://issues.apache.org/jira/browse/TS-4743
             Project: Traffic Server
          Issue Type: Bug
            Reporter: xiangdong chen


my parent.config
eg :
dest_domain=.  secondary_parent="192.168.104.229:80|1.0; 
192.168.104.182:80|1.0"  round_robin=consistent_hash
the crash place is :
DEBUG: <ParentConsistentHash.cc:167 (selectParent)> (parent_select) 
wrap_around[PRIMARY]: 1, wrap_around[SECONDARY]: 0
traffic_server: Segmentation fault (Address not mapped to object [0x10])

ParentConsistentHash.cc:167 code:
Debug("parent_select", "Selected parent %s is not available, looking up another 
parent.", pRec->hostname);

Fix the code like
Debug("parent_select", "Selected parent %s is not available, looking up another 
parent.", pRec ? pRec->hostname:"[NULL]");



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to