frawk is built using --no-default-features (to prevent the known jemalloc issue), in debug mode with rust 1.70 (that landed the alignment check in debug),
C:\[...]\Documents\frawk>target\debug\frawk -B cranelift "{print $1}" Cargo.toml
thread 'main' panicked at 'misaligned pointer dereference: address must be a multiple of 0x10 but is 0x419779fffe', src\codegen\intrinsics.rs:953:19
stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library\std\src\panicking.rs:578
1: core::panicking::panic_fmt
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library\core\src\panicking.rs:67
2: core::panicking::panic_misaligned_pointer_dereference
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library\core\src\panicking.rs:174
3: frawk::codegen::intrinsics::load_var_int
at .\src\codegen\intrinsics.rs:953
4: <unknown>
When running in release mode, UB happens and nothing is printed
C:\[...]\Documents\frawk>target\release\frawk -B cranelift "{print $1}" Cargo.toml
C:\[...]\Documents\frawk>
Using the interpreter backend works as expected:
C:\[...]\Documents\frawk>target\debug\frawk -B interp "{print $1}" Cargo.toml
[package]
name
version
authors
edition
[...]
I don't really know how to debug further, I'd love to help if you got some directions for me.
frawk is built using
--no-default-features(to prevent the knownjemallocissue), 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.