Bug 2045116 - rust compiler crashes while compiling tokei doctests on armhfp with LLVM 13
Summary: rust compiler crashes while compiling tokei doctests on armhfp with LLVM 13
Keywords:
Status: CLOSED DUPLICATE of bug 2086106
Alias: None
Product: Fedora
Classification: Fedora
Component: rust
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rust SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-25 15:52 UTC by Fabio Valentini
Modified: 2022-08-29 22:34 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-29 22:34:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Fabio Valentini 2022-01-25 15:52:12 UTC
Compiling doctests of the tokei crate during koji builds started to fail (also happened during the F36 mass rebuild). It seems to be isolated to Rust + LLVM 13, since this problem only occurs on Fedora 35+, and not on Fedora 34 (where Rust still uses LLVM 12).

First kind of error (on rawhide):

---- src/language/mod.rs - language::Language::new (line 34) stdout ----
/usr/lib/librustc_driver-fae02aa6c6980a78.so(+0x4af6ec)[0xb427f6ec]
/usr/lib/libc.so.6(__default_sa_restorer+0x0)[0xb3af9380]
/usr/lib/libLLVM-13.so(_ZN4llvm12LiveRegUnits10accumulateERKNS_12MachineInstrE+0x80)[0xaf602f28]
/usr/lib/libLLVM-13.so(_ZN4llvm12RegScavenger25scavengeRegisterBackwardsERKNS_19TargetRegisterClassENS_26MachineInstrBundleIteratorINS_12MachineInstrELb0EEEbib+0x110)[0xaf7c1030]
/usr/lib/libLLVM-13.so(+0xc01ca4)[0xaf7c1ca4]
/usr/lib/libLLVM-13.so(+0xc018d8)[0xaf7c18d8]
/usr/lib/libLLVM-13.so(_ZN4llvm24scavengeFrameVirtualRegsERNS_15MachineFunctionERNS_12RegScavengerE+0x60)[0xaf7c1614]
/usr/lib/libLLVM-13.so(+0xb9bfb8)[0xaf75bfb8]
/usr/lib/libLLVM-13.so(_ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE+0x10c)[0xaf671490]
/usr/lib/libLLVM-13.so(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x238)[0xaf474384]
/usr/lib/libLLVM-13.so(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0x30)[0xaf47a1d0]
/usr/lib/libLLVM-13.so(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x378)[0xaf474934]
Couldn't compile the test.

Second kind of error (Fedora 35):

---- target/release/build/tokei-8e5c426229098942/out/language_type.rs - language::language_type::LanguageType::name (line 228) stdout ----
/usr/lib/librustc_driver-5d25649674e7f2a9.so(+0x4af8f4)[0xb42728f4]
/usr/lib/libc.so.6(__default_sa_restorer+0x0)[0xb3aec300]
Couldn't compile the test.


For now, I will disable compiling and running tests for the tokei crate entirely, since on Fedora, compiling tests is broken on f34 on i686, as well.


Failed koji build on rawhide:
https://koji.fedoraproject.org/koji/taskinfo?taskID=81831081

Failed koji build on f35:
https://koji.fedoraproject.org/koji/taskinfo?taskID=81831106

Comment 1 Ben Cotton 2022-02-08 21:05:52 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Fabio Valentini 2022-02-22 02:54:45 UTC
This also affects rav1e.

Comment 3 Josh Stone 2022-08-29 22:34:29 UTC

*** This bug has been marked as a duplicate of bug 2086106 ***


Note You need to log in before you can comment on or make changes to this bug.