firedancer-io/firedancer

Investigate why fddev fails to allocate shared memory region for fd_net_quic.wksp

Closed this issue · 4 comments

image

Version: v0.202.20016

Config:

name = "fd-anoushk"
user = "ubuntu"

[development]
    sandbox = false
    [development.netns]
        enabled = true
[tiles.net]
    interface = "veth_test_xdp_0"

[rpc]
    port = 8899
    full_api = true
    private = true

@ripatel-fd the error is most def due to the monitor_cmd_fn when it tries to join workspaces using fd_topo_join_workspaces. My suspicion is that the monitor process joins the workspace before the initliaze_workspaces is even called in run_firedancer

For now if we run the make run cmd without the --monitor it should work:

./build/native/gcc/bin/fddev dev --config src/app/fdctl/config/default.toml

Ohk I can confirm this is indeed the issue, we need to initialize the workspace before we fork into the firedancer and monitor process.

That's a good find, thank you @anoushk1234. Would you like to open a PR to fix or do you prefer if the FD team fixes it?

That's a good find, thank you @anoushk1234. Would you like to open a PR to fix or do you prefer if the FD team fixes it?

I already have the code so I'll open the PR into master, thanks.