首页 > 分享 > a�Za??traffic_cope�?a??cs�a?�c�?a?�?�?a��a?�GDBe�?e?�

a�Za??traffic_cope�?a??cs�a?�c�?a?�?�?a��a?�GDBe�?e?�

2013年7月15日     浏览数:261 发表评论 阅读评论

a�Za??traffic_cope�?a??cs�a?�c�?a?�?�?a��a?�GDBe�?e?�

a?�a��a?�a�?a�?e�?c??e??a?�a?�i????�?��a��e�????a?�cs�e��e??a�?c�?a??3a��a�?e?�a?�a�?i??a??ts-1151i??a��?��a?�a?�a?�a�?cs�c�???�e???????�e??a�scs�i??a?�?��c��a�?cs�c??a�sc�?3.2.4i????�?��a?Ya��a�Z3.2.4???e????Ze?�a??e��e??i??a��a??e��e??a�?c�?a?�a�?i???��a�?a??e?�e�?a��a??e??a�?c�?a?�cs�a��a�?a?�i??a?�e�?e�?e�?e��e??cs�a?�cZ�e?�c?�a��a��?�Z?��a??c�?GDBe�?e?�

e��a�?e????Za?�e???�?i??a??aS?atsa?�a?Za?sc?�a?�a?�a??e?�c?�i??a?�a?�???traffic_copi??traffic_managera�?traffic_servera��a�Sa��a?�e�?e�?e�?cs�a��???traffic_copi??traffic_copcs�a��a�?a??a�si??a?�e�?e��c?�c��?Z�a?�e�?a??cs�a??c�?i??a?????a�?c�?e�?e?????c��c��cs�a?�e??a?�i??a?�c��a??copc��a?�a?�e??a��

    ??�a��e??cY?e?�traffic_servere?�c?�??�e��???traffic_managere?�c?�?��?Z�a?Za?se�??��a??aS?i??c��c��???aS?i??a?�???a��?z?traffic_cope?�c?�?��?Z�a?�a?Za�?i??e�?e??a???�?a??atscs�a�?a?????e??????????�a?�a�?cs�i??a?�???a��?z?a�?e??a?�a??e?�c?�a�??�??��?Z�a?�a?Za��?????�aSz??�a�??�?e�?a??a?�i??a��?��a?�a�?a�?c?�a?�e�?e�?e?�e?�a??e��e??i??e?????a?�a�?a?�a??crontabi??e?�a?Y???a?�a????�e??c�??Z?c��a?�cs�aSz??�a?�a?�a��a?�???a?�cZ�??�?Z�traffic_copaZ�e�?a??cs�?��a��a?sa?�c�Ycore dumpi?????aSz??�e�?a??e��???i??a��a?�i?s
    cop1
    a?Z???a??a?�a?�?z?e��e??a��e?�a?�?z?a?�core dump?��a��i??redhati??centose�?e��a??a?�c�Ycore dumpi??e�?c?�?�???�googlei??a?�a??e??a??a�?i??a??e?�c?�i?�i??cZ�a??a?�a?�atscs�a?�c��a?�a��a??a�?c?�a?�core?��a��a?�cop2
    a??c�?gdba�?a��e?�e??core dump?��a��cs�e�??z?i??e?�e�?a??a�?a??c�?a?�c�?a�?a��?�?a???��a?�core dump?��a��i?s
  • 1a�?gdb exec_file core_file

  • 2a�?gdb a��c core_file exec_file

  • 3
    ?��a?�a?�a?Z??�a��a��a??a�?c?�a?�?�?e�?e??cs�a��a�?a?�i??a?�e??a??a�?a??c�?bti??wherei??upi??downc��a�?a��???a?�?z?core?��a��
    cop5
    a?Se??cs�bta�?a��cs�a??c�?????Y?c?�a�??��a��?�?i??a??wherei?�upa�?downa??a�?e?�e??a?Sa?�e??cs�e?�???i??e????�a��a��cs�gdba�?a��a��a��a??a�?e�?a��aZ�a��a?�a��
    e�se?�?�?cs�a?????a??a�?c?�a?�a??TrafficCop.cccs�1207e??i??c��a?Zgcci??g++a??c?�e?�cs�?��a��??�a??a?�i??c�?aZ�a?�a?�a?�c�?e??i?????e�Sc��i???��a�?e???��a??e??a??a??a?�i?�cs�test_mgmt_cli_port()e?�a?Ze�?c�?cs�a��???c?�c�Ya?�a�??��free()i??c��a?Ze�?c�?cs�a��???a??a?�a��c?�a�??��a?�i???��a�?a�Ztest_mgmt_cli_port()a�??��a�??��i???Y?e??TrafficCop.cccs�e??a�??��a??a�?c?�a?�i?s

    1191 static int
    1192 test_mgmt_cli_port()
    1193 {
    1194   TSString val;
    1195   int ret = 0;
    1196   if (TSRecordGetString("proxy.config.manager_binary", &val) !=  TS_ERR_OKAY) {
    1197     cop_log(COP_WARNING, "(cli test) unable to retrieve manager_binary\n");
    1198     ret = -1;
    1199   } else {
    1200     if (strcmp(val, manager_binary) != 0) {
    1201       cop_log(COP_WARNING, "(cli test) bad response value, got %s, expected %s\n", val, manager_binary);
    1202       ret = -1;
    1203     } 
    1204   } 
    1205   if (val){
    1206     TSfree(val);
    1207 }   
    1208   return ret;
    1209 }
    

    a�??Y?a�?e��e??cs�free()i??a??a�?c?�a?�e?�e�???�a??TSfree(val)i????????a?�e?????e�?a��a?�free()a�??��i??a??a�?c�?a�?c�??Y?c?�a�?a��aZ�c?�c?�i??c?�a�z???cs�i??e?�?��a�?e��e??a��e??c??a??a��?��a?�i??free()a�?e��e??i??a?�e?�???free()a?�a??e??free() cs�a??e??i??c��a?Zc?�freecs�???vali??c��a?Za?�a?Sa?�?�?valcs�c�?a�?a?????a��
    a�Za�sa?�cs�?��a��e??e��i??e?�e�?e��a�????a�sa?�a?�a?�a??c�?a??i??a?�???????�?a??e?�e�?a?????a�sa?�a?�a?�a??c�?a??i??a?�?????�a?�e�?a��a�?c�?e�?i???��a�?e?�a��a?s??�a?�a??es??�?i??a?�c��a?�a��?z?a��c?�cs�a??a?Y????????�a�?c?�cs�i????�a��c��c��a?�a?�c?�i??c?�c?�c��c��a?sa?�a��a??i??e��a�????TSRecordGetString()a?�a?�manager_binarye?�a??a?�?��cs�a�?i??c��a?Za??e?�e�????a??a�?a??vale?�e??a��a�?c�?e�?a?�e�?cs�i??a?�???a?�a��e?�e�??????�a??vala?�e�?cs�e??i??e�?a?Ze??cs�Free()a��a?s??�e��e??i??a??e?�e�?a��a??e?�c��aZ�e??c��a?Ze??cs�a�?c�?a?�i??a??a�?c��c��e??a?�cs�i??a?sa?�cZ�a?Ze??cs�a?�e�?a��a�?cs�e?�a??a??a?�a�sa?se?�?��e??i??e��e??a��a�sa??a?�a��a?�c��a?�i??e�?a�?e��e??cs�aSz??�??�c��a?�a��???a?�a��cs�?��a��a��e��Val = NULLi??e?�?��a�?a��a??a?sa�?cZ�a?Se??cs�e��e??a?�a��

分类: 分享 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.