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(forge): coverage "Compiler run failed" - Stack too deep #4359

Closed
2 tasks done
0xPhaze opened this issue Feb 15, 2023 · 1 comment
Closed
2 tasks done

bug(forge): coverage "Compiler run failed" - Stack too deep #4359

0xPhaze opened this issue Feb 15, 2023 · 1 comment
Labels
T-bug Type: bug

Comments

@0xPhaze
Copy link

0xPhaze commented Feb 15, 2023

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (1a56901 2023-02-15T00:05:20.802314Z)

What command(s) is the bug in?

forge coverage

Operating System

macOS (Apple Silicon)

Describe the bug

Running forge coverage on https://github.com/gakonst/v3-periphery-foundry produces a "Stack too deep" error, while forge test is able to run. Tried playing around with the optimizer settings and via-ir, to no avail.

lain@k v3-periphery % forge coverage
[⠢] Compiling...
[⠰] Compiling 132 files with 0.7.6
[⠔] Solc 0.7.6 finished in 2.20s
Error: 
Compiler run failed
CompilerError: Stack too deep when compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack.


lain@k v3-periphery % forge test    
[⠆] Compiling...
No files changed, compilation skipped

Running 1 test for contracts/foundry-tests/utils/Path.sol:PathsTest
[PASS] testRoundtrip() (gas: 4222)
Test result: ok. 1 passed; 0 failed; finished in 513.42µs
@0xPhaze 0xPhaze added the T-bug Type: bug label Feb 15, 2023
@gakonst gakonst added this to Foundry Feb 15, 2023
@github-project-automation github-project-automation bot moved this to Todo in Foundry Feb 15, 2023
@0xPhaze
Copy link
Author

0xPhaze commented Feb 15, 2023

Duplicate of #3873

@0xPhaze 0xPhaze closed this as completed Feb 15, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in Foundry Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

No branches or pull requests

1 participant