[LLVMbugs] [Bug 15213] New: clang++ crashes when compiling open64 WOPT module be/opt/opt_etable.cxx : Referring to a basic block in another function!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 8 04:56:11 PST 2013


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

            Bug ID: 15213
           Summary: clang++ crashes when compiling open64 WOPT module
                    be/opt/opt_etable.cxx : Referring to a basic block in
                    another function!
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: christophe.monat at st.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang++ crashes when compiling open64 WOPT module be/opt/opt_etable.cxx as
follows:

../../be/opt/opt_htable.h:880:6: error: cannot compile this conditional
operator yet
                                        (Kind() == CK_OP) ? u2.isop._opr = c :
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Referring to a basic block in another function!
  br i1 %cmp, label %cond.true3, label %cond.false, !dbg !20482
Broken module found, compilation aborted!
0  clang           0x0000000001d65be2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang           0x0000000001d65839
2  libpthread.so.0 0x0000003a7f80c5b0
3  libc.so.6       0x0000003a7f12e26d gsignal + 61
4  libc.so.6       0x0000003a7f12fa6e abort + 254
5  clang           0x0000000001d17406
6  clang           0x0000000001d20192
7  clang           0x0000000001cfbbaf
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
8  clang           0x0000000001cff183
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 163
9  clang           0x0000000001cff319
llvm::FunctionPassManager::run(llvm::Function&) + 105
10 clang           0x00000000008cd305
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4021
11 clang           0x00000000008cab1f
12 clang           0x0000000000a1a1fa clang::ParseAST(clang::Sema&, bool, bool)
+ 538
13 clang           0x00000000008c91be clang::CodeGenAction::ExecuteAction() +
78
14 clang           0x000000000075ede9 clang::FrontendAction::Execute() + 265
15 clang           0x0000000000742ab5
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 341
16 clang           0x000000000072a5d2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1426
17 clang           0x0000000000723c38 cc1_main(char const**, char const**, char
const*, void*) + 888
18 clang           0x00000000007187e6 main + 5078
19 libc.so.6       0x0000003a7f11c40b __libc_start_main + 219
20 clang           0x0000000000722c1e
Stack dump:
0.      Program arguments: /home/compwork/monat/llvm-3.3-asubuntu/bin/clang
-cc1 -triple i386-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name opt_etable.cxx -mrelocation-model pic -pic-level 2
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-fuse-init-array -target-cpu pentium4 -target-linker-version 2.21.1
-momit-leaf-frame-pointer -g -coverage-file
/work2/monat/st200.fixes/open64.monat.dev-scan-build-llvm/osprey/targia32_st200/be/opt_etable.o
-resource-dir /home/compwork/monat/llvm-3.3-asubuntu/bin/../lib/clang/3.3
-dependency-file opt_etable.d -MT opt_etable.o -sys-header-deps -D sgi -D
BACK_END -D longlong -D _LONGLONG -D _SVR4_SOURCE -D MONGOOSE_BE -D TARG_ST200
-D Is_True_On -D Insist_On -D TARG_ST200 -D TARG_ST -D KEY -D BCO_ENABLED -D
LAO_ENABLED -D Is_True_On -D BUILD_REV_TAG="40569" -D RELEASE_DATE="20130208"
-D RELEASE_IDATE=20130208 -D RELEASE_MAJOR=9 -D RELEASE_MINOR=0 -D
RELEASE_PATCHLEVEL=0 -D RELEASE_MATURITY=A -D RELEASE_ID="9-0-0-A" -D
__MIPS_AND_IA64_ELF_H -D _MIPSEL -D _LONGLONG -D _MIPS_SZINT=32 -D
_MIPS_SZPTR=32 -D _MIPS_SZLONG=32 -D _FILE_OFFSET_BITS=64 -D TARG_ST200 -D
TARG_ST -D KEY -D BCO_ENABLED -D LAO_ENABLED -D Is_True_On -D
BUILD_REV_TAG="40569" -D RELEASE_DATE="20130208" -D RELEASE_IDATE=20130208 -D
RELEASE_MAJOR=9 -D RELEASE_MINOR=0 -D RELEASE_PATCHLEVEL=0 -D
RELEASE_MATURITY=A -D RELEASE_ID="9-0-0-A" -D _SGI_SOURCE -D
_LANGUAGE_C_PLUS_PLUS -D __GNU_BUG_WORKAROUND -D _NOTHREADS -D
__NO_MATH_INLINES -D BE_EXPORTED= -D CG_EXPORTED= -D TARGINFO_EXT_EXPORTED= -D
TARGINFO_EXPORTED= -D OPT_EXPORTED= -D IPL_EXPORTED= -D LNO_EXPORTED= -D
W2C_EXPORTED= -D W2F_EXPORTED= -D DLLIMPORT= -I ../../be/com -I ../../be/opt -I
../../common/util -I ../../common/com -I ../../common/stl -I
../../targinfo/st200/access -I ../../common/util -I ../../targinfo/st200/be -I
../../be/com -I ../../be/vho -I ../../be/region -I ../../targinfo/st200/config
-I ../targ_info -I ../be -I ../../instrumentation/libinstrC -I ../include
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/sw/st/gnu_compil/gnu/linux-rh-ws-4-x86_64/gcc/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2
-internal-isystem
/sw/st/gnu_compil/gnu/linux-rh-ws-4-x86_64/gcc/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/32
-internal-isystem
/sw/st/gnu_compil/gnu/linux-rh-ws-4-x86_64/gcc/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/backward
-internal-isystem /usr/local/include -internal-isystem
/home/compwork/monat/llvm-3.3-asubuntu/bin/../lib/clang/3.3/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -Wall
-Werror -Wno-unknown-pragmas -Wno-parentheses -Wno-missing-braces
-Wno-unused-variable -Wno-unused-value -Wno-unused-function
-Wno-char-subscripts -Wno-switch-enum -Wno-switch -Wno-sign-compare
-Wno-reorder -Wno-deprecated -Wformat -fdebug-compilation-dir
/work2/monat/st200.fixes/open64.monat.dev-scan-build-llvm/osprey/targia32_st200/be
-ferror-limit 19 -fmessage-length 225 -mstackrealign -fno-signed-char
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -backend-option -vectorize-loops -o opt_etable.o -x c++
../../be/opt/opt_etable.cxx 
1.      <eof> parser at end of file
2.      Per-function optimization
3.      Running pass 'Module Verifier' on function
'@_ZN7CODEREP7Set_oprE8OPERATOR'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (http://llvm.org/git/clang.git
7387673f83b8b37f660422947c9990778ba88193) (http://llvm.org/git/llvm.git
6c440fcea52e27b3befcf2ad5f7dcc58a15a2e58)
Target: i386-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: 
********************

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/opt_etable-c1Q04g.cpp
clang: note: diagnostic msg: /tmp/opt_etable-c1Q04g.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/20130208/7f7aa782/attachment.html>


More information about the llvm-bugs mailing list