[llvm-bugs] [Bug 36100] New: Abort trap in 'PowerPC DAG->DAG Pattern Instruction Selection'

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 25 14:32:45 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36100

            Bug ID: 36100
           Summary: Abort trap in 'PowerPC DAG->DAG Pattern Instruction
                    Selection'
           Product: clang
           Version: 5.0
          Hardware: Other
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sven at sven-siemsen.de
                CC: llvm-bugs at lists.llvm.org

Created attachment 19752
  --> https://bugs.llvm.org/attachment.cgi?id=19752&action=edit
Preprocessed source and associated run script

I am trying to build FreeBSD-11.1 on powerpc64 with clang-5.0.1 from ports.
When building openssh, clang crashes

--- progressmeter.o ---
clang-5.0: error: unable to execute command: Abort trap (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.1 (tags/RELEASE_501/final)
Target: powerpc-portbld-freebsd11.1
Thread model: posix
InstalledDir: /usr/local/llvm50/bin
clang-5.0: 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-5.0: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/progressmeter-2c5082.c
clang-5.0: note: diagnostic msg: /tmp/progressmeter-2c5082.sh


Output of progressmeter-2c5082.sh:

Assertion failed: (NewLHS.getValueType() == N->getValueType(0) && "Unexpected
setcc expansion!"), function ExpandIntOp_SETCC, file
/usr/ports/devel/llvm50/work/llvm-5.0.1.src/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp,
line 3117.
Stack dump:
0.      Program arguments: /usr/local/llvm50/bin/clang-5.0 -cc1 -triple
powerpc-portbld-freebsd11.1 -emit-obj -disable-free -main-file-name
progressmeter.c -mrelocation-model static -mthread-model posix
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu 970
-mfloat-abi hard -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file
/usr/obj/usr/src/world32/usr/src/secure/lib/libssh/progressmeter.gcno
-sys-header-deps -D COMPAT_32BIT -D HAVE_LDNS=1 -O2 -Wno-pointer-sign
-Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
-Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
-Wno-knr-promoted-parameter -Wno-parentheses -std=gnu99 -ferror-limit 19
-fmessage-length 0 -stack-protector 2 -fno-signed-char -fobjc-runtime=gnustep
-fdiagnostics-show-option -vectorize-loops -vectorize-slp -x c
progressmeter-2c5082.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'progressmeter-2c5082.c'.
4.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@Fssh_refresh_progress_meter'
Abort trap (core dumped)

I tried with clang 7.0.0 from devel/clang-devel, same result.

-- 
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/20180125/42c9d2f7/attachment.html>


More information about the llvm-bugs mailing list