Ticket #2 (new defect)

Opened 3 months ago

Last modified 3 months ago

Recursion depth exceeded on ntk.rpc.BcastClient

Reported by: arpunk Assigned to:
Priority: major Component: Netsukuku
Version: Netsukuku-SVN Keywords:
Cc: efphe@netsukuku.org, alpt@freaknet.org

Description

Running pyntk on two machines gives me the following error on the machine that first started the ntk daemon:

Exception exceptions.RuntimeError?: 'maximum recursion depth exceeded' in <bound method BcastClient?.del of <ntk.lib.rpc.BcastClient? object at 0x82ebe4c>> ignored

And nothing else happens. The nodes doesn't hook nor the debug display shows anything besides the exception.

Change History

08/15/08 04:46:02 changed by arpunk

  • cc set to efphe@netsukuku.org, alpt@freaknet.org.

08/16/08 17:42:06 changed by arpunk

So I tried to play with the recursion limits and setting them to 10000 with sys.setrecursionlimit()

Now, pyntk runs for a while until it reaches:

(Pdb) n 
Exception exceptions.RuntimeError: 'maximum recursion depth exceeded in cmp' in <bound method BcastClient.__del__ of <ntk.lib.rpc.BcastClient object at 0x82e55ac>> ignored
DEBUG __init__() takes at least 2 non-keyword arguments (1 given)
DEBUG dispatch response: ('rmt_error', '__init__() takes at least 2 non-keyword arguments (1 given)')
DEBUG UDP packet from ('192.168.1.218', 44466), dev None
DEBUG Handling data: radar.reply�A��yA����
DEBUG _dispatch: radar.reply((2714204440L, 3068326345L))
DEBUG func_get: radar.reply
> /home/arpunk/ntk/pyntk/ntk/lib/rpc.py(445)__del__()
-> self.close()
(Pdb) where
  /home/arpunk/ntk/pyntk/ntk/lib/rpc.py(349)dgram_request_handler()
-> response = rpcdispatcher.marshalled_dispatch(caller, data)
  /home/arpunk/ntk/pyntk/ntk/lib/rpc.py(204)marshalled_dispatch()
-> response = self.dispatch(caller, *unpacked)
  /home/arpunk/ntk/pyntk/ntk/lib/rpc.py(185)dispatch()
-> response = self._dispatch(caller, func, params)
  /home/arpunk/ntk/pyntk/ntk/lib/rpc.py(176)_dispatch()
-> return func(caller, *params)
  /home/arpunk/ntk/pyntk/ntk/core/radar.py(367)reply()
-> rpc.BcastClient(devs=[_rpc_caller.dev]).radar.time_register(radar_id, self.netid)
> /home/arpunk/ntk/pyntk/ntk/lib/rpc.py(445)__del__()
-> self.close()
(Pdb)