Debugger für Multithreaded Python ?

Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
Antworten
UweLo
User
Beiträge: 2
Registriert: Dienstag 20. Februar 2018, 13:39

Hallo,

Kann mir jemand einen Debugger für multithreaded Python empfehlen? Mit pdb geht es wohl nicht. Jedenfalls bekomme ich eine segmentation violation wenn ich pdb.set_trace() in einem Thread aufrufe, der nicht der Hauptthread ist. Ich benutze python3 auf Ubuntu.

Vielen Dank.
__deets__
User
Beiträge: 14493
Registriert: Mittwoch 14. Oktober 2015, 14:29

Das sollte nicht sein. Ich habe PDb auch schon in Multi threaded Szenarien eingesetzt.

Stell dich doch mal in den GDB, starte darin Python & provozier den Crash. Dann kannst du mal nen C backtrace anschauen. Vielleicht sieht man da was.
UweLo
User
Beiträge: 2
Registriert: Dienstag 20. Februar 2018, 13:39

__deets__ hat geschrieben:Das sollte nicht sein. Ich habe PDb auch schon in Multi threaded Szenarien eingesetzt.

Stell dich doch mal in den GDB, starte darin Python & provozier den Crash. Dann kannst du mal nen C backtrace anschauen. Vielleicht sieht man da was.
Ich kann mit dem gdb trace nicht viel anfangen. Ich hänge den mal an.

Mich würde interessieren, wie du mit pdb multithreaded python debugst. Wenn ich in pdb einen Breakpoint setze, dann hält nur der Hauptthread dort an. Deshalb habe ich "import pdb; pdb.set_trace()" in die py Datei eingefügt, wo ich halten will. In meinem Fall ist das verifier.py:67. Und da bekomme ich dann die segmentation violation.

Vielen Dank

