-
Notifications
You must be signed in to change notification settings - Fork 36
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
Windows / cranelift: misaligned pointer dereference #101
Comments
That's a useful check! I just re-ran the frawk test suite on 1.72 (nightly) and it passed on macos. A couple guesses:
I believe I can get a windows repro soon-ish, it'll just take a little time. |
I think this may be related to #101, in any case it's the correct default anyway.
|
Something odd is definitely going on here. I was able to repro However the error indicates that the underlying I'll have to think about this more... I have very little Windows debugging experience, and I may be missing something obvious here. I can try asking around though. |
Just a quick update: I believe I am misaligning stack slots in cranelift. I need to add more padding there. It's definitely a bug; not sure if it's the bug yet. |
frawk is built using
--no-default-features
(to prevent the knownjemalloc
issue), in debug mode with rust 1.70 (that landed the alignment check in debug),When running in release mode, UB happens and nothing is printed
Using the interpreter backend works as expected:
I don't really know how to debug further, I'd love to help if you got some directions for me.
The text was updated successfully, but these errors were encountered: