rksm / hot-lib-reloader-rs

Reload Rust code without app restarts. For faster feedback cycles.
MIT License
597 stars 19 forks source link

segmentation fault #20

Open GOVYANSONG opened 2 years ago

GOVYANSONG commented 2 years ago

I was trying to use this library for a project that uses syscalls, libc, nix etc (e.g. shared memory, mutex). also, tokio async and unsafe are used across my project. It threw segmentation fault with hot reloading. i am looking some guidance on suitability of using this library.

rksm commented 2 years ago

Without any details I can't help.

GOVYANSONG commented 2 years ago

Sorry for lack of details. please find attached here below a reproducible demo to illustrate the issue. once uncompressed, cli instruction can be found inside README.md.

project structure: app\ main.rs lib\ shell.rs pub async fn mainshell() -> Result<(), Error>

demo.tar.gz

rksm commented 2 years ago

Thank you for the code. What operating system are you using?

GOVYANSONG commented 2 years ago

Linux mk8smaster 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux