[llvm-bugs] [Bug 39081] New: [Modules TS] Segmentation fault when compiling module interface
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 25 16:00:59 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39081
Bug ID: 39081
Summary: [Modules TS] Segmentation fault when compiling module
interface
Product: clang
Version: 6.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Modules
Assignee: unassignedclangbugs at nondot.org
Reporter: mwasplund at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
clang++ -std=c++17 -I"../src" -DSOUP_BUILD
-DAntlr4_VersionNamespace=Antlr4::v1_0_0 -stdlib=libc++ -fmodules-ts
--precompile -o Module.pcm ../src/Module.cppm
#0 0x00007ff3e6ec00ea llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1+0x81e0ea)
#1 0x00007ff3e6ebe366 llvm::sys::RunSignalHandlers()
(/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1+0x81c366)
#2 0x00007ff3e6ebe49b (/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1+0x81c49b)
#3 0x00007ff3ea150890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x0000558ade586043 _fini (/usr/lib/llvm-6.0/bin/clang+0x1ea7043)
Stack dump:
0. Program arguments: /usr/lib/llvm-6.0/bin/clang -cc1 -triple
x86_64-pc-linux-gnu -emit-module-interface -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name Module.cppm -mrelocation-model static
-mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-dwarf-column-info -debugger-tuning=gdb -resource-dir
/usr/lib/llvm-6.0/lib/clang/6.0.0 -I ../src -D SOUP_BUILD -D
Antlr4_VersionNamespace=Antlr4::v1_0_0 -internal-isystem /usr/include/c++/v1
-internal-isystem /usr/include/clang/6.0.0/include/ -internal-isystem
/usr/local/include -internal-isystem /usr/lib/llvm-6.0/lib/clang/6.0.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-std=c++17 -fdeprecated-macro -fdebug-compilation-dir
/home/mwasplund/Repos/antlr4/runtime/Cpp/runtime/obj -ferror-limit 19
-fmessage-length 168 -fmodules-ts -fno-implicit-modules -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
Module.pcm -x c++ ../src/Module.cppm
1. ../src/atn/SemanticContext.h:103:70: current parser token ':'
2. ../src/atn/SemanticContext.h:11:1: parsing namespace 'antlr4'
3. ../src/atn/SemanticContext.h:12:1: parsing namespace 'antlr4::atn'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
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/Module-b1465e.cppm
clang: note: diagnostic msg: /tmp/Module-b1465e.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/20180925/7458d808/attachment.html>
More information about the llvm-bugs
mailing list