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

Fix kron indexing for types without a unique zero #56229

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

jishnub
Copy link
Contributor

@jishnub jishnub commented Oct 18, 2024

This fixes a bug introduced in #55941.

We may also take this opportunity to limit the scope of the @inbounds annotations, and also use axes to compute the bounds instead of hard-coding them.

The real "fix" here is on line 767, where l in 1:nA should have been l in 1:mB. Using axes avoids such errors, and makes the operation safer as well.

@jishnub jishnub added linear algebra Linear algebra arrays [a, r, r, a, y, s] bugfix This change fixes an existing bug backport 1.11 Change should be backported to release-1.11 labels Oct 18, 2024
@jishnub jishnub merged commit b01095e into master Oct 21, 2024
10 of 13 checks passed
@jishnub jishnub deleted the jishnub/kronfix branch October 21, 2024 05:58
KristofferC pushed a commit that referenced this pull request Oct 21, 2024
This fixes a bug introduced in
#55941.

We may also take this opportunity to limit the scope of the `@inbounds`
annotations, and also use `axes` to compute the bounds instead of
hard-coding them.

The real "fix" here is on line 767, where `l in 1:nA` should have been
`l in 1:mB`. Using `axes` avoids such errors, and makes the operation
safer as well.
KristofferC pushed a commit that referenced this pull request Oct 29, 2024
This fixes a bug introduced in
#55941.

We may also take this opportunity to limit the scope of the `@inbounds`
annotations, and also use `axes` to compute the bounds instead of
hard-coding them.

The real "fix" here is on line 767, where `l in 1:nA` should have been
`l in 1:mB`. Using `axes` avoids such errors, and makes the operation
safer as well.

(cherry picked from commit b01095e)
@topolarity
Copy link
Member

Does this fix the segfault reported in #55941 (comment)?

If so, this should be backported to 1.10 since #55941 is marked for backport

@jishnub
Copy link
Contributor Author

jishnub commented Oct 30, 2024

Yes this fixes the segfault. I've removed the backport label on #55941, since, in hindsight, this was not exactly a bugfix.

@KristofferC KristofferC removed the backport 1.11 Change should be backported to release-1.11 label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s] bugfix This change fixes an existing bug linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants