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

Indefinite compilation process with larger codebases #172

Open
Brianspha opened this issue Jan 21, 2025 · 0 comments
Open

Indefinite compilation process with larger codebases #172

Brianspha opened this issue Jan 21, 2025 · 0 comments

Comments

@Brianspha
Copy link
Contributor

Brianspha commented Jan 21, 2025

I've found a bug/issue in revive when compiling large code bases. The issue appears with codebases with lots of files e.g like sablier-v2 which has 200+ files.

The issue manifests in two ways:

  1. Using the revive CLI test - the process hangs indefinitely its been 30+ minutes
  2. Using revive through foundry - immediately fails with "solc exit 1"

The lack of logs from standard_json in revive makes debugging challenging.

To reproduce:

  1. Clone the revive repository
  2. Download test files from here or here
  3. Replace contents in: revive/crates/solidity/src/tests/cli-tests/src/contracts/compiled
  4. Run make test-cli in the revive directory

The only way ive made it to work is by playing around with the env vars RUST\_MIN\_STACK and RUST\_MAX\_STACK to high values

Can you help investigate this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant