You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "xiangdong chen (JIRA)" <ji...@apache.org> on 2016/08/12 03:14:20 UTC

[jira] [Created] (TS-4743) parent use consitent_hash Strategy may cause crash while first parent is not set

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)