(gdb) bt #0 0x00007ffff79d8150 in visit_decref (op=0xe2e6f0, data=0x0) at ../Modules/gcmodule.c:320 __PRETTY_FUNCTION__ = "visit_decref" #1 0x00007ffff790b86b in tupletraverse (o=0xe2d240, visit=0x7ffff79d8112 , arg=0x0) at ../Objects/tupleobject.c:562 vret = 0 i = 1 #2 0x00007ffff79d8242 in subtract_refs (containers=0x7ffff7cff100) at ../Modules/gcmodule.c:345 traverse = 0x7ffff790b812 gc = 0xe2d220 #3 0x00007ffff79d9277 in collect (generation=0) at ../Modules/gcmodule.c:874 i = 0 m = 0 n = 0 young = 0x7ffff7cff100 old = 0x7ffff7cff130 unreachable = {gc = {gc_next = 0x2d000000001, gc_prev = 0x0, gc_refs = 7881303676420816}, dummy = 0} finalizers = {gc = {gc_next = 0x0, gc_prev = 0xe2e8e8, gc_refs = 14870759}, dummy = } gc = 0x6f00956138 t1 = 0 #4 0x00007ffff79d959a in collect_generations () at ../Modules/gcmodule.c:996 i = 0 n = 0 #5 0x00007ffff79da24e in _PyObject_GC_Malloc (basicsize=48) at ../Modules/gcmodule.c:1457 op = 0x21cf027c75a g = 0xe2e890 #6 0x00007ffff79da2ef in _PyObject_GC_NewVar (tp=0x7ffff7ce1260, nitems=1) at ../Modules/gcmodule.c:1477 size = 48 op = 0x0 #7 0x00007ffff790a314 in PyTuple_New (size=1) at ../Objects/tupleobject.c:90 nbytes = 8 op = 0x0 i = 2319282339842 #8 0x00007ffff790a8c0 in PyTuple_Pack (n=1) at ../Objects/tupleobject.c:194 i = 4 o = 0x7 result = 0xe30578 items = 0x40 vargs = {{gp_offset = 8, fp_offset = 48, overflow_arg_area = 0x7fffffffc010, reg_save_area = 0x7fffffffbf50}} #9 0x00007ffff78d8ca2 in set_key_error (arg=0xe30520) at ../Objects/dictobject.c:20 tup = 0x0 #10 0x00007ffff78dbc8c in dict_subscript (mp=0xd516e0, key=0xe30520) at ../Objects/dictobject.c:1172 v = 0x0 hash = -2105076797264984485 ep = 0xd51758 __PRETTY_FUNCTION__ = "dict_subscript" #11 0x00007ffff7878b0d in PyObject_GetItem (o=0xd516e0, key=0xe30520) at ../Objects/abstract.c:144 m = 0x7ffff7cd9a40 #12 0x00007ffff797fa29 in PyEval_EvalFrameEx (f=0x106b450, throwflag=0) at ../Python/ceval.c:1391 stack_pointer = 0x106b5f0 next_instr = 0x7fa699 "SWn\b" opcode = 13965024 oparg = 0 why = WHY_NOT err = 0 x = 0xe30520 v = 0xd516e0 w = 0xe30520 u = 0x9fcd60 t = 0x0 stream = 0x0 fastlocals = 0x106b5d8 freevars = 0x106b5e8 retval = 0x0 tstate = 0x611380 co = 0x7d3f60 instr_ub = -1 instr_lb = 0 instr_prev = -1 first_instr = 0x7fa68c "y\017" names = 0x826d80 consts = 0x816060 filename = 0x80eaf4 "../../adonthell/test/data/groups/group.py" __PRETTY_FUNCTION__ = "PyEval_EvalFrameEx" #13 0x00007ffff79887e9 in PyEval_EvalCodeEx (co=0x7d3f60, globals=0x865e70, locals=0x0, args=0xe2d8f8, argcount=2, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3253 f = 0x106b450 retval = 0x0 fastlocals = 0x106b5d8 freevars = 0x106b5e8 tstate = 0x611380 x = 0xe30520 u = 0x2 __PRETTY_FUNCTION__ = "PyEval_EvalCodeEx" #14 0x00007ffff78bf69b in function_call (func=0xd5e6f0, arg=0xe2d8d0, kw=0x0) at ../Objects/funcobject.c:526 result = 0x38 argdefs = 0x0 kwtuple = 0x0 d = 0x0 k = 0x0 nk = 0 nd = 0 #15 0x00007ffff787f6c2 in PyObject_Call (func=0xd5e6f0, arg=0xe2d8d0, kw=0x0) at ../Objects/abstract.c:2529 result = 0xe2bb60 call = 0x7ffff78bf47c #16 0x00007ffff789b701 in instancemethod_call (func=0xd5e6f0, arg=0xe2d8d0, kw=0x0) at ../Objects/classobject.c:2578 self = 0x826920 klass = 0xb63fa0 result = 0x0 #17 0x00007ffff787f6c2 in PyObject_Call (func=0xe2bb60, arg=0xe2e840, kw=0x0) at ../Objects/abstract.c:2529 result = 0x826920 call = 0x7ffff789b3bc #18 0x00007ffff798a9f1 in PyEval_CallObjectWithKeywords (func=0xe2bb60, arg=0xe2e840, kw=0x0) at ../Python/ceval.c:3890 result = 0x7ffff78e70d1 #19 0x00007ffff787f63d in PyObject_CallObject (o=0xe2bb60, a=0xe2e840) at ../Objects/abstract.c:2517 No locals. #20 0x00007ffff71d933c in python::script::call_method_ret ( this=, name=..., args=0xe2e840) at ../../../adonthell/src/python/script.cc:134 #21 0x00007ffff6143d42 in rpg::group::estimate_speed (this=0xb654b0, terrain=...) at ../../../adonthell/src/rpg/group.cc:60 #22 0x00007ffff61285a3 in rpg::character::update_speed (this=0xbbec50, terrain=...) at ../../../adonthell/src/rpg/character.cc:164 #23 0x00007ffff5ef2492 in world::character::speed (this=0xd94c30) at ../../../adonthell/src/world/character.cc:74 #24 0x00007ffff5ef29c0 in world::character::update_velocity (this=0xd94c30, ndir=@0x7fffffffcafc: 8) at ../../../adonthell/src/world/character.cc:203 #25 0x00007ffff5ef3650 in world::character::set_direction (this=0xd94c30, ndir=@0x7fffffffcafc: 8) at ../../../adonthell/src/world/character.cc:181 #26 0x00007ffff5ef4293 in world::character::add_direction ( this=, ndir=) at ../../../adonthell/src/world/character.cc:172 #27 0x00007fffe6ef7808 in _wrap_character_add_direction (args=) at ../../../../adonthell/src/py-wrappers/adonthell/py_world_wrap.cc:9156 #28 0x00007ffff78e3416 in PyCFunction_Call (func=0xcfc150, arg=0xe2d858, kw=0x0) at ../Objects/methodobject.c:81 #29 0x00007ffff798c842 in ext_do_call (func=0xcfc150, pp_stack=0x7fffffffcc90, flags=1, na=1, nk=0) at ../Python/ceval.c:4331 #30 0x00007ffff7985fb1 in PyEval_EvalFrameEx (f=0x106dd00, throwflag=0) at ../Python/ceval.c:2705 #31 0x00007ffff79887e9 in PyEval_EvalCodeEx (co=0xc94460, globals=0xc0d150, locals=0x0, args=0x106d8b0, argcount=2, kws=0x106d8c0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3253 #32 0x00007ffff798b901 in fast_function (func=0xd3e6f0, pp_stack=0x7fffffffd150, n=2, na=2, nk=0) at ../Python/ceval.c:4117 #33 0x00007ffff798b4c4 in call_function (pp_stack=0x7fffffffd150, oparg=1) at ../Python/ceval.c:4042 #34 0x00007ffff7985ce4 in PyEval_EvalFrameEx (f=0x106d710, throwflag=0) at ../Python/ceval.c:2666 #35 0x00007ffff79887e9 in PyEval_EvalCodeEx (co=0xdc6b40, globals=0xe56120, locals=0x0, args=0xe2d718, argcount=2, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3253 #36 0x00007ffff78bf69b in function_call (func=0xe10ae0, arg=0xe2d6f0, kw=0x0) at ../Objects/funcobject.c:526 #37 0x00007ffff787f6c2 in PyObject_Call (func=0xe10ae0, arg=0xe2d6f0, kw=0x0) at ../Objects/abstract.c:2529 #38 0x00007ffff789b701 in instancemethod_call (func=0xe10ae0, arg=0xe2d6f0, kw=0x0) at ../Objects/classobject.c:2578 #39 0x00007ffff787f6c2 in PyObject_Call (func=0x747c60, arg=0xe2e530, kw=0x0) at ../Objects/abstract.c:2529 #40 0x00007ffff798a9f1 in PyEval_CallObjectWithKeywords (func=0x747c60, arg=0xe2e530, kw=0x0) at ../Python/ceval.c:3890 #41 0x00007ffff787f63d in PyObject_CallObject (o=0x747c60, a=0xe2e530) at ../Objects/abstract.c:2517 #42 0x00007fffe6aaa230 in python::functor_1ret::run (this=0xe5d460, arg1=) at ../../../../adonthell/src/python/callback.h:214 #43 0x00007ffff6b913c2 in operator() (p1=, this=) at ../../../adonthell/src/base/callback.h:579 #44 input::listener::raise_event (this=, ev=) at ../../../adonthell/src/input/listener.cc:131 #45 0x00007ffff6b91495 in input::manager::raise_event (ev=...) at ../../../adonthell/src/input/manager.cc:53 #46 0x00007ffff6b91512 in input::manager::raise_event (ev=...) at ../../../adonthell/src/input/manager.cc:97 #47 0x00007fffee9f430b in _sdl_LTX_input_manager_update () at ../../../adonthell/src/input/sdl2/manager_sdl.cc:421 #48 0x0000000000405343 in update () at ../../adonthell/src/input/manager.h:62 #49 world_test::main (this=0x609660) at ../../adonthell/test/worldtest.cc:212 #50 0x00007ffff634fbd7 in adonthell::app::init (this=0x609660) at ../../../adonthell/src/main/adonthell.cc:304 #51 0x00007ffff634f381 in main (argc=4, argv=) at ../../../adonthell/src/main/main.cc:78 #52 0x00007ffff583876d in __libc_start_main (main=0x4045c0 , argc=4, ubp_av=0x7fffffffe058, init=, fini=, rtld_fini=, stack_end=0x7fffffffe048) at libc-start.c:226 #53 0x0000000000405915 in _start () (gdb) print *op $2 = {_ob_next = 0x16, _ob_prev = 0xf3a8122f6d55e452, ob_refcnt = 8462385097079783424, ob_type = 0x72746e6f633a3a74}