Skip to content

Conversation

ruslandoga
Copy link
Contributor

fixes #209

@warmwaffles
Copy link
Member

I wonder if there is a test we can do to ensure this doesn't happen again. I believe this is the right solution. I think the only way would be to compile in arm64 and run the tests on that architecture. Wonder how hard that is to do with github actions?

@warmwaffles warmwaffles merged commit 3cfea58 into elixir-sqlite:main Oct 11, 2023
@ruslandoga
Copy link
Contributor Author

ruslandoga commented Oct 11, 2023

I might be wrong but I don't think it's arm64 specific. The pointer was misaligned on x86_64 as well, it's just that C and SQLite didn't care about it and Zig did (maybe because Zig uses SSE instructions in its standard lib, but those require 16-byte alignment...).

@warmwaffles
Copy link
Member

Ah

@ruslandoga ruslandoga deleted the malloc-size-size_t branch October 12, 2023 05:54
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.

[question] sqlite extension alignment problem in exqlite, but not in sqlite3
2 participants