Thread 3 "python3" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f0e96975700 (LWP 3230)]
PyModule_GetState (m=0x0) at ../Objects/moduleobject.c:537
537 ../Objects/moduleobject.c: No such file or directory.
(gdb) bt
#0 PyModule_GetState (m=0x0) at ../Objects/moduleobject.c:537
#1 0x00007f0e571623b2 in on_startup_hook () at ./Modules/readline.c:903
#2 0x00007f0e62395441 in rl_initialize ()
from /usr/lib/x86_64-linux-gnu/libedit.so.2
#3 0x00007f0e57162a79 in setup_readline (mod_state=0x7f0e60050cf0,
mod_state=0x7f0e60050cf0) at ./Modules/readline.c:1176
#4 PyInit_readline () at ./Modules/readline.c:1426
#5 0x0000000000576b5b in _PyImport_LoadDynamicModuleWithSpec (spec=spec@entry=
<ModuleSpec(name='readline', loader=<ExtensionFileLoader(name='readline', path='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so') at remote 0x7f0e6003c9e8>, origin='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached=None) at remote 0x7f0e6003ca20>, fp=fp@entry=0x0)
at ../Python/importdl.c:154
#6 0x00000000005743c5 in _imp_create_dynamic_impl (module=<optimized out>,
file=<optimized out>,
spec=<ModuleSpec(name='readline', loader=<ExtensionFileLoader(name='readline', path='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so') at remote 0x7f0e6003c9e8>, origin='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached=None) at remote 0x7f0e6003ca20>)
at ../Python/import.c:1982
#7 _imp_create_dynamic (module=<optimized out>, args=<optimized out>)
at ../Python/clinic/import.c.h:289
#8 0x00000000004c47ed in PyCFunction_Call (
func=func@entry=<built-in method create_dynamic of module object at remote 0x7f0e9dc9a4a8>, args=args@entry=
(<ModuleSpec(name='readline', loader=<ExtensionFileLoader(name='readline', path='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so') at remote 0x7f0e6003c9e8>, origin='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached=None) at remote 0x7f0e6003ca20>,),
kwds=kwds@entry={}) at ../Objects/methodobject.c:126
#9 0x0000000000557040 in do_call_core (kwdict={},
callargs=(<ModuleSpec(name='readline', loader=<ExtensionFileLoader(name='readline', path='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so') at remote 0x7f0e6003c9e8>, origin='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached=None) at remote 0x7f0e6003ca20>,),
func=<built-in method create_dynamic of module object at remote 0x7f0e9dc9a4a8>) at ../Python/ceval.c:5089
#10 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>)
at ../Python/ceval.c:3391
#11 0x000000000054efc1 in PyEval_EvalFrameEx (throwflag=0, f=
Frame 0x7f0e600443d8, for file <frozen importlib._bootstrap>, line 219, in _call_with_frames_removed (f=<built-in method create_dynamic of module object at
remote 0x7f0e9dc9a4a8>, args=(<ModuleSpec(name='readline', loader=<ExtensionFileLoader(name='readline', path='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so') at remote 0x7f0e6003c9e8>, origin='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached=None) at remote 0x7f0e6003ca20>,), kwds={})) at ../Python/ceval.c:753
#12 _PyEval_EvalCodeWithName (_co=<code at remote 0x7f0e9dccfdb0>,
globals=globals@entry={'__name__': 'importlib._bootstrap', '__doc__': 'Core implementation of import.\n\nThis module is NOT meant to be directly imported! It has been designed such\nthat it can be bootstrapped into Python as the implementation of import. As\nsuch it requires the injection of specific modules and attributes in order to\nwork. One should use importlib as the public-facing version of this module.\n\n', '__package__': 'importlib', '__loader__': <type at remote 0xb589d8>, '__spec__': <ModuleSpec(name='_frozen_importlib', loader=<type at remote 0xb589d8>, origin=None, loader_state=None, submodule_search_locations=None, _set_fileattr=False, _cached=None) at remote 0x7f0e9dc9c668>, '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remote 0xb580f8>, origin=None, loader_state=N...(truncated), locals=locals@entry=0x0, args=<optimized out>,
argcount=argcount@entry=2, kwnames=0x0, kwargs=0x7f0e9797fb00, kwcount=0,
kwstep=1, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0,
name='_call_with_frames_removed', qualname='_call_with_frames_removed')
at ../Python/ceval.c:4153
#13 0x000000000054f24d in fast_function (kwnames=0x0, nargs=2,
stack=<optimized out>, func=<function at remote 0x7f0e9dcbaea0>)
at ../Python/ceval.c:4965
#14 call_function (pp_stack=pp_stack@entry=0x7f0e96973298,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#15 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#16 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x7f0e9797f958, for file <frozen importlib._bootstrap_external>, line 922, in create_module (self=<ExtensionFileLoader(name='readline', path='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so') at remote 0x7f0e6003c9e8>, spec=<ModuleSpec(name='readline', loader=<...>, origin='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached=None) at remote 0x7f0e6003ca20>)) at ../Python/ceval.c:753
#17 _PyFunction_FastCall (co=<optimized out>, args=<optimized out>,
nargs=nargs@entry=2,
globals=globals@entry={'__name__': 'importlib._bootstrap_external', '__doc__': 'Core implementation of path-based import.\n\nThis module is NOT meant to be directly imported! It has been designed such\nthat it can be bootstrapped into Python as the implementation of import. As
such it requires the injection of specific modules and attributes in order to\nwork. One should use importlib as the public-facing version of this module.\n\n', '__package__': 'importlib', '__loader__': <type at remote 0xb589d8>, '__spec__': <ModuleSpec(name='_frozen_importlib_external', loader=<type at remote 0xb589d8>, origin='frozen', loader_state=None, submodule_search_locations=None, _set_fileattr=False, _cached=None, _initializing=False) at remote 0x7f0e9dc9cac8>, '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=...(truncated)) at ../Python/ceval.c:4906
#18 0x000000000054f4f6 in fast_function (kwnames=0x0, nargs=2,
stack=<optimized out>, func=<function at remote 0x7f0e9dc436a8>)
at ../Python/ceval.c:4941
#19 call_function (pp_stack=pp_stack@entry=0x7f0e96973438,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#20 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#21 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x7f0e97980c88, for file <frozen importlib._bootstrap>, line 571, in module_from_spec (spec=<ModuleSpec(name='readline', loader=<ExtensionFileLoader(name='readline', path='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so') at remote 0x7f0e6003c9e8>, origin='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached=None) at remote 0x7f0e6003ca20>, module=None)) at ../Python/ceval.c:753
#22 _PyFunction_FastCall (co=<optimized out>, args=<optimized out>,
nargs=nargs@entry=1,
globals=globals@entry={'__name__': 'importlib._bootstrap', '__doc__': 'Core implementation of import.\n\nThis module is NOT meant to be directly imported! It has been designed such\nthat it can be bootstrapped into Python as the implementation of import. As\nsuch it requires the injection of specific modules and attributes in order to\nwork. One should use importlib as the public-facing version of this module.\n\n', '__package__': 'importlib', '__loader__': <type at remote 0xb589d8>, '__spec__': <ModuleSpec(name='_frozen_importlib', loader=<type at remote 0xb589d8>, origin=None, loader_state=None, submodule_search_locations=None, _set_fileattr=False, _cached=None) at remote 0x7f0e9dc9c668>, '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remote 0xb580f8>, origin=None, loader_state=N...(truncated)) at ../Python/ceval.c:4906
#23 0x000000000054f4f6 in fast_function (kwnames=0x0, nargs=1,
stack=<optimized out>, func=<function at remote 0x7f0e9dc9b9d8>)
at ../Python/ceval.c:4941
#24 call_function (pp_stack=pp_stack@entry=0x7f0e969735d8,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#25 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#26 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x7f0e70055848, for file <frozen importlib._bootstrap>, line 658, in _load_unlocked (spec=<ModuleSpec(name='readline', loader=<ExtensionFileLoader(name='readline', path='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so') at remote 0x7f0e6003c9e8>, origin='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached=None) at remote 0x7f0e6003ca20>))
at ../Python/ceval.c:753
#27 _PyFunction_FastCall (co=<optimized out>, args=<optimized out>,
nargs=nargs@entry=1,
globals=globals@entry={'__name__': 'importlib._bootstrap', '__doc__': 'Core implementation of import.\n\nThis module is NOT meant to be directly imported! It has been designed such\nthat it can be bootstrapped into Python as the implementation of import. As\nsuch it requires the injection of specific modules and attributes in order to\nwork. One should use importlib as the public-facing version of this module.\n\n', '__package__': 'importlib', '__loader__': <type at remote 0xb589d8>, '__spec__': <ModuleSpec(name='_frozen_importlib', loader=<type at remote 0xb589d8>, origin=None, loader_state=None, submodule_search_locations=None, _set_fileattr=False, _cached=None) at remote 0x7f0e9dc9c668>, '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remote 0xb580f8>, origin=None, loader_state=N...(truncated)) at ../Python/ceval.c:4906
#28 0x000000000054f4f6 in fast_function (kwnames=0x0, nargs=1,
stack=<optimized out>, func=<function at remote 0x7f0e9dc9bbf8>)
at ../Python/ceval.c:4941
#29 call_function (pp_stack=pp_stack@entry=0x7f0e96973778,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#30 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#31 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x7f0e8c029758, for file <frozen importlib._bootstrap>, line 955, in _find_and_load_unlocked (name='readline', import_=<built-in method __import__ of module object at remote 0x7f0e9dcdd638>, path=None, parent='', spec=<ModuleSpec(name='readline', loader=<ExtensionFileLoader(name='readline', path='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so') at remote 0x7f0e6003c9e8>, origin='/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached=None) at remote 0x7f0e6003ca20>)) at ../Python/ceval.c:753
#32 _PyFunction_FastCall (co=<optimized out>, args=<optimized out>,
nargs=nargs@entry=2,
globals=globals@entry={'__name__': 'importlib._bootstrap', '__doc__': 'Core implementation of import.\n\nThis module is NOT meant to be directly imported! It has been designed such\nthat it can be bootstrapped into Python as the implementation of import. As\nsuch it requires the injection of specific modules and attributes in order to\nwork. One should use importlib as the public-facing version of this module.\n\n', '__package__': 'importlib', '__loader__': <type at remote 0xb589d8>, '__spec__': <ModuleSpec(name='_frozen_importlib', loader=<type at remote 0xb589d8>, origin=None, loader_state=None, submodule_search_locations=None, _set_fileattr=False, _cached=None) at remote 0x7f0e9dc9c668>, '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remote 0xb580f8>, origin=None, loader_state=N...(truncated)) at ../Python/ceval.c:4906
#33 0x000000000054f4f6 in fast_function (kwnames=0x0, nargs=2,
stack=<optimized out>, func=<function at remote 0x7f0e9dc9dd08>)
at ../Python/ceval.c:4941
#34 call_function (pp_stack=pp_stack@entry=0x7f0e96973918,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#35 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#36 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x1c9c198, for file <frozen importlib._bootstrap>, line 971, in _find_and_load (name='readline', import_=<built-in method __import__ of module object at remote 0x7f0e9dcdd638>, module=<object at remote 0x7f0e9dca1030>))
at ../Python/ceval.c:753
#37 _PyFunction_FastCall (co=co@entry=0x7f0e9dc92300, args=<optimized out>,
args@entry=0x7f0e96973ad0, nargs=nargs@entry=2,
globals=globals@entry={'__name__': 'importlib._bootstrap', '__doc__': 'Core implementation of import.\n\nThis module is NOT meant to be directly imported! It has been designed such\nthat it can be bootstrapped into Python as the implementation of import. As\nsuch it requires the injection of specific modules and attributes in order to\nwork. One should use importlib as the public-facing version of this module.\n\n', '__package__': 'importlib', '__loader__': <type at remote 0xb589d8>, '__spec__': <ModuleSpec(name='_frozen_importlib', loader=<type at remote 0xb589d8>, origin=None, loader_state=None, submodule_search_locations=None, _set_fileattr=False, _cached=None) at remote 0x7f0e9dc9c668>, '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remote 0xb580f8>, origin=None, loader_state=N...(truncated)) at ../Python/ceval.c:4906
#38 0x00000000005582c2 in _PyFunction_FastCallDict (
func=func@entry=<function at remote 0x7f0e9dc9dd90>,
args=args@entry=0x7f0e96973ad0, nargs=nargs@entry=2,
kwargs=kwargs@entry=0x0) at ../Python/ceval.c:5008
#39 0x0000000000459981 in _PyObject_FastCallDict (
func=<function at remote 0x7f0e9dc9dd90>, args=0x7f0e96973ad0, nargs=2,
kwargs=0x0) at ../Objects/abstract.c:2310
#40 0x000000000045b034 in _PyObject_CallMethodIdObjArgs (
callable=<function at remote 0x7f0e9dc9dd90>,
name=name@entry=0x9f3ea0 <PyId__find_and_load.13971>)
at ../Objects/abstract.c:2796
#41 0x000000000057581a in PyImport_ImportModuleLevelObject (
name=name@entry='readline', globals=<optimized out>,
locals=<optimized out>, fromlist=fromlist@entry=None, level=0)
at ../Python/import.c:1566
#42 0x0000000000556add in import_name (level=0, fromlist=None,
name='readline',
f=Frame 0x1ade018, for file /usr/lib/python3.6/pdb.py, line 154, in __init__ (self=<Pdb(skip=None, breaks={}, fncache={}, frame_returning=None, stdin=<_io.TextIOWrapper at remote 0x7f0e9dc8d558>, stdout=<_io.TextIOWrapper at remote 0x7f0e9dc8d630>, cmdqueue=[], completekey='tab', prompt='(Pdb) ', aliases={}, displaying={}, mainpyfile='', _wait_for_mainpyfile=False, tb_lineno={}) at remote 0x7f0e60029630>, completekey='tab', stdin=None, stdout=None, skip=None, nosigint=False, readrc=True)) at ../Python/ceval.c:5218
#43 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>)
at ../Python/ceval.c:2886
#44 0x000000000054efc1 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x1ade018, for file /usr/lib/python3.6/pdb.py, line 154, in __init__ (self=<Pdb(skip=None, breaks={}, fncache={}, frame_returning=None, stdin=<_io.TextIOWrapper at remote 0x7f0e9dc8d558>, stdout=<_io.TextIOWrapper at remote 0x7f0e9dc8d630>, cmdqueue=[], completekey='tab', prompt='(Pdb) ', aliases={}, displaying={}, mainpyfile='', _wait_for_mainpyfile=False, tb_lineno={}) at remote 0x7f0e60029630>, completekey='tab', stdin=None, stdout=None, skip=None, nosigint=False, readrc=True)) at ../Python/ceval.c:753
#45 _PyEval_EvalCodeWithName (_co=_co@entry=<code at remote 0x7f0e6002b5d0>,
globals=globals@entry={'__name__': 'pdb', '__package__': '', '__loader__': <SourceFileLoader(name='pdb', path='/usr/lib/python3.6/pdb.py') at remote 0x7f0e600297b8>, '__spec__': <ModuleSpec(name='pdb', loader=<...>, origin='/usr/lib/python3.6/pdb.py', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached='/usr/lib/python3.6/__pycache__/pdb.cpython-36.pyc', _initializing=False) at remote 0x7f0e600297f0>, '__file__': '/usr/lib/python3.6/pdb.py', '__cached__': '/usr/lib/python3.6/__pycache__/pdb.cpython-36.pyc', '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remote 0xb580f8>, origin=None, loader_state=None, submodule_search_locations=None, _set_fileattr=False, _cached=None) at remote 0x7f0e9dc8aac8>, '__build_class__': <built-in method __build_class__ of modu...(truncated), locals=locals@entry=0x0,
args=args@entry=0x7f0e96973f20, argcount=argcount@entry=1,
kwnames=kwnames@entry=0x0, kwargs=0x0, kwcount=0, kwstep=2,
defs=0x7f0e600393c0, defcount=6, kwdefs=0x0, closure=0x0, name='__init__',
qualname='Pdb.__init__') at ../Python/ceval.c:4153
#46 0x00000000005581e9 in _PyFunction_FastCallDict (
func=func@entry=<function at remote 0x7f0e573d89d8>,
args=args@entry=0x7f0e96973f20, nargs=nargs@entry=1,
kwargs=kwargs@entry=0x0) at ../Python/ceval.c:5057
#47 0x0000000000459c11 in _PyObject_FastCallDict (kwargs=0x0, nargs=1,
args=0x7f0e96973f20, func=<function at remote 0x7f0e573d89d8>)
at ../Objects/abstract.c:2310
#48 _PyObject_Call_Prepend (func=<function at remote 0x7f0e573d89d8>,
obj=<optimized out>, args=(), kwargs=0x0) at ../Objects/abstract.c:2373
#49 0x000000000045969e in PyObject_Call (
func=func@entry=<method at remote 0x7f0e60024608>, args=args@entry=(),
kwargs=kwargs@entry=0x0) at ../Objects/abstract.c:2261
#50 0x00000000004e0b5b in slot_tp_init (
self=<Pdb(skip=None, breaks={}, fncache={}, frame_returning=None, stdin=<_io.TextIOWrapper at remote 0x7f0e9dc8d558>, stdout=<_io.TextIOWrapper at remote 0x7f0e9dc8d630>, cmdqueue=[], completekey='tab', prompt='(Pdb) ', aliases={}, displaying={}, mainpyfile='', _wait_for_mainpyfile=False, tb_lineno={}) at remote 0x7f0e60029630>, args=(), kwds=0x0) at ../Objects/typeobject.c:6407
#51 0x00000000004da8d7 in type_call (type=<optimized out>, args=(), kwds=0x0)
at ../Objects/typeobject.c:915
#52 0x0000000000459893 in _PyObject_FastCallDict (
func=<type at remote 0x7f0e8c026ab8>, args=0x12f4418, nargs=0, kwargs=0x0)
at ../Objects/abstract.c:2331
#53 0x000000000054f117 in call_function (
pp_stack=pp_stack@entry=0x7f0e96974158, oparg=<optimized out>,
kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4848
#54 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#55 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x12f4298, for file /usr/lib/python3.6/pdb.py, line 1585, in set_trace ()) at ../Python/ceval.c:753
#56 _PyFunction_FastCall (co=<optimized out>, args=<optimized out>,
nargs=nargs@entry=0,
globals=globals@entry={'__name__': 'pdb', '__package__': '', '__loader__': <SourceFileLoader(name='pdb', path='/usr/lib/python3.6/pdb.py') at remote 0x7f0e600297b8>, '__spec__': <ModuleSpec(name='pdb', loader=<...>, origin='/usr/lib/python3.6/pdb.py', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached='/usr/lib/python3.6/__pycache__/pdb.cpython-36.pyc', _initializing=False) at remote 0x7f0e600297f0>, '__file__': '/usr/lib/python3.6/pdb.py', '__cached__': '/usr/lib/python3.6/__pycache__/pdb.cpython-36.pyc', '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remote 0xb580f8>, origin=None, loader_state=None, submodule_search_locations=None, _set_fileattr=False, _cached=None) at remote 0x7f0e9dc8aac8>, '__build_class__': <built-in method __build_class__ of modu...(truncated)) at ../Python/ceval.c:4906
#57 0x000000000054f4f6 in fast_function (kwnames=0x0, nargs=0,
stack=<optimized out>, func=<function at remote 0x7f0e573da488>)
at ../Python/ceval.c:4941
#58 call_function (pp_stack=pp_stack@entry=0x7f0e969742f8,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#59 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#60 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x7f0e9a5ebbe8, for file /home/uwe/myelectrum/electrum-bitcore/lib/verifier.py, line 67, in connect_chunk (self=<SPV(wallet=<Imported_Wallet(electrum_version='3.0.5', storage=<WalletStorage(manual_upgrades=True, lock=<_thread.RLock at remote 0x7f0e9a6136f0>, data={'addr_history': {'1LRk5FK1XpLPSirwf8Gjr9B12n3TYumiya': [['f4ed6859b91c31d83a8a78a831741d7c02e9600e410d9f7830be939bf72efb00', 119374], ['c8cf273b64831d4d67a6d2f8267dcd2dcd683e4fc8ef88bc16c464eac6a98e34', 119377]]}, 'addresses': {'1A9aYtKcYEwwp9Lw2UwoFvpdF8rLkTPdzH': {'pubkey': '0336964bccde42021a51f39b593d759b22e7311f48e5f8f48171638c6655a6b4fa', 'redeem_script': None, 'type': 'p2pkh'}, '1LRk5FK1XpLPSirwf8Gjr9B12n3TYumiya': {'pubkey': '02cdb9210a6e3d00370eff1c0a9b2792532f27a273b20e3b86fc069e96d907ca2c', 'redeem_script': None, 'type': 'p2pkh'}}, 'keystore': {'keypairs': {'02cdb9210a6e3d00370eff1c0a9b2792532f27a273b20e3b86fc069e96d907ca2c': 'L45enp6qGRqDZYxP4uuG6WnqxfcMDCMaKjjk8DoLrTCRPSxzhT5T', '0336964bccde42021a51f39b593d759b22e7311f48e5f8f4817...(truncated)) at ../Python/ceval.c:753
#61 _PyFunction_FastCall (co=<optimized out>, args=<optimized out>,
nargs=nargs@entry=2,
globals=globals@entry={'__name__': 'electrum.verifier', '__doc__': None, '__package__': 'electrum', '__loader__': <SourceFileLoader(name='electrum.verifier', path='/home/uwe/myelectrum/electrum-bitcore/lib/verifier.py') at remote 0x7f0e986b92b0>, '__spec__': <ModuleSpec(name='electrum.verifier', loader=<...>, origin='/home/uwe/myelectrum/electrum-bitcore/lib/verifier.py', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached='/home/uwe/myelectrum/electrum-bitcore/lib/__pycache__/verifier.cpython-36.pyc', _initializing=False) at remote 0x7f0e986b92e8>, '__file__': '/home/uwe/myelectrum/electrum-bitcore/lib/verifier.py', '__cached__': '/home/uwe/myelectrum/electrum-bitcore/lib/__pycache__/verifier.cpython-36.pyc', '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type ...(truncated)) at ../Python/ceval.c:4906
#62 0x000000000054f4f6 in fast_function (kwnames=0x0, nargs=2,
stack=<optimized out>, func=<function at remote 0x7f0e986b8bf8>)
at ../Python/ceval.c:4941
#63 call_function (pp_stack=pp_stack@entry=0x7f0e96974498,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#64 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#65 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x7f0e8c003c18, for file /home/uwe/myelectrum/electrum-bitcore/lib/network.py, line 562, in process_response (self=<Network(_target=None, _name='Thread-3', _args=(), _kwargs={}, _daemonic=False, _ident=139700632770304, _tstate_lock=<_thread.lock at remote 0x7f0e9797c3a0>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9797c058>, acquire=<built-in method acquire of _thread.lock object at remote 0x7f0e9797c058>, release=<built-in method release of _thread.lock object at remote 0x7f0e9797c058>, _waiters=<collections.deque at remote 0x7f0e97979118>) at remote 0x7f0e979e5c50>, _flag=True) at remote 0x7f0e979e58d0>, _is_stopped=False, _initialized=True, _stderr=<_io.TextIOWrapper at remote 0x7f0e9dc8d708>, parent_thread=<_MainThread(_target=None, _name='MainThread', _args=(...), _kwargs={}, _daemonic=False, _ident=139700753811264, _tstate_lock=<_thread.lock at remote 0x7f0e9c43cb98>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9c43c850>, acquire=<built-in method ...(truncated)) at ../Python/ceval.c:753
#66 _PyFunction_FastCall (co=<optimized out>, args=<optimized out>,
nargs=nargs@entry=4,
globals=globals@entry={'__name__': 'electrum.network', '__doc__': None, '__package__': 'electrum', '__loader__': <SourceFileLoader(name='electrum.network', path='/home/uwe/myelectrum/electrum-bitcore/lib/network.py') at remote 0x7f0e986ceba8>, '__spec__': <ModuleSpec(name='electrum.network', loader=<...>, origin='/home/uwe/myelectrum/electrum-bitcore/lib/network.py', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached='/home/uwe/myelectrum/electrum-bitcore/lib/__pycache__/network.cpython-36.pyc', _initializing=False) at remote 0x7f0e986cec18>, '__file__': '/home/uwe/myelectrum/electrum-bitcore/lib/network.py', '__cached__': '/home/uwe/myelectrum/electrum-bitcore/lib/__pycache__/network.cpython-36.pyc', '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remot...(truncated)) at ../Python/ceval.c:4906
#67 0x000000000054f4f6 in fast_function (kwnames=0x0, nargs=4,
stack=<optimized out>, func=<function at remote 0x7f0e97cb1400>)
at ../Python/ceval.c:4941
#68 call_function (pp_stack=pp_stack@entry=0x7f0e96974638,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#69 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#70 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x7f0e8c002ec8, for file /home/uwe/myelectrum/electrum-bitcore/lib/network.py, line 613, in process_responses (self=<Network(_target=None, _name='Thread-3', _args=(), _kwargs={}, _daemonic=False, _ident=139700632770304, _tstate_lock=<_thread.lock at remote 0x7f0e9797c3a0>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9797c058>, acquire=<built-in method acquire of _thread.lock object at remote 0x7f0e9797c058>, release=<built-in method release of _thread.lock object at remote 0x7f0e9797c058>, _waiters=<collections.deque at remote 0x7f0e97979118>) at remote 0x7f0e979e5c50>, _flag=True) at remote 0x7f0e979e58d0>, _is_stopped=False, _initialized=True, _stderr=<_io.TextIOWrapper at remote 0x7f0e9dc8d708>, parent_thread=<_MainThread(_target=None, _name='MainThread', _args=(...), _kwargs={}, _daemonic=False, _ident=139700753811264, _tstate_lock=<_thread.lock at remote 0x7f0e9c43cb98>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9c43c850>, acquire=<built-in method...(truncated)) at ../Python/ceval.c:753
#71 _PyFunction_FastCall (co=<optimized out>, args=<optimized out>,
nargs=nargs@entry=2,
globals=globals@entry={'__name__': 'electrum.network', '__doc__': None, '__package__': 'electrum', '__loader__': <SourceFileLoader(name='electrum.network', path='/home/uwe/myelectrum/electrum-bitcore/lib/network.py') at remote 0x7f0e986ceba8>, '__spec__': <ModuleSpec(name='electrum.network', loader=<...>, origin='/home/uwe/myelectrum/electrum-bitcore/lib/network.py', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached='/home/uwe/myelectrum/electrum-bitcore/lib/__pycache__/network.cpython-36.pyc', _initializing=False) at remote 0x7f0e986cec18>, '__file__': '/home/uwe/myelectrum/electrum-bitcore/lib/network.py', '__cached__': '/home/uwe/myelectrum/electrum-bitcore/lib/__pycache__/network.cpython-36.pyc', '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remot...(truncated)) at ../Python/ceval.c:4906
#72 0x000000000054f4f6 in fast_function (kwnames=0x0, nargs=2,
stack=<optimized out>, func=<function at remote 0x7f0e97cb1510>)
at ../Python/ceval.c:4941
#73 call_function (pp_stack=pp_stack@entry=0x7f0e969747d8,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#74 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#75 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x7f0e8c0010f8, for file /home/uwe/myelectrum/electrum-bitcore/lib/network.py, line 950, in wait_on_sockets (self=<Network(_target=None, _name='Thread-3', _args=(), _kwargs={}, _daemonic=False, _ident=139700632770304, _tstate_lock=<_thread.lock at remote 0x7f0e9797c3a0>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9797c058>, acquire=<built-in method acquire of _thread.lock object at remote 0x7f0e9797c058>, release=<built-in method release of _thread.lock object at remote 0x7f0e9797c058>, _waiters=<collections.deque at remote 0x7f0e97979118>) at remote 0x7f0e979e5c50>, _flag=True) at remote 0x7f0e979e58d0>, _is_stopped=False, _initialized=True, _stderr=<_io.TextIOWrapper at remote 0x7f0e9dc8d708>, parent_thread=<_MainThread(_target=None, _name='MainThread', _args=(...), _kwargs={}, _daemonic=False, _ident=139700753811264, _tstate_lock=<_thread.lock at remote 0x7f0e9c43cb98>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9c43c850>, acquire=<built-in method a...(truncated)) at ../Python/ceval.c:753
#76 _PyFunction_FastCall (co=<optimized out>, args=<optimized out>,
nargs=nargs@entry=1,
globals=globals@entry={'__name__': 'electrum.network', '__doc__': None, '__package__': 'electrum', '__loader__': <SourceFileLoader(name='electrum.network', path='/home/uwe/myelectrum/electrum-bitcore/lib/network.py') at remote 0x7f0e986ceba8>, '__spec__': <ModuleSpec(name='electrum.network', loader=<...>, origin='/home/uwe/myelectrum/electrum-bitcore/lib/network.py', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached='/home/uwe/myelectrum/electrum-bitcore/lib/__pycache__/network.cpython-36.pyc', _initializing=False) at remote 0x7f0e986cec18>, '__file__': '/home/uwe/myelectrum/electrum-bitcore/lib/network.py', '__cached__': '/home/uwe/myelectrum/electrum-bitcore/lib/__pycache__/network.cpython-36.pyc', '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remot...(truncated)) at ../Python/ceval.c:4906
#77 0x000000000054f4f6 in fast_function (kwnames=0x0, nargs=1,
stack=<optimized out>, func=<function at remote 0x7f0e97cb1d90>)
at ../Python/ceval.c:4941
#78 call_function (pp_stack=pp_stack@entry=0x7f0e96974978,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#79 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#80 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x7f0e97edcbe0, for file /home/uwe/myelectrum/electrum-bitcore/lib/network.py, line 968, in run (self=<Network(_target=None, _name='Thread-3', _args=(), _kwargs={}, _daemonic=False, _ident=139700632770304, _tstate_lock=<_thread.lock at remote 0x7f0e9797c3a0>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9797c058>, acquire=<built-in method acquire of _thread.lock object at remote 0x7f0e9797c058>, release=<built-in method release of _thread.lock object at remote 0x7f0e9797c058>, _waiters=<collections.deque at remote 0x7f0e97979118>) at remote 0x7f0e979e5c50>, _flag=True) at remote 0x7f0e979e58d0>, _is_stopped=False, _initialized=True, _stderr=<_io.TextIOWrapper at remote 0x7f0e9dc8d708>, parent_thread=<_MainThread(_target=None, _name='MainThread', _args=(...), _kwargs={}, _daemonic=False, _ident=139700753811264, _tstate_lock=<_thread.lock at remote 0x7f0e9c43cb98>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9c43c850>, acquire=<built-in method acquire of _t...(truncated)) at ../Python/ceval.c:753
#81 _PyFunction_FastCall (co=<optimized out>, args=<optimized out>,
nargs=nargs@entry=1,
globals=globals@entry={'__name__': 'electrum.network', '__doc__': None, '__package__': 'electrum', '__loader__': <SourceFileLoader(name='electrum.network', path='/home/uwe/myelectrum/electrum-bitcore/lib/network.py') at remote 0x7f0e986ceba8>, '__spec__': <ModuleSpec(name='electrum.network', loader=<...>, origin='/home/uwe/myelectrum/electrum-bitcore/lib/network.py', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached='/home/uwe/myelectrum/elec
trum-bitcore/lib/__pycache__/network.cpython-36.pyc', _initializing=False) at remote 0x7f0e986cec18>, '__file__': '/home/uwe/myelectrum/electrum-bitcore/lib/network.py', '__cached__': '/home/uwe/myelectrum/electrum-bitcore/lib/__pycache__/network.cpython-36.pyc', '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remot...(truncated)) at ../Python/ceval.c:4906
#82 0x000000000054f4f6 in fast_function (kwnames=0x0, nargs=1,
stack=<optimized out>, func=<function at remote 0x7f0e97cb1ea0>)
at ../Python/ceval.c:4941
#83 call_function (pp_stack=pp_stack@entry=0x7f0e96974b18,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#84 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#85 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x7f0e8c000b28, for file /usr/lib/python3.6/threading.py, line 916, in _bootstrap_inner (self=<Network(_target=None, _name='Thread-3', _args=(), _kwargs={}, _daemonic=False, _ident=139700632770304, _tstate_lock=<_thread.lock at remote 0x7f0e9797c3a0>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9797c058>, acquire=<built-in method acquire of _thread.lock object at remote 0x7f0e9797c058>, release=<built-in method release of _thread.lock object at remote 0x7f0e9797c058>, _waiters=<collections.deque at remote 0x7f0e97979118>) at remote 0x7f0e979e5c50>, _flag=True) at remote 0x7f0e979e58d0>, _is_stopped=False, _initialized=True, _stderr=<_io.TextIOWrapper at remote 0x7f0e9dc8d708>, parent_thread=<_MainThread(_target=None, _name='MainThread', _args=(...), _kwargs={}, _daemonic=False, _ident=139700753811264, _tstate_lock=<_thread.lock at remote 0x7f0e9c43cb98>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9c43c850>, acquire=<built-in method acquire of _thread.lo...(truncated)) at ../Python/ceval.c:753
#86 _PyFunction_FastCall (co=<optimized out>, args=<optimized out>,
nargs=nargs@entry=1,
globals=globals@entry={'__name__': 'threading', '__doc__': "Thread module emulating a subset of Java's threading model.", '__package__': '', '__loader__': <SourceFileLoader(name='threading', path='/usr/lib/python3.6/threading.py') at remote 0x7f0e9c438160>, '__spec__': <ModuleSpec(name='threading', loader=<...>, origin='/usr/lib/python3.6/threading.py', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached='/usr/lib/python3.6/__pycache__/threading.cpython-36.pyc', _initializing=False) at remote 0x7f0e9c438198>, '__file__': '/usr/lib/python3.6/threading.py', '__cached__': '/usr/lib/python3.6/__pycache__/threading.cpython-36.pyc', '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remote 0xb580f8>, origin=None, loader_state=None, submodule_search_locations=None,...(truncated)) at ../Python/ceval.c:4906
#87 0x000000000054f4f6 in fast_function (kwnames=0x0, nargs=1,
stack=<optimized out>, func=<function at remote 0x7f0e9c3f5d08>)
at ../Python/ceval.c:4941
#88 call_function (pp_stack=pp_stack@entry=0x7f0e96974cb8,
oparg=<optimized out>, kwnames=kwnames@entry=0x0) at ../Python/ceval.c:4845
#89 0x0000000000553aaf in _PyEval_EvalFrameDefault (f=<optimized out>,
throwflag=<optimized out>) at ../Python/ceval.c:3322
#90 0x000000000054e4c8 in PyEval_EvalFrameEx (throwflag=0,
f=Frame 0x7f0e9797b600, for file /usr/lib/python3.6/threading.py, line 884, in _bootstrap (self=<Network(_target=None, _name='Thread-3', _args=(), _kwargs={}, _daemonic=False, _ident=139700632770304, _tstate_lock=<_thread.lock at remote 0x7f0e9797c3a0>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9797c058>, acquire=<built-in method acquire of _thread.lock object at remote 0x7f0e9797c058>, release=<built-in method release of _thread.lock object at remote 0x7f0e9797c058>, _waiters=<collections.deque at remote 0x7f0e97979118>) at remote 0x7f0e979e5c50>, _flag=True) at remote 0x7f0e979e58d0>, _is_stopped=False, _initialized=True, _stderr=<_io.TextIOWrapper at remote 0x7f0e9dc8d708>, parent_thread=<_MainThread(_target=None, _name='MainThread', _args=(...), _kwargs={}, _daemonic=False, _ident=139700753811264, _tstate_lock=<_thread.lock at remote 0x7f0e9c43cb98>, _started=<Event(_cond=<Condition(_lock=<_thread.lock at remote 0x7f0e9c43c850>, acquire=<built-in method acquire of _thread.lock obj...(truncated)) at ../Python/ceval.c:753
#91 _PyFunction_FastCall (co=co@entry=0x7f0e9c447420, args=<optimized out>,
args@entry=0x7f0e96974e10, nargs=nargs@entry=1,
globals=globals@entry={'__name__': 'threading', '__doc__': "Thread module emulating a subset of Java's threading model.", '__package__': '', '__loader__': <SourceFileLoader(name='threading', path='/usr/lib/python3.6/threading.py') at remote 0x7f0e9c438160>, '__spec__': <ModuleSpec(name='threading', loader=<...>, origin='/usr/lib/python3.6/threading.py', loader_state=None, submodule_search_locations=None, _set_fileattr=True, _cached='/usr/lib/python3.6/__pycache__/threading.cpython-36.pyc', _initializing=False) at remote 0x7f0e9c438198>, '__file__': '/usr/lib/python3.6/threading.py', '__cached__': '/usr/lib/python3.6/__pycache__/threading.cpython-36.pyc', '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <type at remote 0xb580f8>, '__spec__': <ModuleSpec(name='builtins', loader=<type at remote 0xb580f8>, origin=None, loader_state=None, submodule_search_locations=None,...(truncated)) at ../Python/ceval.c:4906
#92 0x00000000005582c2 in _PyFunction_FastCallDict (
func=func@entry=<function at remote 0x7f0e9c3f5b70>,
args=args@entry=0x7f0e96974e10, nargs=nargs@entry=1,
kwargs=kwargs@entry=0x0) at ../Python/ceval.c:5008
#93 0x0000000000459c11 in _PyObject_FastCallDict (kwargs=0x0, nargs=1,
args=0x7f0e96974e10, func=<function at remote 0x7f0e9c3f5b70>)
at ../Objects/abstract.c:2310
#94 _PyObject_Call_Prepend (func=<function at remote 0x7f0e9c3f5b70>,
obj=<optimized out>, args=(), kwargs=0x0) at ../Objects/abstract.c:2373
#95 0x000000000045969e in PyObject_Call (
func=<method at remote 0x7f0e9bbd4dc8>, args=<optimized out>,
kwargs=<optimized out>) at ../Objects/abstract.c:2261
#96 0x00000000005503c1 in PyEval_CallObjectWithKeywords (func=<optimized out>,
args=<optimized out>, kwargs=<optimized out>) at ../Python/ceval.c:4744
#97 0x000000000058e2c2 in t_bootstrap (boot_raw=0x7f0e9797c2b0)
at ../Modules/_threadmodule.c:998
#98 0x00007f0e9d8c47fc in start_thread (arg=0x7f0e96975700)
at pthread_create.c:465
#99 0x00007f0e9ca4bb5f in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
__deets__
User
Beiträge: 14493
Registriert: Mittwoch 14. Oktober 2015, 14:29

Ich gehe genau so vor - set_trace an der Stelle wo ich einen breakpoint benötige.

Der Crash hat etwas mit readline zu tun. Ein Modul bzw Bibliothek das irgendwie notorisch Ärger macht.

Wenn man an die Stelle des Crash schaut - https://github.com/python/cpython/blob/ ... ine.c#L903 - steht da anderer Code als im Traceback. Das könnte bedeuten das da Bugs gefixt wurden. Ein Ausweg könnte also ein Update von Python sein.

Falls das nicht geht oder das Problem bestehen bleibt: der Code wird als Teil des Modul setups durchgeführt. Da der nur im Thread kracht, Probier doch mal einen breakpoint ganz am Anfang des programmlaufs im main thread zu setzen. Den einfach weiter laufen lasssen, und dann geht vielleicht der set_trace im thread problemlos durch.
Antworten