[llvm-bugs] [Bug 36255] New: Clang++ crashes on assertion when compiling source

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 6 14:35:34 PST 2018


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

            Bug ID: 36255
           Summary: Clang++ crashes on assertion when compiling source
           Product: clang
           Version: trunk
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: isoa at kapsi.fi
                CC: llvm-bugs at lists.llvm.org

Created attachment 19819
  --> https://bugs.llvm.org/attachment.cgi?id=19819&action=edit
Pre-processed source file and run-script related to the crash

I am not very knowledgeable how Clang works and thus I am unable to give any
hints what exactly went wrong.

Attached are the pre-processed source and run-script.

clang version 7.0.0
Target: x86_64-portbld-freebsd11.1
Thread model: posix
InstalledDir: /usr/local/llvm-devel/bin

And here is the crash backtrace:

Assertion failed: (Info.Ctx.hasSameType(BaseIt->getType(), BaseType) && "base
class initializers not in expected order"), function HandleConstructorCall,
file
/wrkdirs/usr/ports/devel/llvm-devel/work/llvm-4f82436e1ddfde29383d98790bbac9de3612f092/tools/clang/lib/AST/ExprConstant.cpp,
line 4383.
#0 0x0000000001e777f8 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/llvm-devel/bin/clang-7.0+0x1e777f8)
#1 0x0000000001e77e16 (/usr/local/llvm-devel/bin/clang-7.0+0x1e77e16)
#2 0x0000000804fe2926 (/lib/libthr.so.3+0xe926)
#3 0x0000000804fe1ecf (/lib/libthr.so.3+0xdecf)
Stack dump:
0.      Program arguments: /usr/local/llvm-devel/bin/clang-7.0 -cc1 -triple
x86_64-portbld-freebsd11.1 -emit-obj -mrelax-all -disable-free -main-file-name
meta.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-dwarf-column-info -debugger-tuning=gdb -resource-dir
/usr/local/llvm-devel/lib/clang/7.0.0 -I include -internal-isystem
/usr/include/c++/v1 -pedantic --std=c++1z -fdeprecated-macro
-fdebug-compilation-dir /home/dev/projects/c++/meta -ferror-limit 19
-fmessage-length 113 -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/meta-84dcf9.o -x c++
meta.cpp
1.      <eof> parser at end of file
2.      meta.cpp:278:5: LLVM IR generation of declaration 'main'
3.      meta.cpp:278:5: Generating code for declaration 'main'
clang-7.0: error: unable to execute command: Abort trap (core dumped)
clang-7.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 7.0.0
Target: x86_64-portbld-freebsd11.1
Thread model: posix
InstalledDir: /usr/local/llvm-devel/bin
clang-7.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-7.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-7.0: note: diagnostic msg: /tmp/meta-e36efc.cpp
clang-7.0: note: diagnostic msg: /tmp/meta-e36efc.sh
clang-7.0: 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/20180206/84adde49/attachment.html>


More information about the llvm-bugs mailing list