Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Type object's ob_type does not get set when tp_bases is set before PyType_Ready #104614

Closed
Assignees
ericsnowcurrently
Labels
type-crashA hard crash of the interpreter, possibly with a core dump
@lysnikolaou

Description

@lysnikolaou

Bug report

This came up while testing numpy on 3.12. A bug report has been filed onnumpy/numpy#23766. It's happening due to#103912, which introducedan additional check fortp_bases not being NULL intype_ready_set_bases, which is called fromPyType_Ready.

numpy setstp_bases manually before callingPyType_Ready, which means that the afore-mentioned check succeeds, and so,the line that setsob_type does not get executed (it used to before#103912), which leads to a segmentation faultlater on, when trying to setmro.

This looks like a bug, but I'm not sure whether that's expected and numpy should be adjusted. If the latter is true, should a note be added in theWhat's new document?

Linked PRs

Metadata

Metadata

Labels

type-crashA hard crash of the interpreter, possibly with a core dump

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp