Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

clang frontend command failed due to signal #39529

Open Quuxplusone opened 5 years ago

Quuxplusone commented 5 years ago
Bugzilla Link PR40558
Status NEW
Importance P enhancement
Reported by Shubham Narlawar (shubham.narlawar@rrlogic.co.in)
Reported on 2019-02-01 02:55:01 -0800
Last modified on 2019-02-01 02:56:16 -0800
Version 3.8
Hardware PC Linux
CC llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments work16_crash-3c33f9.c (827228 bytes, text/x-csrc)
work16_crash-3c33f9.sh (1669 bytes, application/x-shellscript)
Blocks
Blocked by
See also
Created attachment 21416
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

CLANG VERSION - 3.8.1

ATTACHMENT FILE NAME - work16_crash.c

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

---------------------------------------------------------------------------
TERMINAL OUTPUT

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
invocation)
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:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
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:

********************
Quuxplusone commented 5 years ago

Attached work16_crash-3c33f9.c (827228 bytes, text/x-csrc): Preprocessed code of file named "work16_crash.c"

Quuxplusone commented 5 years ago

Attached work16_crash-3c33f9.sh (1669 bytes, application/x-shellscript): Associated run script of file named work16_crash.c