GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build fails with `--enable-pystats --with-pydebug` (use of Py_SIZE on PyLongObject) · Issue #104184 · python/cpython

build fails with --enable-pystats --with-pydebug (use of Py_SIZE on PyLongObject) #104184

New issue
Copy link
New issue
Copy link
Closed
#104217
Closed
build fails with --enable-pystats --with-pydebug (use of Py_SIZE on PyLongObject)#104184
#104217
Copy link
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@carljm
carljm
opened on May 5, 2023
Issue body actions
> ./configure --enable-pystats --with-pydebug
> make -j
...
_bootstrap_python: ../../cpython/Include/object.h:215: Py_SIZE: Assertion `ob->ob_type != &PyLong_Type' failed.

It looks like #102464 missed removing this use of Py_SIZE on a PyLongObject because it is gated behind #ifdef Py_STATS.

When debug is enabled, this causes an assertion to fail. Without assertions, I think it can cause inaccurate stats collection for STORE_SUBSCR specialization failures.

Linked PRs

  • gh-104184: fix building --with-pydebug --enable-pystats #104217

Activity

  1. carljm
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on May 5, 2023
  2. carljm
    added a commit that references this issue on May 5, 2023

    pythongh-104184: fix building --with-pydebug --enable-pystats

    61b7319
  3. carljm
    closed this as completedin #104217on May 9, 2023
  4. carljm
    added 4 commits that reference this issue on May 9, 2023

    gh-104184: fix building --with-pydebug --enable-pystats (#104217)

    afe7703

    Merge branch 'main' into fixsendfamily

    e40071d

    Merge branch 'main' into supermon

    c48eee3

    Merge branch 'main' into fixloadsuperspec

    cf11908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.