c-ward icon indicating copy to clipboard operation
c-ward copied to clipboard

Update to origin 0.19.0.

Open sunfishcode opened this issue 1 year ago • 4 comments

sunfishcode avatar Jul 08 '24 14:07 sunfishcode

Fails with

inlinable function call in a function with debug info must have a !dbg location
  call void @_Unwind_Resume(ptr %197) #15
rustc-LLVM ERROR: Broken module found, compilation aborted!
error: could not compile `unwinding` (lib)

Probably a compiler bug.

sunfishcode avatar Jul 08 '24 14:07 sunfishcode

Does updating unwinding-rs work?

bjorn3 avatar Jul 08 '24 14:07 bjorn3

It's already using unwinding v0.2.2, which is the latest version.

sunfishcode avatar Jul 08 '24 14:07 sunfishcode

https://github.com/rust-lang/rust/issues/101121 has an identical error message but was supposedly fixed over a year ago already.

bjorn3 avatar Jul 08 '24 15:07 bjorn3

With the latest nightly Rust, it now passes on x86-64 and i686, but it still fails on riscv64.

sunfishcode avatar Aug 15 '24 15:08 sunfishcode

I can't reproduce the aarch64 failure locally.

Edit: I can't reproduce it on x86_64 cross compiling to aarch64, but I can reproduce it on aarch64 natively.

bjorn3 avatar Aug 20 '24 19:08 bjorn3

I was able to reproduce crash independently of c-ward, but only when incr comp is disabled. I opened https://github.com/nbdd0121/unwinding/issues/34 to track it on the unwinding side.

bjorn3 avatar Aug 20 '24 19:08 bjorn3

Adding these [profile.dev.package.unwinding] workarounds to all users isn't great, but I think it's the best option for now.

sunfishcode avatar Aug 22 '24 14:08 sunfishcode