[llvm-bugs] [Bug 40558] New: clang frontend command failed due to signal

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 1 02:55:01 PST 2019


            Bug ID: 40558
           Summary: clang frontend command failed due to signal
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: gsocshubham at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Created attachment 21416
  --> https://bugs.llvm.org/attachment.cgi?id=21416&action=edit
Preprocessed code of file named "work16_crash.c"

Following clang error occurred -
1. Clang frontend command failed due to signal
2. clang: error: unable to execute command: Segmentation fault


ATTACHMENT FILE NAME - work16_crash.c

COMMAND USED FOR COMPILATION - clang -O1 work16_crash.c -w 


clang -O1 work16_crash.c -w
0  libLLVM-3.8.so.1 0x00007f718b8bf725
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  libLLVM-3.8.so.1 0x00007f718b8bda06 llvm::sys::RunSignalHandlers() + 54
2  libLLVM-3.8.so.1 0x00007f718b8bdb43
3  libc.so.6        0x00007f718a69c060
4  libLLVM-3.8.so.1 0x00007f718bc0b288
5  libLLVM-3.8.so.1 0x00007f718bc12d92
6  libLLVM-3.8.so.1 0x00007f718b9ff4c2
llvm::FPPassManager::runOnFunction(llvm::Function&) + 482
7  libLLVM-3.8.so.1 0x00007f718b9ff7db
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
8  libLLVM-3.8.so.1 0x00007f718b9ffaf7
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 759
9  clang            0x000055bafdf37084
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*)
+ 4452
10 clang            0x000055bafe264b19
11 clang            0x000055bafe38f7aa clang::ParseAST(clang::Sema&, bool,
bool) + 874
12 clang            0x000055bafe1e9946 clang::FrontendAction::Execute() + 262
13 clang            0x000055bafe1bf3a6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 262
14 clang            0x000055bafe2638b3
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2307
15 clang            0x000055bafdefd360 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 2432
16 clang            0x000055bafdef9cce main + 6078
17 libc.so.6        0x00007f718a6892e1 __libc_start_main + 241
18 clang            0x000055bafdefb71a _start + 42
Stack dump:
0.      Program arguments: /usr/lib/llvm-3.8/bin/clang -cc1 -triple
x86_64-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-main-file-name work16_crash.c -mrelocation-model static -mthread-model posix
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer
-dwarf-column-info -debugger-tuning=gdb -resource-dir
/usr/lib/llvm-3.8/bin/../lib/clang/3.8.1 -internal-isystem /usr/local/include
-internal-isystem /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O1
-w -fdebug-compilation-dir /home/extended_csmith/shubham/csmith/runtime
-ferror-limit 19 -fmessage-length 107 -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/work16_crash-084f0f.o -x
c work16_crash.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'work16_crash.c'.
4.      Running pass 'Merge disjoint stack slots' on function '@func_59'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
clang version 3.8.1-24 (tags/RELEASE_381/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 

Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/work16_crash-3c33f9.c
clang: note: diagnostic msg: /tmp/work16_crash-3c33f9.sh
clang: note: diagnostic msg: 


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/20190201/0cf2a33d/attachment.html>

More information about the llvm-bugs mailing list