Open Fogapod opened 9 months ago
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-C", "link-arg=--ld-path=/usr/bin/mold", "-C", "target-cpu=native"]
removing "-C", "target-cpu=native"
fixed this. i have no idea how it bugged out in a way game couldnt connect to container. there is a bug in linux or linkers or clang
Any network indirection (connecting to remote server or local/remote container) prevents client from spawning.
docker server command:
run --name ssnt --network host --rm -e RUST_LOG=debug ssnt --public-address 127.0.0.1
(broken with both--network host
and manual port)After attempting to spawn as any role both client and server log connection once:
Next server log should be
INFO ssnt::body: Created creature
but it never gets there. Client is stuck in main menu. Hosting server outside container works and i cannot reproduce bug.I tested a bunch of things so far, none of these change behaviour (local works, container doesnt):
--no-default-features
without containerI ran client in pdb and it seem to be stuck in some deadlock:
Traceback
```rust #0 syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38 #1 0x00005555595cc101 in std::sys::unix::futex::futex_wait () at library/std/src/sys/unix/futex.rs:62 #2 std::sys::unix::locks::futex_condvar::Condvar::wait_optional_timeout () at library/std/src/sys/unix/locks/futex_condvar.rs:49 #3 std::sys::unix::locks::futex_condvar::Condvar::wait () at library/std/src/sys/unix/locks/futex_condvar.rs:33 #4 0x00005555594f9530 in std::sync::condvar::Condvar::wait<()> (self=0x55555a7026e0, guard=...) at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sync/condvar.rs:189 #5 parking::Inner::park (self=0x55555a7026d0, timeout=...) at src/lib.rs:358 #6 0x00005555594b369a in futures_lite::future::block_on::{closure#0}I eventually discovered that
"-C", "target-cpu=native"
rustc flag causes this to happen. I am not sure how to debug this further