Closed flier closed 6 years ago
Tried reproducing but had trouble accessing original code, got 404 for the github link though - would it be possible to get a case as a playground link etc, or would that be hard ?thank you !
sure, you can use the commit to reproduce the issue. It will cause rustc
hang
$ rustc --version --verbose rustc 1.23.0 (766bd11c8 2018-01-01) binary: rustc commit-hash: 766bd11c8a3c019ca53febdcd77b2215379dd67d commit-date: 2018-01-01 host: x86_64-apple-darwin release: 1.23.0 LLVM version: 4.0
$ git clone https://github.com/flier/rust-jit.git && cd rust-jit $ git checkout d4206d3a82f5c05533e17c8167da28d5481bade6 $ LLVM_SYS_40_PREFIX=/usr/local/opt/llvm@4/ cargo run --example=kaleidoscope-chapter2
Duplicate of #39684
rustc/compiler deadlock when compile recursive function
I tried this code:
https://github.com/flier/rust-jit/blob/develop/llvm-jit/examples/kaleidoscope-chapter2.rs#L67
I expected to see this happen: compile code or show error
Instead, this happened: rustc hang (CPU 100%)
Meta
rustc --version --verbose
:Backtrace: