You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I changed the value of validator_network.max_frame_size in the node configuration file node.yaml. Specifically, I change it to a value that is less than 64, and after starting the node, an attempt to subtract with overflow exception occurred during runtime.
To reproduce
Code snippet to reproduce
1.Change the value of validator_network.max_frame_size in the node configuration file node.yaml to less than 64.
2. Restart the node to update the config.
3. An attempt to subtract with overflow exception occurred when the node used the value of max_frame_size, causing the node to crash.
Stack trace/error message
Here is the full log. node.log
Below is part of the log.
details = """
panicked at network/framework/src/protocols/stream/mod.rs:164:30:
attempt to subtract with overflow"""
backtrace = """
0: 0x55c931eddd9b - backtrace::backtrace::libunwind::trace::h5328474097f1a34f
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.69/src/backtrace/libunwind.rs:93:5
backtrace::backtrace::trace_unsynchronized::hee449ad1e679b8a6
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.69/src/backtrace/mod.rs:66:5
1: 0x55c931eddd22 - backtrace::backtrace::trace::h06b6b76cc8d69cd8
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.69/src/backtrace/mod.rs:53:14
2: 0x55c931efa033 - backtrace::capture::Backtrace::create::h83aedfa4fab1c34d
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.69/src/capture.rs:176:9
3: 0x55c931ef9f64 - backtrace::capture::Backtrace::new::h43b8b2cdbfb4780e
Expected Behavior
Aptos is able to handle almost all misconfiguration issues and provides user-friendly relevant prompts. Therefore, I believe this overflow exception should be handled to prevent the node from crashing unexpectedly.
System information
Please complete the following information:
Aptos Core Version 4.1.0
Rust Version rustc 1.81.0 (eeb90cda1 2024-09-04)
Computer OS Ubuntu 22.04.3 LTS
The text was updated successfully, but these errors were encountered:
🐛 Bug
I changed the value of validator_network.max_frame_size in the node configuration file node.yaml. Specifically, I change it to a value that is less than 64, and after starting the node, an
attempt to subtract with overflow
exception occurred during runtime.To reproduce
Code snippet to reproduce
1.Change the value of validator_network.max_frame_size in the node configuration file node.yaml to less than 64.
2. Restart the node to update the config.
3. An
attempt to subtract with overflow
exception occurred when the node used the value of max_frame_size, causing the node to crash.Stack trace/error message
Here is the full log.
node.log
Below is part of the log.
Expected Behavior
Aptos is able to handle almost all misconfiguration issues and provides user-friendly relevant prompts. Therefore, I believe this overflow exception should be handled to prevent the node from crashing unexpectedly.
System information
Please complete the following information:
The text was updated successfully, but these errors were encountered: