[llvm-bugs] [Bug 43041] New: riscv - pass 'Machine Copy Propagation Pass' on function '@lttng_ust_safe_close_fd'

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Aug 18 23:34:16 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43041

            Bug ID: 43041
           Summary: riscv - pass 'Machine Copy Propagation Pass' on
                    function '@lttng_ust_safe_close_fd'
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: raj.khem at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Created attachment 22392
  --> https://bugs.llvm.org/attachment.cgi?id=22392&action=edit
test case

backtrace

| 1.    <eof> parser at end of file
| 2.    Code generation
| 3.    Running pass 'Function Pass Manager' on module
'../../lttng-ust-2.10.4/liblttng-ust-comm/lttng-ust-fd-tracker.$
'.
| 4.    Running pass 'Machine Copy Propagation Pass' on function
'@lttng_ust_safe_close_fd'
|  #0 0x000055c5ea77a7f2
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/$
in/clang-9+0x32f77f2)
|  #1 0x000055c5ea777b6e llvm::sys::RunSignalHandlers()
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/lttng-ust/2_2.10.$
-r0/recipe-sysroot-native/usr/bin/clang-9+0x32f4b6e)
|  #2 0x000055c5ea77ad64
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/$
in/clang-9+0x32f7d64)
|  #3 0x00007f0e46b1f100
(/mnt/a/yoe/build/tmp/sysroots-uninative/x86_64-linux/lib/libpthread.so.0+0x13100)
|  #4 0x000055c5e9f45ad3
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/$
in/clang-9+0x2ac2ad3)
|  #5 0x000055c5e9f43d60
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/$
in/clang-9+0x2ac0d60)
|  #6 0x000055c5e9d594ae
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/mnt/a/yoe/build/tmp/work/riscv64-$
oe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/bin/clang-9+0x28d64ae)
|  #7 0x000055c5ea11d20f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-li$
ux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/bin/clang-9+0x2c9a20f)
|  #8 0x000055c5ea11d8d3 llvm::FPPassManager::runOnModule(llvm::Module&)
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/$
ttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/bin/clang-9+0x2c9a8d3)
|  #9 0x000055c5ea11e0e9 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linu$
/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/bin/clang-9+0x2c9b0e9)
| #10 0x000055c5ead81f94 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang:$
CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::DataLayout const&, llvm::Module*,
clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >) (/mnt/a$
yoe/build/tmp/work/riscv64-yoe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/bin/clang-9+0x38fef94)
| #11 0x000055c5eb210b0b
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/$
in/clang-9+0x3d8db0b)
| #12 0x000055c5ec1a9e56 clang::ParseAST(clang::Sema&, bool, bool)
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/lttng-$
st/2_2.10.4-r0/recipe-sysroot-native/usr/bin/clang-9+0x4d26e56)
| #13 0x000055c5eb20f9a2 clang::CodeGenAction::ExecuteAction()
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/lttng-ust/$
_2.10.4-r0/recipe-sysroot-native/usr/bin/clang-9+0x3d8c9a2)
| #14 0x000055c5eb151459 clang::FrontendAction::Execute()
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/lttng-ust/2_2.1$
.4-r0/recipe-sysroot-native/usr/bin/clang-9+0x3cce459)
| #15 0x000055c5eb09a5c0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/mnt/a/yoe/build/tmp/work/ris$
v64-yoe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/bin/clang-9+0x3c175c0)
| #16 0x000055c5eb20ae84
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/mnt/a/yoe/build/tmp/work/riscv64$
yoe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/bin/clang-9+0x3d87e84)
| #17 0x000055c5e9032654 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/mnt/a/yoe/build/tmp/work/riscv64-$
oe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native/usr/bin/clang-9+0x1baf654)
| #18 0x000055c5e9030079 main
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-native$
usr/bin/clang-9+0x1bad079)
| #19 0x00007f0e465e8b9b __libc_start_main
(/mnt/a/yoe/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6+0x26b9b$
| #20 0x000055c5e902c02e _start
(/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux/lttng-ust/2_2.10.4-r0/recipe-sysroot-nati$
e/usr/bin/clang-9+0x1ba902e)
| clang-9: error: unable to execute command: Segmentation fault (core dumped)
| clang-9: error: clang frontend command failed due to signal (use -v to see
invocation)
| clang version 9.0.0 (https://github.com/llvm/llvm-project
150ad3120e346ed8dff2bdda458a72e734b1879a)
| Target: riscv64-yoe-linux
| Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190819/307d2e27/attachment.html>


More information about the llvm-bugs mailing list