[ 
https://issues.apache.org/jira/browse/TS-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245280#comment-13245280
 ] 

Zhao Yongming commented on TS-1178:
-----------------------------------

here is why the strcmp() fail, in test_rs_port():

{code}
(gdb) b TrafficCop.cc:1172
Breakpoint 1 at 0x404ea0: file TrafficCop.cc, line 1172.
(gdb) c
Continuing.

Breakpoint 1, test_rs_port () at TrafficCop.cc:1176
1176      if (strcmp(buffer, manager_binary) != 0) {
(gdb) p buffer
$1 = 
"traffic_manager'\n\n\000\000\000\000\000\000\v\000\000\000\000\000\000\000\210\377\377\377\377\377\377\377\060\236b\000\000\000\000\000\240\236֠P\177\000\000\020
 \000\000\000\000\000\000\020 
\000\000\000\000\000\000@\276b\000\000\000\000\000\020 
\000\000\000\000\000\000Cѥ\240P\177\000\000\360\363\375\363\377\177\000\000vP\177\000\000\240\236֠P\177\000\000@\236b\000\000\000\000\000F\000\000\000\000\000\000\000\060\236b\000\000\000\000\000P\000\000\000\000\000\000\000\271襠P\177\000\000\000
 
\000\000\000\000\000\000\340\233b\000\000\000\000\000\220\364\375\363\377\177\000\000\240\236֠P\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\v\000\000\000\000\000\000\000\240\236֠P\177\000\000\024\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\v\000\000\000\000\000\000\000\210"...
(gdb) p manager_binary
$2 = "traffic_manager", '\000' <repeats 4080 times>
(gdb) 
{code}
                
> cop will kill manager & server, even cop it self
> ------------------------------------------------
>
>                 Key: TS-1178
>                 URL: https://issues.apache.org/jira/browse/TS-1178
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Management
>    Affects Versions: 3.1.4
>         Environment: git master on RHEL6.1 x86_64
>            Reporter: Zhao Yongming
>            Assignee: Zhao Yongming
>             Fix For: 3.1.4
>
>
> {code}
> [root@test58 trafficserver]# cat /tmp/traffic_cop.trace 
> <1333239680.0000> [DEBUG]: Entering init()
> <1333239680.0000> [DEBUG]: Entering init_signals()
> <1333239680.0000> [DEBUG]: Entering set_alarm_death()
> <1333239680.0000> [DEBUG]: Leaving set_alarm_death()
> <1333239680.0000> [DEBUG]: Leaving init_signals()
> <1333239680.0000> [DEBUG]: Entering init_config_dir()
> <1333239680.0000> [DEBUG]: Leaving init_config_dir()
> <1333239680.0000> [DEBUG]: Entering init_config_file()
> <1333239680.0000> [DEBUG]: Leaving init_config_file()
> <1333239680.0000> [DEBUG]: Entering init_lockfiles()
> <1333239680.0000> [DEBUG]: Leaving init_lockfiles()
> <1333239680.0000> [DEBUG]: Entering check_lockfile()
> <1333239680.0000> [unknown]: --- Cop Starting [Version: Apache Traffic Server 
> - traffic_cop - 3.1.4-unstable - (build # 310 on Apr  1 2012 at 00:34:30)] ---
> <1333239680.0000> [DEBUG]: Leaving check_lockfile()
> <1333239680.0000> [DEBUG]: Leaving init()
> <1333239680.0000> [DEBUG]: Entering check()
> <1333239680.0000> [DEBUG]: Entering check_no_run()
> <1333239680.0000> [DEBUG]: Entering transient_error(2, 500)
> <1333239680.0000> [DEBUG]: Leaving transient_error(2, 500) --> false
> <1333239680.0000> [DEBUG]: Leaving check_no_run() --> 0
> <1333239680.0000> [DEBUG]: Entering read_config()
> <1333239680.0000> [DEBUG]: Entering build_config_table(33932704)
> <1333239680.0000> [DEBUG]: Leaving build_config_table(33932704)
> <1333239680.0000> [DEBUG]: Entering process_syslog_config()
> <1333239680.0000> [DEBUG]: Leaving process_syslog_config()
> <1333239680.0000> [DEBUG]: Leaving read_config()
> <1333239680.0000> [DEBUG]: Entering check_programs()
> <1333239680.0000> [DEBUG]: Entering heartbeat_manager()
> <1333239680.0000> [WARNING]: (cli test) unable to retrieve manager_binary
> <1333239680.0000> [WARNING]: manager heartbeat [variable] failed [1]
> <1333239680.0000> [DEBUG]: Leaving heartbeat_manager() --> -1
> <1333239680.0000> [DEBUG]: Entering check_memory()
> <1333239680.0000> [DEBUG]: Leaving check_memory()
> <1333239680.0000> [DEBUG]: Entering millisleep(10000)
> <1333239680.0000> [DEBUG]: Leaving millisleep(10000)
> <1333239680.0000> [DEBUG]: Entering check_no_run()
> <1333239680.0000> [DEBUG]: Entering transient_error(2, 500)
> <1333239680.0000> [DEBUG]: Leaving transient_error(2, 500) --> false
> <1333239680.0000> [DEBUG]: Leaving check_no_run() --> 0
> <1333239680.0000> [DEBUG]: Entering read_config()
> <1333239680.0000> [DEBUG]: Entering check_programs()
> <1333239680.0000> [DEBUG]: Entering heartbeat_manager()
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [DEBUG]: Entering open_socket(8088, (null), (null))
> <1333239680.0000> [DEBUG]: Entering transient_error(115, 500)
> <1333239680.0000> [DEBUG]: Leaving transient_error(115, 500) --> false
> <1333239680.0000> [DEBUG]: Leaving open_socket(8088, 127.0.0.1, (null)) --> 8
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [WARNING]: (manager test) bad response value
> <1333239680.0000> [WARNING]: manager heartbeat [variable] failed [2]
> <1333239680.0000> [WARNING]: killing manager
> <1333239680.0000> [DEBUG]: Entering 
> safe_kill(/var/run/trafficserver/manager.lock, traffic_manager, 1)
> <1333239680.0000> [DEBUG]: Entering set_alarm_warn()
> <1333239680.0000> [DEBUG]: Leaving set_alarm_warn()
> <1333239680.0000> [DEBUG]: Entering set_alarm_death()
> <1333239680.0000> [DEBUG]: Leaving set_alarm_death()
> <1333239680.0000> [DEBUG]: Leaving 
> safe_kill(/var/run/trafficserver/manager.lock, traffic_manager, 1)
> <1333239680.0000> [DEBUG]: Leaving heartbeat_manager() --> -1
> <1333239680.0000> [DEBUG]: Entering check_memory()
> <1333239680.0000> [DEBUG]: Leaving check_memory()
> <1333239680.0000> [DEBUG]: Entering millisleep(10000)
> <1333239680.0000> [DEBUG]: Leaving millisleep(10000)
> <1333239680.0000> [DEBUG]: Entering check_no_run()
> <1333239680.0000> [DEBUG]: Entering transient_error(2, 500)
> <1333239680.0000> [DEBUG]: Leaving transient_error(2, 500) --> false
> <1333239680.0000> [DEBUG]: Leaving check_no_run() --> 0
> <1333239680.0000> [DEBUG]: Entering read_config()
> <1333239680.0000> [DEBUG]: Entering check_programs()
> <1333239680.0000> [WARNING]: traffic_manager not running, making sure 
> traffic_server is dead
> <1333239680.0000> [DEBUG]: Entering 
> safe_kill(/var/run/trafficserver/server.lock, traffic_server, 0)
> <1333239680.0000> [DEBUG]: Entering set_alarm_warn()
> <1333239680.0000> [DEBUG]: Leaving set_alarm_warn()
> <1333239680.0000> [DEBUG]: Entering set_alarm_death()
> <1333239680.0000> [DEBUG]: Leaving set_alarm_death()
> <1333239680.0000> [DEBUG]: Leaving 
> safe_kill(/var/run/trafficserver/server.lock, traffic_server, 0)
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [WARNING]: spawning traffic_manager
> <1333239680.0000> [DEBUG]: Entering spawn_manager()
> <1333239680.0000> [DEBUG]: spawn_manager: Launching /usr/bin/traffic_manager 
> with options ''
> <1333239680.0000> [DEBUG]: Leaving spawn_manager()
> <1333239680.0000> [DEBUG]: Leaving check_programs()
> <1333239680.0000> [DEBUG]: Entering check_memory()
> <1333239680.0000> [DEBUG]: Leaving check_memory()
> <1333239680.0000> [DEBUG]: Entering millisleep(10000)
> <1333239680.0000> [DEBUG]: Leaving millisleep(10000)
> <1333239680.0000> [DEBUG]: Entering check_no_run()
> <1333239680.0000> [DEBUG]: Entering transient_error(2, 500)
> <1333239680.0000> [DEBUG]: Leaving transient_error(2, 500) --> false
> <1333239680.0000> [DEBUG]: Leaving check_no_run() --> 0
> <1333239680.0000> [DEBUG]: Entering read_config()
> <1333239680.0000> [DEBUG]: Entering check_programs()
> <1333239680.0000> [DEBUG]: Entering heartbeat_manager()
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [DEBUG]: Entering open_socket(8088, (null), (null))
> <1333239680.0000> [DEBUG]: Entering transient_error(115, 500)
> <1333239680.0000> [DEBUG]: Leaving transient_error(115, 500) --> false
> <1333239680.0000> [DEBUG]: Leaving open_socket(8088, 127.0.0.1, (null)) --> 8
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [WARNING]: (manager test) bad response value
> <1333239680.0000> [WARNING]: manager heartbeat [variable] failed [1]
> <1333239680.0000> [DEBUG]: Leaving heartbeat_manager() --> -1
> <1333239680.0000> [DEBUG]: Entering check_memory()
> <1333239680.0000> [DEBUG]: Leaving check_memory()
> <1333239680.0000> [DEBUG]: Entering millisleep(10000)
> <1333239680.0000> [DEBUG]: Leaving millisleep(10000)
> <1333239680.0000> [DEBUG]: Entering check_no_run()
> <1333239680.0000> [DEBUG]: Entering transient_error(2, 500)
> <1333239680.0000> [DEBUG]: Leaving transient_error(2, 500) --> false
> <1333239680.0000> [DEBUG]: Leaving check_no_run() --> 0
> <1333239680.0000> [DEBUG]: Entering read_config()
> <1333239680.0000> [DEBUG]: Entering build_config_table(33974976)
> <1333239680.0000> [DEBUG]: Leaving build_config_table(33974976)
> <1333239680.0000> [DEBUG]: Entering process_syslog_config()
> <1333239680.0000> [DEBUG]: Leaving process_syslog_config()
> <1333239680.0000> [DEBUG]: Leaving read_config()
> <1333239680.0000> [DEBUG]: Entering check_programs()
> <1333239680.0000> [DEBUG]: Entering heartbeat_manager()
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [DEBUG]: Entering open_socket(8088, (null), (null))
> <1333239680.0000> [DEBUG]: Entering transient_error(115, 500)
> <1333239680.0000> [DEBUG]: Leaving transient_error(115, 500) --> false
> <1333239680.0000> [DEBUG]: Leaving open_socket(8088, 127.0.0.1, (null)) --> 8
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [DEBUG]: Entering milliseconds()
> <1333239680.0000> [DEBUG]: Leaving milliseconds()
> <1333239680.0000> [WARNING]: (manager test) bad response value
> <1333239680.0000> [WARNING]: manager heartbeat [variable] failed [2]
> <1333239680.0000> [WARNING]: killing manager
> <1333239680.0000> [DEBUG]: Entering 
> safe_kill(/var/run/trafficserver/manager.lock, traffic_manager, 1)
> <1333239680.0000> [DEBUG]: Entering set_alarm_warn()
> <1333239680.0000> [DEBUG]: Leaving set_alarm_warn()
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to