https://linen.dev logo
Segmentation fault
# help
e
Hi, I had a project deployed in shuttle, and after doing some code cleaning, I wanted to try it locally, so when I ran:
cargo shuttle run
I got the following output:
Copy code
...
    Finished dev [unoptimized + debuginfo] target(s) in 28.19s

Starting realworld-fullstack on http://127.0.0.1:8000
Segmentation fault
However, when I run
cargo run
or
cargo shuttle deploy
it works :/ I'm using Ubuntu 22.04 in WSL, not sure how can I provide more information for this problem. EDIT: I forgot to mention that it's rare for me when shuttle compiles every time the binary, even though there are no changes in the code
w
Hey @enough-exabyte-92081 - I've seen this before and the team is working on a patch AFAIK.
Which framework are you using? Furthermore, if you go for a different framework and just try to run the example project (which is automatically created with the
init
command) do you also get segfaults?
e
Yes! it happens also with the init command, I'm using actix web
okay, so it's in progress, thanks
m
I got the segfaults too. I found out that I got them when building with the nightly rust toolchain. When moving to stable, I got a "Database error" instead, even though I don't use databases. FYI, for me this was even on the init command when using rocket
d
Hi, I'm also having this in an axum project that was working with 0.8 version
now I get
Segmentation fault
whenever I try to run it
I'm on Win11 WSL Ubuntu 22.04
it's just an example
with database
wait, I just reinstalled the shuttle cli (--force) and it seems that it works
never mind
m
@enough-exabyte-92081 do you still experience the segfaults? I had them too but after upgrading to cargo-shuttle 0.11.0, it works for me.
e
I'm gonna try it now, I've been quite busy lately, I'll ping you when I finish my tests