(gdb) bt #0 0x00007ffff7c10ba0 in tupledealloc (op=0x7fffa6982948) at Objects/tupleobject.c:232 #1 0x00007ffff7bcc7af in code_dealloc (co=0x7fffa699ea50) at Objects/codeobject.c:365 #2 0x00007ffff7be1987 in func_dealloc (op=0x7fffa671cf28) at Objects/funcobject.c:555 #3 0x00007fffefb1187d in boost::python::xdecref (p=0x7fffa671cf28) at /export/r666-1/stian/dev/packages/linux-amd64-gcc_4_4/boost-1_57_0--python-3_4_2/include/boost/python/refcount.hpp:36 #4 0x00007fffefb1178b in boost::python::handle<_object>::~handle (this=0x7fffb4ea2378, __in_chrg=) at /export/r666-1/stian/dev/packages/linux-amd64-gcc_4_4/boost-1_57_0--python-3_4_2/include/boost/python/handle.hpp:211 #5 0x0000003b0ee35b22 in exit () from /lib64/libc.so.6 #6 0x00007ffff7ca564f in Py_Exit (sts=0) at Python/pythonrun.c:2730 #7 0x00007ffff7ca5752 in handle_system_exit () at Python/pythonrun.c:1827 #8 0x00007ffff7ca5a15 in PyErr_PrintEx (set_sys_last_vars=1) at Python/pythonrun.c:1837 #9 0x00007ffff7ca65c5 in PyRun_SimpleFileExFlags (fp=, filename=, closeit=, flags=0x7fffffffd2c0) at Python/pythonrun.c:1626 #10 0x00007ffff7cc041c in run_file (argc=, argv=) at Modules/main.c:319 #11 Py_Main (argc=, argv=) at Modules/main.c:751 #12 0x0000000000400acd in main (argc=2, argv=0x7fffffffd438) at ./Modules/python.c:69