Skip to content
New issue

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

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

Already on GitHub? # to your account

SIGSEGV when using --ir-minimum with forge coverage command #9855

Closed
2 tasks done
Dhruv-Mishra opened this issue Feb 10, 2025 · 1 comment
Closed
2 tasks done

SIGSEGV when using --ir-minimum with forge coverage command #9855

Dhruv-Mishra opened this issue Feb 10, 2025 · 1 comment
Labels
T-bug Type: bug T-needs-triage Type: this issue needs to be labelled

Comments

@Dhruv-Mishra
Copy link

Dhruv-Mishra commented Feb 10, 2025

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.3.0 (5a8bd89 2024-12-20T08:46:21.555250780Z)

What version of Foundryup are you on?

foundryup: 0.3.0

What command(s) is the bug in?

forge coverage --ir-minimum

Operating System

Linux

Describe the bug

I get the SIGSEGV error when running the forge coverage --ir-minimum command.
Running just forge coverage seems to work fine. What could be the problems?

Here is the output when running forge coverage --ir-minimum:

$ forge coverage --ir-minimum

Warning: `--ir-minimum` enables viaIR with minimum optimization, which can result in inaccurate source mappings.
Only use this flag as a workaround if you are experiencing "stack too deep" errors.
Note that "viaIR" is production ready since Solidity 0.8.13 and above.
See more: https://github.com/foundry-rs/foundry/issues/3357
[⠊] Compiling...
[⠘] Compiling 390 files with Solc 0.8.25
Error: solc exited with signal: 11 (SIGSEGV) (core dumped)
<empty output>
@Dhruv-Mishra Dhruv-Mishra added T-bug Type: bug T-needs-triage Type: this issue needs to be labelled labels Feb 10, 2025
@github-project-automation github-project-automation bot moved this to Todo in Foundry Feb 10, 2025
@grandizzy grandizzy marked this as a duplicate of #9854 Feb 10, 2025
@grandizzy
Copy link
Collaborator

that's solc core dumping, please open issue in https://github.com/ethereum/solidity
Also, is better to tun forge coverage without --ir-minimum because it can result in inaccurate source mappings.
Thank you, if other questions please start a discussion in tg support channel or github.

@grandizzy grandizzy closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in Foundry Feb 10, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
T-bug Type: bug T-needs-triage Type: this issue needs to be labelled
Projects
Status: Done
Development

No branches or pull requests

2 participants