Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] crash in the aptos move coverage tool #15032

Open
Rqnsom opened this issue Oct 21, 2024 · 0 comments
Open

[Bug] crash in the aptos move coverage tool #15032

Rqnsom opened this issue Oct 21, 2024 · 0 comments
Labels
bug Something isn't working stale-exempt Prevents issues from being automatically marked and closed as stale

Comments

@Rqnsom
Copy link
Contributor

Rqnsom commented Oct 21, 2024

πŸ› Bug

While performing some test with the move-mutation-tool, I encountered a crash here:

➜  aptos-framework git:(main) βœ— aptos move coverage source --module block
thread 'main' panicked at third_party/move/tools/move-coverage/src/source_coverage.rs:319:71:
attempt to subtract with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

To reproduce

cd aptos-core/aptos-move/framework/aptos-framework;
aptos move test --coverage;
aptos move coverage source --module block;
thread 'main' panicked at third_party/move/tools/move-coverage/src/source_coverage.rs:319:71:
attempt to subtract with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Stack trace/error message

$ aptos-framework git:(main) βœ— aptos move coverage source --module block
thread 'main' panicked at third_party/move/tools/move-coverage/src/source_coverage.rs:319:71:
attempt to subtract with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Expected Behavior

No crash. The coverage output is expected instead.

System information

Please complete the following information:

$ aptos-framework git:(main) βœ— aptos -V
aptos 4.2.3
$ uname -moprsv
Darwin 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:37:13 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8112 arm64 arm
$ ➜  aptos-framework git:(main) βœ— rustc -V
rustc 1.78.0 (9b00956e5 2024-04-29)
@Rqnsom Rqnsom added the bug Something isn't working label Oct 21, 2024
@brmataptos brmataptos added the stale-exempt Prevents issues from being automatically marked and closed as stale label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale-exempt Prevents issues from being automatically marked and closed as stale
Projects
Status: πŸ†• New
Development

No branches or pull requests

2 participants