在 Erlang SASL 崩溃报告中,“messages:”的确切含义是什么?场地?
sasl 崩溃报告中的消息字段是否是消息邮箱的当前内容,即未收到的消息?
或者是消息历史记录,最后收到的消息?
如果它显示收到的消息,它们按什么顺序显示?
=CRASH REPORT==== 8-May-2011::09:00:38 ===
crasher:
initial call: most_msgs:-connect/4-fun-0-/0
pid: <0.181.0>
registered_name: []
exception exit: {tx_succ_timeout,mcm}
in function most_msgs:wait_tx_succ/4
ancestors: [<0.178.0>,<0.177.0>,<0.175.0>,<0.174.0>,<0.173.0>,<0.172.0>]
messages: [{send,{most_mcm,{most_fdh,mcm,undefined,undefined,968,6,255},
80,set,undefined,undefined,
<<244,239,62,2>>}},
{recv,{most_icm,768,status,<<2>>}},
{recv,{most_fifo_status,mcm,0,net_off,1}},
{send,{most_mcm,{most_fdh,mcm,undefined,undefined,968,6,255},
80,set,undefined,undefined,
<<244,223,62,128>>}},
Is the messages field in a sasl crash report the current content of the messages mailbox i.e. the unrecieved messages?
Or is it the messages history, the last received messages?
If it shows the received messages in what order are they shown?
=CRASH REPORT==== 8-May-2011::09:00:38 ===
crasher:
initial call: most_msgs:-connect/4-fun-0-/0
pid: <0.181.0>
registered_name: []
exception exit: {tx_succ_timeout,mcm}
in function most_msgs:wait_tx_succ/4
ancestors: [<0.178.0>,<0.177.0>,<0.175.0>,<0.174.0>,<0.173.0>,<0.172.0>]
messages: [{send,{most_mcm,{most_fdh,mcm,undefined,undefined,968,6,255},
80,set,undefined,undefined,
<<244,239,62,2>>}},
{recv,{most_icm,768,status,<<2>>}},
{recv,{most_fifo_status,mcm,0,net_off,1}},
{send,{most_mcm,{most_fdh,mcm,undefined,undefined,968,6,255},
80,set,undefined,undefined,
<<244,223,62,128>>}},
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
http://www.erlang.org/doc/man/erlang.html #process_info-2
{messages, MessageQueue}
MessageQueue 是进程中尚未处理的消息的列表。
大部分信息来自process_info (lib/stdlib/src/proc_lib.erl)。但不确定消息的顺序。
http://www.erlang.org/doc/man/erlang.html#process_info-2
{messages, MessageQueue}
MessageQueue is a list of the messages to the process, which have not yet been processed.
Most of the information comes from process_info (lib/stdlib/src/proc_lib.erl). Not sure about the order of messages though.
它是进程崩溃时消息队列中的消息。
it is the messages in the message queue at the time when the process crashed.