Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on cpython 3.10 #11

Open
jojje opened this issue Aug 6, 2022 · 0 comments
Open

Crashes on cpython 3.10 #11

jojje opened this issue Aug 6, 2022 · 0 comments

Comments

@jojje
Copy link

jojje commented Aug 6, 2022

Repro:

  1. python crash_test.py
  2. python -m pydump crash_test.py.dump

Output:

python -m pydump crash_test.py.dump
Starting pdb...
Traceback (most recent call last):
  File "C:\app\anaconda3\envs\default\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\app\anaconda3\envs\default\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\dev\3rd\pydump\pydump.py", line 312, in <module>
    sys.exit(main() or 0)
  File "C:\dev\3rd\pydump\pydump.py", line 306, in main
    return debug_dump(
  File "C:\dev\3rd\pydump\pydump.py", line 114, in debug_dump
    post_mortem_func(tb)
  File "C:\app\anaconda3\envs\default\lib\pdb.py", line 1639, in post_mortem
    p.interaction(None, t)
  File "C:\app\anaconda3\envs\default\lib\pdb.py", line 351, in interaction
    if self.setup(frame, traceback):
  File "C:\app\anaconda3\envs\default\lib\pdb.py", line 214, in setup
    lineno = lasti2lineno(tb.tb_frame.f_code, tb.tb_lasti)
  File "C:\app\anaconda3\envs\default\lib\pdb.py", line 117, in lasti2lineno
    linestarts = list(dis.findlinestarts(code))
  File "C:\app\anaconda3\envs\default\lib\dis.py", line 458, in findlinestarts
    for start, end, line in code.co_lines():
AttributeError: 'FakeCode' object has no attribute 'co_lines'
@jojje jojje mentioned this issue Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant