In Erlang SASL Crash Report, what exactly is the meaning of the "messages:" field?
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 l开发者_StackOverflow社区ast 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>>}},
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.
精彩评论