[racket-users] How do I debug this "invalid memory reference"?

2021-06-02 Thread Sage Gerard
Hi all, Consider this small FFI that currently works only on GNU/Linux. https://github.com/zyrolasting/xiden/blob/libcrypto/crypto.rkt https://github.com/zyrolasting/xiden/blob/libcrypto/crypto/crypto.c `raco test` intermittently fails this module with "invalid memory reference. Some debugging

[racket-users] Re: How do I debug this "invalid memory reference"?

2021-06-02 Thread Sage Gerard
Credit to @samth on the Discord for noticing that I did not use `_bytes/nul-terminated` on Racket CS byte strings. Doing so fixed the issue. Thanks, Sam! On 6/2/21 10:21 AM, Sage Gerard wrote: > Hi all, > > Consider this small FFI that currently works only on GNU/Linux. > >