Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Got stack overflow when running debug binary #10047

Closed
kinosang opened this issue Oct 18, 2021 · 5 comments
Closed

Got stack overflow when running debug binary #10047

kinosang opened this issue Oct 18, 2021 · 5 comments
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.

Comments

@kinosang
Copy link

kinosang commented Oct 18, 2021

Always got stack overflow exception when running under debug profile.

running command line:

--tmp --alice --chain dev --unsafe-ws-external --rpc-cors all --unsafe-rpc-external

frames:
图片

spawn_handle.spawn_blocking("network-worker", async move {
if network_start_rx.await.is_err() {
log::warn!(
"The NetworkStart returned as part of `build_network` has been silently dropped"
);
// This `return` might seem unnecessary, but we don't want to make it look like
// everything is working as normal even though the user is clearly misusing the API.
return
}
future.await
});

https://github.com/parami-protocol/parami-blockchain/blob/fbd66da50ce463fc755533ab3b1c70a737efb893/node/src/service.rs#L203-L212

@github-actions github-actions bot added the J2-unconfirmed Issue might be valid, but it’s not yet known. label Oct 18, 2021
@kinosang
Copy link
Author

temporarily solved by increasing the stack size (via thread spawn)

https://github.com/parami-protocol/parami-blockchain/blob/991d76bb49be2e5f339a678f96b5a1d0aa34d2cf/node/src/main.rs#L13-L17

@sander2
Copy link
Contributor

sander2 commented Oct 28, 2021

I ran into the same problem when trying to run integration tests with an embedded client, I think it might (partly) caused by tokio-rs/tokio#4202

@sander2
Copy link
Contributor

sander2 commented Nov 1, 2021

Might be resolved after upgrading to a tokio version that includes tokio-rs/tokio#4203

@bkchr
Copy link
Member

bkchr commented Nov 1, 2021

@kinosang can you try by running cargo update -p tokio and report back?

@kinosang
Copy link
Author

kinosang commented Nov 1, 2021

@sander2 @bkchr seems work well now.

@kinosang kinosang closed this as completed Nov 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.
Projects
None yet
Development

No branches or pull requests

3 participants