Skip to content

Draft: address unsafe pointer operations (segfaults on nightly)#196

Closed
sefffal wants to merge 6 commits intoJuliaAstro:masterfrom
sefffal:format
Closed

Draft: address unsafe pointer operations (segfaults on nightly)#196
sefffal wants to merge 6 commits intoJuliaAstro:masterfrom
sefffal:format

Conversation

@sefffal
Copy link
Member

@sefffal sefffal commented Apr 30, 2024

These changes begin to address the unsafe operations used in this package.
Currently these just deal with the most obvious issues.
Repeatedly running tests on nightly reveal that there are still segfaults. I believe we are leaking pointers to C somewhere. This will also have to be addressed.

Note that tests are failing due to an unrelated issue with complex arrays that also impacts nightly.

Edit: there are some unrelated changes in the first three commits I will excise from this PR.

@jishnub
Copy link
Member

jishnub commented Jun 6, 2024

I think it's fine to remove the reinterpreted complex tests (I was the one who had added these). These aren't relevant for the package as such.

@sefffal
Copy link
Member Author

sefffal commented Apr 29, 2025

Doing some digging again, and it looks like one of the causes of errors is FITS tables with string columns, due, I'm guessing, to changes to how the String constructor works on Julia 1.11+. I think something changed about whether String truncates the buffer, or something, right?

@jishnub
Copy link
Member

jishnub commented May 22, 2025

The issue on master has been fixed now, so this PR should not be necessary anymore.

@jishnub jishnub closed this May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants