[LLVMbugs] [Bug 16143] New: MachineOperand::setIsKill(bool): Assertion `(!Val || !isDebug()) && "Marking a debug operation as kill"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat May 25 11:14:20 PDT 2013


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

            Bug ID: 16143
           Summary: MachineOperand::setIsKill(bool): Assertion `(!Val ||
                    !isDebug()) && "Marking a debug operation as kill"'
                    failed
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: iannbugzilla at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

STR
1/ Updated clang to version 3.4 (trunk 182710)
2/ Tried to compile firefox using clang

Expected Result
1/ Compiles successfully

Actual Result
1/ Core dump

jemalloc.c
/usr/bin/ccache clang -o jemalloc.o -c -I../../dist/system_wrappers -include
/home/gizmo/central/comm-central/mozilla/config/gcc_hidden.h
-DMOZ_JEMALLOC_HARD_ASSERTS -DMOZ_TEMP_INVESTIGATION -Dabort=moz_abort
-DMOZ_JEMALLOC_IMPL -DMOZ_GLUE_IN_PROGRAM -DNO_NSPR_10_SUPPORT
-I/home/gizmo/central/comm-central/mozilla/memory/build
-I/home/gizmo/central/comm-central/mozilla/memory/mozjemalloc -I.
-I../../dist/include  -I/home/gizmo/central/ff-opt/dist/include/nspr
-I/home/gizmo/central/ff-opt/dist/include/nss      -fPIC -Qunused-arguments 
-Qunused-arguments -Wall -Wpointer-arith -Wdeclaration-after-statement
-Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-unused
-std=gnu99 -fgnu89-inline -fno-strict-aliasing -ffunction-sections
-fdata-sections -pthread -pipe  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks 
-fomit-frame-pointer  -Qunused-arguments  -include ../../mozilla-config.h
-DMOZILLA_CLIENT -MD -MP -MF .deps/jemalloc.o.pp 
/home/gizmo/central/comm-central/mozilla/memory/mozjemalloc/jemalloc.c
clang: /home/gizmo/other_repos/llvm/include/llvm/CodeGen/MachineOperand.h:369:
void llvm::MachineOperand::setIsKill(bool): Assertion `(!Val || !isDebug()) &&
"Marking a debug operation as kill"' failed.
0  clang           0x00000000032d836e llvm::sys::PrintStackTrace(_IO_FILE*) +
46
1  clang           0x00000000032d862b
2  clang           0x00000000032d888a
3  libpthread.so.0 0x000000338da0f000
4  libc.so.6       0x000000338d635ba5 gsignal + 53
5  libc.so.6       0x000000338d637358 abort + 328
6  libc.so.6       0x000000338d62e972
7  libc.so.6       0x000000338d62ea22
8  clang           0x00000000021817a7
9  clang           0x0000000002acfecb
llvm::MachineInstr::addRegisterKilled(unsigned int, llvm::TargetRegisterInfo
const*, bool) + 507
10 clang           0x00000000023b1270
11 clang           0x0000000002c7f8e2
12 clang           0x0000000002c7e6fa
13 clang           0x0000000002c7dc0a
14 clang           0x0000000002ac829e
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 110
15 clang           0x00000000032457bb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 427
16 clang           0x0000000003245ac8
llvm::FPPassManager::runOnModule(llvm::Module&) + 104
17 clang           0x0000000003245eca
llvm::MPPassManager::runOnModule(llvm::Module&) + 634
18 clang           0x000000000324667e llvm::PassManagerImpl::run(llvm::Module&)
+ 302
19 clang           0x00000000032468d1 llvm::PassManager::run(llvm::Module&) +
33
20 clang           0x0000000000b48e33
21 clang           0x0000000000b489b8
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 104
22 clang           0x0000000000b45e69
23 clang           0x0000000000d8a24d clang::ParseAST(clang::Sema&, bool, bool)
+ 813
24 clang           0x00000000008934d3 clang::ASTFrontendAction::ExecuteAction()
+ 323
25 clang           0x0000000000b451aa clang::CodeGenAction::ExecuteAction() +
1242
26 clang           0x000000000089302f clang::FrontendAction::Execute() + 191
27 clang           0x000000000085faae
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 798
28 clang           0x00000000008225fc
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1036
29 clang           0x000000000080efba cc1_main(char const**, char const**, char
const*, void*) + 698
30 clang           0x000000000081af69 main + 473
31 libc.so.6       0x000000338d621a05 __libc_start_main + 245
32 clang           0x000000000080ec39
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name jemalloc.c
-mrelocation-model pic -pic-level 2 -relaxed-aliasing -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -target-linker-version 2.23.51.0.1 -momit-leaf-frame-pointer
-g -ffunction-sections -fdata-sections -coverage-file
/home/gizmo/.ccache/2/d/1c52f457f4e61bb47a5391da467091-446851.o.tmp.rudkin.middlekingdoms.local.27121
-resource-dir /usr/local/bin/../lib/clang/3.4 -include
/home/gizmo/central/comm-central/mozilla/config/gcc_hidden.h -include
../../mozilla-config.h -D MOZ_JEMALLOC_HARD_ASSERTS -D MOZ_TEMP_INVESTIGATION
-D abort=moz_abort -D MOZ_JEMALLOC_IMPL -D MOZ_GLUE_IN_PROGRAM -D
NO_NSPR_10_SUPPORT -D NDEBUG -D TRIMMED -D MOZILLA_CLIENT -I
../../dist/system_wrappers -I
/home/gizmo/central/comm-central/mozilla/memory/build -I
/home/gizmo/central/comm-central/mozilla/memory/mozjemalloc -I . -I
../../dist/include -I /home/gizmo/central/ff-opt/dist/include/nspr -I
/home/gizmo/central/ff-opt/dist/include/nss -internal-isystem
/usr/local/include -internal-isystem /usr/local/bin/../lib/clang/3.4/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -Os
-Wall -Wpointer-arith -Wdeclaration-after-statement -Werror=return-type
-Wtype-limits -Wempty-body -Wsign-compare -Wno-unused -std=gnu99
-fdebug-compilation-dir /home/gizmo/central/ff-opt/memory/mozjemalloc
-ferror-limit 19 -fmessage-length 0 -pthread -mstackrealign -fgnu89-inline
-fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fdiagnostics-show-option -backend-option -vectorize-loops -o
/home/gizmo/.ccache/2/d/1c52f457f4e61bb47a5391da467091-446851.o.tmp.rudkin.middlekingdoms.local.27121
-x c /home/gizmo/central/comm-central/mozilla/memory/mozjemalloc/jemalloc.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module
'/home/gizmo/central/comm-central/mozilla/memory/mozjemalloc/jemalloc.c'.
4.    Running pass 'Eliminate PHI nodes for register allocation' on function
'@arena_run_dalloc'
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.4 (trunk 182710)
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: 
********************

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/jemalloc-aOhP0d.c
clang: note: diagnostic msg: /tmp/jemalloc-aOhP0d.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/20130525/9d77d16e/attachment.html>


More information about the llvm-bugs mailing list