[LLVMbugs] [Bug 8495] New: [frontend] clang++ crashes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 28 07:02:48 PDT 2010


           Summary: [frontend] clang++ crashes
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pipping at exherbo.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
        Depends on: 8336
            Blocks: 8471,8490

While compiling esctrn.cpp from icu with clang++ 2.9-trunk, I got a segfault
(this worked with 2.8 iirc).

Here's the error:

pipping at bogus ~/tmp $ clang++ -D_REENTRANT -I. -I../common   
-DU_I18N_IMPLEMENTATION -march=core2 -pipe -O2 -W -Wall -ansi -pedantic
-Wpointer-arith -Wwrite-strings -Wno-long-long  -fvisibility=hidden -c -DPIC
-fPIC esctrn.ii
clang: warning: argument unused during compilation: '-D _REENTRANT'
clang: warning: argument unused during compilation: '-I .'
clang: warning: argument unused during compilation: '-I ../common'
clang: warning: argument unused during compilation: '-D U_I18N_IMPLEMENTATION'
clang: warning: argument unused during compilation: '-D PIC'
Instruction does not dominate all uses!
  %call6 = call i8* @_ZN6icu_447UMemorynwEm(i64 192) nounwind
  call void @_ZN6icu_447UMemorydlEPv(i8* %call6) nounwind
Broken module found, compilation aborted!
0  libLLVM-2.9svn.so 0x00007f8e82c765bf
1  libLLVM-2.9svn.so 0x00007f8e82c76ba9
2  libpthread.so.0   0x00007f8e821defa0
3  libc.so.6         0x00007f8e814f6165 gsignal + 53
4  libc.so.6         0x00007f8e814f73ff abort + 383
5  libLLVM-2.9svn.so 0x00007f8e82d44e58
6  libLLVM-2.9svn.so 0x00007f8e82d43b81
7  libLLVM-2.9svn.so 0x00007f8e82d2ad1b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 331
8  libLLVM-2.9svn.so 0x00007f8e82d2a579
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 217
9  libLLVM-2.9svn.so 0x00007f8e82d2a489
llvm::FunctionPassManager::run(llvm::Function&) + 329
10 clang             0x000000000060c2cd
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) + 4877
11 clang             0x0000000000609eeb
12 clang             0x000000000071803a clang::ParseAST(clang::Sema&, bool) +
13 clang             0x0000000000609995 clang::CodeGenAction::ExecuteAction() +
14 clang             0x000000000052f8e7
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 903
15 clang             0x000000000051386f
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2767
16 clang             0x000000000050caad cc1_main(char const**, char const**,
char const*, void*) + 5885
17 clang             0x000000000051049f main + 655
18 libc.so.6         0x00007f8e814e2ced __libc_start_main + 253
19 clang             0x000000000050b2e9
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -S
-disable-free -main-file-name esctrn.ii -pic-level 2 -mdisable-fp-elim
-mconstructor-aliases -munwind-tables -target-cpu core2 -target-linker-version -resource-dir /usr/bin/../lib/clang/2.9 -O2 -W -Wall
-Wpointer-arith -Wwrite-strings -Wno-long-long -pedantic -std=c++98
-ferror-limit 19 -fmessage-length 118 -fvisibility hidden -fexceptions
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-Bwi2dI.s
-x c++-cpp-output esctrn.ii 
1.      <eof> parser at end of file
2.      Per-function optimization
3.      Running pass 'Module Verifier' on function
clang: error: clang frontend command failed due to signal 6 (use -v to see
pipping at bogus ~/tmp $ 

I'm attaching a delta-reduced sample

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