resolc -O0 never terminates on a reachable empty-body infinite loop
Maintainers usually reply within 3 days
@xermicus is already working on this.
Since Nov 13, 2026.
Assessment
This issue has not been assessed yet.
Description
Never returns and writes no artifact; the process keeps one core busy and must be killed.
// SPDX-License-Identifier: UNLICENSE
pragma solidity ^0.8.34;
contract C { constructor() { while (true) {} } }
$ resolc -O1 --bin C.sol -o out1
Compiler run successful. Artifact(s) can be found in directory "out1".
$ resolc -O0 --bin C.sol -o out0
# never returns: ~100% of one core, flat RSS, out0/ stays empty (killed after 120 s)
Expected behavior: resolc -O0 terminates and writes out0/C.sol:C.pvm, as -O1 does.
Git commit: 2942b3a9 (v1.5.0)
- Dominant language
- Rust
- Stars
- 104
- Forks
- 28
- Avg merge
- 5d 14h
- Merged PRs (30d)
- 24
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from paritytech/revive
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
paritytech/revive#749 ·
Maintainers usually reply within 3 days
-
Difficulty 3/5 1-2 days Newbie friendliness 66/100
paritytech/revive#752 ·
Maintainers usually reply within 3 days
-
NY: ICEs on a variable assigned in a bare Yul block and read after itPossibly taken @elle-j claimed this 14 days ago. Open
paritytech/revive#733 · 1 assignee ·
Maintainers usually reply within 3 days
-
`--libraries` fails for a library found through `--include-path`May be free again @xermicus claimed this 30 days ago, and no pull request is open. Openbug
paritytech/revive#717 · 1 assignee ·
Maintainers usually reply within 3 days
-
Standard JSON fails on `amsterdam` with `settings.experimental: true`May be free again @xermicus claimed this 35 days ago, and no pull request is open. Openbug
paritytech/revive#712 · 1 assignee ·
Maintainers usually reply within 3 days
All issues in paritytech/revive
Similar issues
-
Bash init calls `cygpath` unconditionally on Windows, which breaks non-Cygwin shells like `brush`Possibly taken @iliqiliev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ajeetdsouza/zoxide#1381 ·
Maintainers usually reply within 5 days
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
swc-project/swc-next-issues#1043 ·
-
compiler P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
HerringtonDarkholme/hd-lang#2436 · 2 comments ·
Maintainers usually reply within 1 day