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

check-block sometimes Segmentation fault: 11 #4913

Closed
xlc opened this issue Feb 13, 2020 · 3 comments · Fixed by #4929
Closed

check-block sometimes Segmentation fault: 11 #4913

xlc opened this issue Feb 13, 2020 · 3 comments · Fixed by #4929
Assignees
Labels
I3-bug The node fails to follow expected behavior.

Comments

@xlc
Copy link
Contributor

xlc commented Feb 13, 2020

$ ./target/debug/substrate check-block --dev 2 --pruning=archive
2020-02-13 22:59:06 Importing 1 blocks
2020-02-13 22:59:08 Imported 1 blocks. Best: #6
Completed in 1256 ms.
Segmentation fault: 11

But seems working regardless. I guess some exit handler not configured correctly?
Also saw a few instance where it didn't seg fault, so some timing / ordering issue.

And it will complain pruning mode is not achieve if I didn't specify --pruning=archive, which seems redundant.

@arkpar arkpar self-assigned this Feb 13, 2020
@arkpar
Copy link
Member

arkpar commented Feb 13, 2020

This is caused by rust-lang/futures-rs#1470 (duplicate of rust-lang/futures-rs#1349)
The fact that ThreadPool leaves threads running after being dropped is totally unexpected. Main thread terminates while the thread pool tasks are still being cleaned up.
I'll see if a workaround is possible.

@arkpar arkpar added the I3-bug The node fails to follow expected behavior. label Feb 13, 2020
@cecton
Copy link
Contributor

cecton commented Feb 13, 2020

oh yes this is the same bug! On my machine it displays like this:

[134] [17:04:39] ~/r/substrate cecton-cli-service-configurations > ./target/debug/substrate check-block --dev 2 --pruning=archive
2020-02-13 18:04:42 Importing 1 blocks
2020-02-13 18:04:44 Imported 1 blocks. Best: #3
Completed in 1213 ms.
pure virtual method called
terminate called without an active exception
fish: “./target/debug/substrate check-…” terminated by signal SIGABRT (Abort)

@cecton cecton self-assigned this Feb 14, 2020
@cecton
Copy link
Contributor

cecton commented Feb 14, 2020

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I3-bug The node fails to follow expected behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants