hot-lib-reloader-rs icon indicating copy to clipboard operation
hot-lib-reloader-rs copied to clipboard

segmentation fault

Open GOVYANSONG opened this issue 2 years ago • 4 comments

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.

GOVYANSONG avatar Sep 19 '22 17:09 GOVYANSONG

Without any details I can't help.

rksm avatar Sep 21 '22 15:09 rksm

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

GOVYANSONG avatar Sep 21 '22 17:09 GOVYANSONG

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

rksm avatar Sep 21 '22 20:09 rksm

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

GOVYANSONG avatar Sep 21 '22 21:09 GOVYANSONG