[Mnet-devel] MT bug...
Arno Waschk
hamamatsu at gmx.de
Mon Sep 20 11:21:19 BST 2004
Looks like Farieds MT crashed while replying to a message:
2004-09-18_16:48:51 () <=== <qi8sp>: receiving: (id: <wrwqq>, type: lookup
contact info, msg: <w6w3w>), 457 bytes uncomp
2004-09-18_16:48:51 () Failure to lookup contact info -- unknown nodeId
<w6w3w>, targetpeer: None
2004-09-18_16:48:51 () ---> <qi8sp>: sending: (id: <bas8x>, type: lookup
contact info response, ref: <wrwqq>, msg: {'result':'failure'}), 338 bytes
uncomp
2004-09-18_16:48:51 (ERROR) DoQ caught an exception. Shutting down. The
stack trace from when this task was added to the DoQ is: None. exception:
<AttributeError: "'NoneType' object has no attribute 'same'">
2004-09-18_16:48:51 () Traceback (most recent call last):
2004-09-18_16:48:51 () File "/u/data/mnet/mnet_new_mt/pyutil/DoQ.py",
line 302, in _do_thing
2004-09-18_16:48:51 () result = func(*args, **kwargs)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/TCPCommsHandler.py", line 457, in
_inmsg_handler
2004-09-18_16:48:51 () self._upward_inmsg_handler(msg, None, None)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/CryptoCommsHandler.py", line 217, in
inmsg_handler
2004-09-18_16:48:51 () self._upward_inmsg_handler(counterparty_id,
decomptext, cs)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/Conversation.py", line 347, in
handle_raw_message
2004-09-18_16:48:51 () result = self._process(inmsg, msgId,
counterparty_id, commstrat)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/Conversation.py", line 266, in _process
2004-09-18_16:48:51 () result =
self._MTM.handle_initiating_message(counterparty_id, conversationtype,
MojoMessage.getBody(msg), firstmsgId=msgId, commstrat=commstrat)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/MojoTransaction.py", line 649, in
handle_initiating_message
2004-09-18_16:48:51 () result = serverfunc(widget, msgbody['mojo
message'])
2004-09-18_16:48:51 () File "/u/data/mnet/mnet_new_mt/egtp/Node.py",
line 110, in translate
2004-09-18_16:48:51 ()
handler_func(self.peerset.new_peer(widget._commstrat), msgbody,
ReplyOpHandler(self, widget._firstmsgId))
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/metatracker/MetaTracker.py", line 111, in
handle_lookup_contact_info
2004-09-18_16:48:51 () ophandler.result({'result': 'failure'})
2004-09-18_16:48:51 () File "/u/data/mnet/mnet_new_mt/egtp/Node.py",
line 228, in result
2004-09-18_16:48:51 () self.node._reply(self.transactionId, msg=result)
2004-09-18_16:48:51 () File "/u/data/mnet/mnet_new_mt/egtp/Node.py",
line 143, in _reply
2004-09-18_16:48:51 () self.mtm.respond_with(prevmsgId=transactionId,
msgbody=msg)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/MojoTransaction.py", line 613, in
respond_with
2004-09-18_16:48:51 () self._cm.send_response(prevmsgId, body,
mymetainfo=mymetainfo, hint=hint)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/Conversation.py", line 195, in send_response
2004-09-18_16:48:51 ()
self._MTM.send_message_with_lookup(counterparty_id, msgstr,
conversationtype=conversationtype, hint=hint | HINT_THIS_IS_A_RESPONSE,
origlivelevel=0, demoteonfailure=False)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/MojoTransaction.py", line 944, in
send_message_with_lookup
2004-09-18_16:48:51 () self._ch.send_msg(counterparty_id, msg,
hint=hint, fast_fail_handler=fast_fail_handler,
commstratseqno=commstratseqno, whatcommstrat_cb=whatcommstrat_cb)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/CryptoCommsHandler.py", line 110, in
send_msg
2004-09-18_16:48:51 () fast_fail_handler(badcommstrat=cs,
failure_reason="no llstrat for this counterparty")
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/MojoTransaction.py", line 940, in
fast_fail_handler
2004-09-18_16:48:51 () self.downgrade(counterparty_id, badcommstrat,
origlivelevel+1, demoteonfailure=demoteonfailure, reason=failure_reason)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/MojoTransaction.py", line 569, in downgrade
2004-09-18_16:48:51 () self._ch.forget_comm_strategy(counterparty_id,
badcommstrat, reason=reason)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/CryptoCommsHandler.py", line 237, in
forget_comm_strategy
2004-09-18_16:48:51 () self._forget_comm_strategy(counterparty_id,
badcommstrat, reason)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/CryptoCommsHandler.py", line 221, in
_forget_comm_strategy
2004-09-18_16:48:51 () if curcs and curcs.same(badcommstrat):
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/CommStrat.py", line 439, in same
2004-09-18_16:48:51 () return
self._lowerstrategy.same(other._lowerstrategy)
2004-09-18_16:48:51 () AttributeError: 'NoneType' object has no attribute
'same'
2004-09-18_16:48:51 () <=== <qi8sp>: receiving: (id: <b1rub>, type: are
there messages response, ref: <94bm7>, msg: []), 325 bytes uncomp
2004-09-18_16:48:51 () <=== <qi8sp>: receiving: (id: <xygih>, type: lookup
contact info, msg: <33bnp>), 457 bytes uncomp
2004-09-18_16:48:51 () ---> <qi8sp>: sending: (id: <c4eku>, type: lookup
contact info response, ref: <xygih>, msg: {'connection strategies':[{'comm
strat sequence num':1, 'comm strategy type':'crypto', 'lowerstrategy':{'IP
address':'213.67.4.86', 'comm strat sequence num':530793, 'comm strategy
type':'TCP', 'port number':'22088'}, 'pubkey':{'key
header':{'cryptosystem':'RSA', 'type':'public', 'usage':'only for
communication security'}, 'key values':{'public exponent':'3', 'public
modulus':'oIC562pzNcW2a90jY_9V8iZGQhMqI3nNAFIR35f9LB9KTpX2ts8AvzV9zBiU52ee6w_5NhZ9Wx0QkQ4v5TiqnnOFoUED9WGUIzX138rFeXYLh0qeuqne0a_AwjO7LqaIAVwJI-aIW10q9HMMrA309BsO51w82TJUUsULJbUoXts'}}}],
'services':[]}), 1169 bytes uncomp
2004-09-18_16:48:51 (ERROR) DoQ caught an exception. Shutting down. The
stack trace from when this task was added to the DoQ is: None. exception:
<AttributeError: "'NoneType' object has no attribute 'same'">
2004-09-18_16:48:51 () Traceback (most recent call last):
2004-09-18_16:48:51 () File "/u/data/mnet/mnet_new_mt/pyutil/DoQ.py",
line 302, in _do_thing
2004-09-18_16:48:51 () result = func(*args, **kwargs)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/TCPCommsHandler.py", line 457, in
_inmsg_handler
2004-09-18_16:48:51 () self._upward_inmsg_handler(msg, None, None)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/CryptoCommsHandler.py", line 217, in
inmsg_handler
2004-09-18_16:48:51 () self._upward_inmsg_handler(counterparty_id,
decomptext, cs)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/Conversation.py", line 347, in
handle_raw_message
2004-09-18_16:48:51 () result = self._process(inmsg, msgId,
counterparty_id, commstrat)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/Conversation.py", line 266, in _process
2004-09-18_16:48:51 () result =
self._MTM.handle_initiating_message(counterparty_id, conversationtype,
MojoMessage.getBody(msg), firstmsgId=msgId, commstrat=commstrat)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/MojoTransaction.py", line 649, in
handle_initiating_message
2004-09-18_16:48:51 () result = serverfunc(widget, msgbody['mojo
message'])
2004-09-18_16:48:51 () File "/u/data/mnet/mnet_new_mt/egtp/Node.py",
line 110, in translate
2004-09-18_16:48:51 ()
handler_func(self.peerset.new_peer(widget._commstrat), msgbody,
ReplyOpHandler(self, widget._firstmsgId))
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/metatracker/MetaTracker.py", line 108, in
handle_lookup_contact_info
2004-09-18_16:48:51 ()
ophandler.result(targetpeer.premencodedphonebookentry)
2004-09-18_16:48:51 () File "/u/data/mnet/mnet_new_mt/egtp/Node.py",
line 228, in result
2004-09-18_16:48:51 () self.node._reply(self.transactionId, msg=result)
2004-09-18_16:48:51 () File "/u/data/mnet/mnet_new_mt/egtp/Node.py",
line 143, in _reply
2004-09-18_16:48:51 () self.mtm.respond_with(prevmsgId=transactionId,
msgbody=msg)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/MojoTransaction.py", line 613, in
respond_with
2004-09-18_16:48:51 () self._cm.send_response(prevmsgId, body,
mymetainfo=mymetainfo, hint=hint)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/Conversation.py", line 195, in send_response
2004-09-18_16:48:51 ()
self._MTM.send_message_with_lookup(counterparty_id, msgstr,
conversationtype=conversationtype, hint=hint | HINT_THIS_IS_A_RESPONSE,
origlivelevel=0, demoteonfailure=False)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/MojoTransaction.py", line 944, in
send_message_with_lookup
2004-09-18_16:48:51 () self._ch.send_msg(counterparty_id, msg,
hint=hint, fast_fail_handler=fast_fail_handler,
commstratseqno=commstratseqno, whatcommstrat_cb=whatcommstrat_cb)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/CryptoCommsHandler.py", line 110, in
send_msg
2004-09-18_16:48:51 () fast_fail_handler(badcommstrat=cs,
failure_reason="no llstrat for this counterparty")
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/MojoTransaction.py", line 940, in
fast_fail_handler
2004-09-18_16:48:51 () self.downgrade(counterparty_id, badcommstrat,
origlivelevel+1, demoteonfailure=demoteonfailure, reason=failure_reason)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/MojoTransaction.py", line 569, in downgrade
2004-09-18_16:48:51 () self._ch.forget_comm_strategy(counterparty_id,
badcommstrat, reason=reason)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/CryptoCommsHandler.py", line 237, in
forget_comm_strategy
2004-09-18_16:48:51 () self._forget_comm_strategy(counterparty_id,
badcommstrat, reason)
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/CryptoCommsHandler.py", line 221, in
_forget_comm_strategy
2004-09-18_16:48:51 () if curcs and curcs.same(badcommstrat):
2004-09-18_16:48:51 () File
"/u/data/mnet/mnet_new_mt/egtp/CommStrat.py", line 439, in same
2004-09-18_16:48:51 () return
self._lowerstrategy.same(other._lowerstrategy)
2004-09-18_16:48:51 () AttributeError: 'NoneType' object has no attribute
'same'
Two questions:
What exactly did happen? I mean, there is a cheap fix to have the MT not
to die from that, but what is the serious fix for that?
We had in an earlier version of the 0.7 thing the DoQ running without
dying on every little error. What is the waz of putting that back, at
least for the MT?
Arno
--
http://www.arnowaschk.de
More information about the Mnet-devel
mailing list