[LLVMbugs] [Bug 16590] New: Assertion `BitWidth == RHS.BitWidth && "Comparison requires equal bit widths"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 10 11:37:09 PDT 2013


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

            Bug ID: 16590
           Summary: Assertion `BitWidth == RHS.BitWidth && "Comparison
                    requires equal bit widths"' failed
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bero at lindev.ch
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10854
  --> http://llvm.org/bugs/attachment.cgi?id=10854&action=edit
lossless-pOmLrX.c

Looks like bug 12206, but occurs in 3.3:

clang: /mnt/disk/repos/toolchain-build-llvm/llvm/include/llvm/ADT/APInt.h:866:
bool llvm::APInt::operator==(const llvm::APInt &) const: Assertion `BitWidth ==
RHS.BitWidth && "Comparison requires equal bit widths"' failed.
0  libLLVM-3.3.so  0x00007f55204493a5 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1  libLLVM-3.3.so  0x00007f5520449893
2  libpthread.so.0 0x00007f551f8e0050
3  libc.so.6       0x00007f551f549e67 gsignal + 55
4  libc.so.6       0x00007f551f54d4c8 abort + 328
5  libc.so.6       0x00007f551f542cb3
6  libc.so.6       0x00007f551f542d62
7  libLLVM-3.3.so  0x00007f5520a0ddf4
llvm::ARMTargetLowering::PerformDAGCombine(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const + 24580
8  libLLVM-3.3.so  0x00007f55206d9f03
9  libLLVM-3.3.so  0x00007f55206d987d
llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AliasAnalysis&,
llvm::CodeGenOpt::Level) + 765
10 libLLVM-3.3.so  0x00007f5520830611
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 897
11 libLLVM-3.3.so  0x00007f552082fa57
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 6455
12 libLLVM-3.3.so  0x00007f552082d3b6
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1318
13 libLLVM-3.3.so  0x00007f55202c3e5d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 125
14 libLLVM-3.3.so  0x00007f551ff7a89c
llvm::FPPassManager::runOnFunction(llvm::Function&) + 364
15 libLLVM-3.3.so  0x00007f551ff7ab1b
llvm::FPPassManager::runOnModule(llvm::Module&) + 59
16 libLLVM-3.3.so  0x00007f551ff7ae6e
llvm::MPPassManager::runOnModule(llvm::Module&) + 430
17 libLLVM-3.3.so  0x00007f551ff7b50b llvm::PassManagerImpl::run(llvm::Module&)
+ 539
18 libLLVM-3.3.so  0x00007f551ff7b67a llvm::PassManager::run(llvm::Module&) +
10
19 clang           0x00000000006df5a7
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 6087
20 clang           0x00000000006dd213
21 clang           0x000000000082ad13 clang::ParseAST(clang::Sema&, bool, bool)
+ 515
22 clang           0x00000000006dc4b2 clang::CodeGenAction::ExecuteAction() +
194
23 clang           0x0000000000566741 clang::FrontendAction::Execute() + 113
24 clang           0x0000000000546d5d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 941
25 clang           0x000000000052d810
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3760
26 clang           0x0000000000524270 cc1_main(char const**, char const**, char
const*, void*) + 768
27 clang           0x000000000052a72a main + 7530
28 libc.so.6       0x00007f551f535c35 __libc_start_main + 245
29 clang           0x0000000000523ea1
Stack dump:
0.      Program arguments: /opt/llvm-toolchain/bin/clang -cc1 -triple
thumbv7--linux-androideabi -S -disable-free -main-file-name lossless.c
-mrelocation-model pic -pic-level 2 -pie-level 2 -fmath-errno
-mconstructor-aliases -munwind-tables -fuse-init-array -target-abi aapcs-linux
-target-cpu cortex-a8 -mfloat-abi soft -target-feature +soft-float-abi
-target-feature +neon -target-linker-version 2.23.52.0.2.20130423 -g
-ffunction-sections -fdata-sections -coverage-file /tmp/lossless-qKJnVy.s
-resource-dir /opt/llvm-toolchain/bin/../lib/clang/3.3 -dependency-file
out/target/product/manta/obj/STATIC_LIBRARIES/libwebp-decode_intermediates/../dsp/lossless.d
-MT
out/target/product/manta/obj/STATIC_LIBRARIES/libwebp-decode_intermediates/../dsp/lossless.o
-sys-header-deps -isystem system/core/include -isystem
hardware/libhardware/include -isystem hardware/libhardware_legacy/include
-isystem hardware/ril/include -isystem libnativehelper/include -isystem
frameworks/native/include -isystem frameworks/native/opengl/include -isystem
frameworks/av/include -isystem frameworks/base/include -isystem
frameworks/base/opengl/include -isystem external/skia/include -isystem
out/target/product/manta/obj/include -isystem bionic/libc/arch-arm/include
-isystem bionic/libc/include -isystem bionic/libstdc++/include -isystem
bionic/libc/kernel/common -isystem bionic/libc/kernel/arch-arm -isystem
bionic/libm/include -isystem bionic/libm/include/arm -isystem
bionic/libthread_db/include -include
build/core/combo/include/arch/linux-arm/AndroidConfig.h -D _FORTIFY_SOURCE=1 -D
ANDROID -D NDEBUG -D NDEBUG -U DEBUG -D ANDROID -I external/webp/src/dec -I
external/webp/src/dec/../../include -I external/webp/src/dec -I
out/target/product/manta/obj/STATIC_LIBRARIES/libwebp-decode_intermediates -I
libnativehelper/include/nativehelper -I
build/core/combo/include/arch/linux-arm/ -internal-isystem /usr/local/include
-internal-isystem /opt/llvm-toolchain/bin/../lib/clang/3.3/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-Wno-multichar -Werror=format-security -W -Wall -Wno-unused -Winit-self
-Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address
-Werror=sequence-point -Wstrict-aliasing=2 -Werror=strict-aliasing
-Wstrict-aliasing=2 -Werror=strict-aliasing -Wstrict-aliasing=2
-Werror=strict-aliasing -Wno-error=unknown-warning-option
-Wno-error=unused-parameter -Wno-error=gnu-static-float-init
-Wno-error=unused-private-field -Wno-error=mismatched-tags
-Wno-error=ignored-attributes -Wno-error=gnu-designator -Wno-error=gnu
-Wno-error=duplicate-decl-specifier
-Wno-error=tautological-constant-out-of-range-compare -Wno-error=unsequenced
-Wno-error=return-type-c-linkage -fno-dwarf-directory-asm
-fdebug-compilation-dir /mnt/disk/linaro-builds/manta-4.2.2 -ferror-limit 19
-fmessage-length 0 -stack-protector 1 -mstackrealign -fno-signed-char
-fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o /tmp/lossless-qKJnVy.s -x c external/webp/src/dec/../dsp/lossless.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'external/webp/src/dec/../dsp/lossless.c'.
4.      Running pass 'ARM Instruction Selection' on function
'@VP8LSubtractGreenFromBlueAndRed'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (branches/release_33 185937) (llvm/branches/release_33
185931)
Target: arm--linux-androideabi
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/lossless-pOmLrX.c
clang: note: diagnostic msg: /tmp/lossless-pOmLrX.sh
clang: note: diagnostic msg: 

********************
make: ***
[out/target/product/manta/obj/STATIC_LIBRARIES/libwebp-decode_intermediates/../dsp/lossless.o]
Error 254

-- 
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/20130710/5d01f4bd/attachment.html>


More information about the llvm-bugs mailing list