Skip to content

3.11a7 CTracer compilation fails #1367

Closed

Description

@reaperhulk

Under Python 3.11.0a7 the current coverage release fails to successfully compile the CTracer due to changes in the underlying PyCodeObject representation. python/cpython#91666 is probably a good place to start looking into this if you weren't already aware of the changes.

coverage/ctracer/tracer.c: In function ‘CTracer_handle_call’:
coverage/ctracer/tracer.c:533:46: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_code’
  533 |     PyObject * pCode = MyFrame_GetCode(frame)->co_code;
      |                                              ^~
coverage/ctracer/tracer.c: In function ‘CTracer_handle_return’:
coverage/ctracer/tracer.c:701:54: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_code’
  701 |             PyObject * pCode = MyFrame_GetCode(frame)->co_code;
      |                                                      ^~

As always, thank you so much for the most valuable package in Python. 😄

Activity

  1. nedbat commented on May 2, 2022

    @nedbat
    Member

    I've fixed the compilation errors in the nedbat/three-eleven-beta branch, but the results are wrong for generators. I'm not sure what detail I'm missing. @markshannon? @vstinner?

  2. vstinner commented on May 2, 2022

    @vstinner

    See also my WIP PR: #1353

  3. moved this to Not quite ready yet in DELETEon May 12, 2022
  4. added this to DELETE and removed this from DELETEon May 12, 2022
  5. nedbat commented on May 12, 2022

    @nedbat
    Member

    This is fixed in 956f0fd.

  6. nedbat commented on May 13, 2022

    @nedbat
    Member

    This is now released as part of coverage 6.3.3.

  7. added a commit that references this issue on Aug 24, 2022
  8. added a commit that references this issue on May 11, 2026
  9. added a commit that references this issue on May 14, 2026
  10. added a commit that references this issue on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions