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 — BUG: warm finfo cache with float64 on 2.5.x (gh-32947) by Rvish-glitch · Pull Request #33117 · numpy/numpy

Conversation

@Rvish-glitch

@Rvish-glitch Rvish-glitch commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Mini-PR for 2.5.x as suggested by @seberg in #33049.

Fills _finfo_cache with float64 at import time in getlimits.py so calling finfo(longdouble) first won't alias float64 on platforms where sizeof(longdouble) == sizeof(double), and adds the regression test.

Fixes gh-32947 on 2.5.x.

AI Disclosure

None. Directly implemented and tested manually based on @seberg's suggestion in #33049.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added the 00 - Bug label Oct 22, 2026
@Rvish-glitch
BUG: warm finfo cache with float64 to avoid aliasing (numpygh-32947)
ed94f86
On platforms where sizeof(longdouble) == sizeof(double) (such as MSVC Windows and macOS ARM64), np.dtype(np.longdouble) == np.dtype(np.float64). Because 2.5.x keys _finfo_cache solely by dtype, calling finfo(longdouble) first overwrote the cache entry with LongDoubleDType.

Pre-populating finfo(float64) at module import time ensures float64 is cached first and is never corrupted by subsequent longdouble calls, preventing the regression on 2.5.x.
@Rvish-glitch
Rvish-glitch force-pushed the finfo-warm-cache-2.5.x branch from 0a8a95b to ed94f86 Compare October 22, 2026 06:30
@Rvish-glitch

Rvish-glitch commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Hi @seberg,

This is the standalone backport for the 2.5.x maintenance branch pre-warming _finfo_cache with float64 as discussed in #33049.

All core and platform test suites (including clang_ASAN and Windows/macOS/Linux) are passing. The 3 failing matrix jobs (Build Pixi packages (*, asan)) are due to the upstream Cython/CPython 3.15 ASan recipe issue and unrelated to this PR.

Ready for review whenever you have a moment.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seberg

seberg commented Oct 23, 2026

Copy link
Copy Markdown
Member

@charris are these expected failures on the 2.5.x branch? The work-around itself looks all good to me.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seberg seberg added the 08 - Backport Used to tag backport PRs label Oct 23, 2026
@charris

charris commented Oct 23, 2026

Copy link
Copy Markdown
Member

are these expected failures on the 2.5.x branch?

Pixi has had problems lately that seem network related. It is also annoyingly slow, but that is unrelated :) Let's see if this resolves on a rerun.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris

charris commented Oct 23, 2026

Copy link
Copy Markdown
Member

Might want to update the pixi version from main.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris

charris commented Oct 23, 2026

Copy link
Copy Markdown
Member

The pixi problems are unrelated, see #33130.

seberg reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris
charris merged commit 99e8036 into numpy:maintenance/2.5.x Oct 23, 2026
98 of 110 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@charris

charris commented Oct 23, 2026

Copy link
Copy Markdown
Member

Thanks @Rvish-glitch .

Rvish-glitch reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

00 - Bug 08 - Backport Used to tag backport PRs

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Rvish-glitch @seberg @charris
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — 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.