fsword/apposs-agent — Issue #11: 在ssh未打通的情况下，链接机器会报错
Author: sdjcw
Created: 2011-12-09 03:23:18+00:00
State: open

ssh未打通情况下，链接并发送指令会报错：

星期五 09 12月 2011

=CRASH REPORT==== 9-Dec-2011::10:59:50 ===
crasher:
initial call: ssh_connection_handler:init/1
pid: <0.783.0>
registered_name: []
exception exit: {bad_return_value,{no_io_allowed,read_password}}
in function gen_fsm:terminate/7
ancestors: [<0.781.0>,sshc_sup,ssh_sup,<0.749.0>]
messages: []
links: [#Port<0.2894>]
dictionary: [{{msg_code,ssh_msg_disconnect},{1,[uint32,string,string]}},
{{msg_code,ssh_msg_userauth_request},
{50,[string,string,string,'...']}},
{{msg_name,6},{ssh_msg_service_accept,[string]}},
{{msg_code,ssh_msg_kexdh_init},{30,[mpint]}},
{{msg_name,21},{ssh_msg_newkeys,[]}},
{{msg_code,ssh_msg_userauth_pk_ok},{60,[string,binary]}},
{{msg_name,31},{ssh_msg_kexdh_reply,[binary,mpint,binary]}},
{{msg_name,52},{ssh_msg_userauth_success,[]}},
{{msg_name,50},
{ssh_msg_userauth_request,[string,string,string,'...']}},
{{msg_name,20},
{ssh_msg_kexinit,[cookie,name_list,name_list,name_list,
name_list,name_list,name_list,name_list,
name_list,name_list,name_list,boolean,
uint32]}},
{{msg_code,ssh_msg_userauth_passwd_changereq},
{60,[string,string]}},
{{msg_name,5},{ssh_msg_service_request,[string]}},
...
{{msg_code,ssh_msg_kexinit},
{20,
[cookie,name_list,name_list,name_list,name_list,name_list,
name_list,name_list,name_list,name_list,name_list,
boolean,uint32]}},
{{msg_name,4},{ssh_msg_debug,[boolean,string,string]}},
{{msg_code,ssh_msg_userauth_banner},{53,[string,string]}},
{{msg_code,ssh_msg_ignore},{2,[string]}}]
trap_exit: false
status: running
heap_size: 4181
stack_size: 24
reductions: 16689
neighbours:

=CRASH REPORT==== 9-Dec-2011::10:59:50 ===
crasher:
initial call: client:init/1
pid: <0.780.0>
registered_name: '127.0.0.1@client'
exception exit: {{badmatch,{error,[69,114,108,97,110,103,32,115,115,104,
32,99,111,110,110,101,99,116,105,111,
110,32,104,97,110,100,108,101,114,32,
102,97,105,108,101,100,32,119,105,116,
104,32,114,101,97,115,111,110,58,32,
[123,
["bad_return_value",44,10,
[32,
[32,
[[" ",32,32,32]," ",32,32,32],
[" ",32,32,32],
" ",32,32,32],
32,
[[" ",32,32,32]," ",32,32,32],
[" ",32,32,32],
" ",32,32,32],
[123,
["no_io_allowed",44,10,
[32,32,
[32,
[[" ",32,32,32]," ",32,32,32],
[" ",32,32,32],
" ",32,32,32],
32,
[[" ",32,32,32]," ",32,32,32],
[" ",32,32,32],
...
[{client,init,1},
{gen_fsm,init_it,6},
{proc_lib,init_p_do_apply,3}]}
in function gen_fsm:init_it/6
ancestors: [conn_sup,agent_sup,<0.730.0>]
messages: []
links: [<0.756.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 987
stack_size: 24
reductions: 284
neighbours:

=CRASH REPORT==== 9-Dec-2011::10:59:50 ===
crasher:
initial call: poller:init/1
pid: <0.758.0>
registered_name: 'poller:CNZ'
exception exit: {badarg,[{gen_fsm,send_all_state_event,2},
{lists,foreach,2},
{poller,handle_cast,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
in function gen_server:terminate/6
ancestors: [poller_sup,agent_sup,<0.730.0>]
messages: []
links: [<0.757.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 4181
stack_size: 24
reductions: 86111
neighbours: