[LLVMbugs] [Bug 14194] New: Crash in llvm::MachineFunctionPass::runOnFunction

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Oct 27 04:15:03 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=14194

             Bug #: 14194
           Summary: Crash in  llvm::MachineFunctionPass::runOnFunction
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ismail at namtrac.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9431
  --> http://llvm.org/bugs/attachment.cgi?id=9431
Testcase

Compile the following testcase in a loop like this:

while true; do clang -c -O2 testcase.i || sleep 60;done 

Soon you will hit a crash like this:

0  clang           0x0000000001831322
1  clang           0x00000000018316a3
2  libpthread.so.0 0x00007f267c079170
3  clang           0x0000000001459e39
4  clang           0x0000000001457587
5  clang           0x0000000001456d49
6  clang           0x000000000145694e
7  clang           0x000000000141e006
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 102
8  clang           0x00000000017aab4e
llvm::FPPassManager::runOnFunction(llvm::Function&) + 318
9  clang           0x00000000017aad7b
llvm::FPPassManager::runOnModule(llvm::Module&) + 139
10 clang           0x00000000017aaf24
llvm::MPPassManager::runOnModule(llvm::Module&) + 308
11 clang           0x00000000017ab5f3 llvm::PassManagerImpl::run(llvm::Module&)
+ 339
12 clang           0x00000000017ab6ea llvm::PassManager::run(llvm::Module&) +
10
13 clang           0x00000000007bc8b7
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5703
14 clang           0x00000000007ba39b
15 clang           0x00000000008c00f3 clang::ParseAST(clang::Sema&, bool, bool)
+ 531
16 clang           0x00000000007b961d clang::CodeGenAction::ExecuteAction() +
77
17 clang           0x000000000068414b clang::FrontendAction::Execute() + 91
18 clang           0x000000000066664d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 829
19 clang           0x0000000000651481
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3505
20 clang           0x00000000006468e7 cc1_main(char const**, char const**, char
const*, void*) + 695
21 clang           0x000000000064daac main + 2972
22 libc.so.6       0x00007f267b2c9725 __libc_start_main + 245
23 clang           0x0000000000646569
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu
-emit-obj -disable-free -disable-llvm-verifier -main-file-name testcase.i
-mrelocation-model static -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.22
-momit-leaf-frame-pointer -coverage-file
/havana/t/delta/delta-2006.08.03/testcase.o -resource-dir
/usr/bin/../lib64/clang/3.2 -O2 -fdebug-compilation-dir
/havana/t/delta/delta-2006.08.03 -ferror-limit 19 -fmessage-length 175
-mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-o testcase.o -x cpp-output testcase.i 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'testcase.i'.
4.      Running pass 'Simple Register Coalescing' on function
'@ff_vc1_decode_blocks'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
SUSE Linux clang version 3.2 (trunk 166560) (based on LLVM 3.2svn)
Target: x86_64-unknown-linux-gnu
Thread model: posix
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: Error generating preprocessed source(s) - no
preprocessable inputs.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list