[MacPorts] #58442: clang-7, 8.0 - seg. faults when used as assembler with assertions variant active.
MacPorts
noreply at macports.org
Fri May 10 20:04:24 UTC 2019
#58442: clang-7,8.0 - seg. faults when used as assembler with assertions variant
active.
----------------------------------+--------------------
Reporter: mouse07410 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: clang-7.0 clang-8.0 |
----------------------------------+--------------------
Comment (by mouse07410):
> ...mouse had a potential reproducer from building ntl ?
Oh yes.
1. Make sure your Mac is set for using Macports GCC (say, {{{gcc9}}} - but
it happened with {{{gcc8}}} as well): {{{sudo port select --set gcc mp-
gcc9 && sudo port select --set llvm mp-llvm-7.0}}} (or set llvm to mp-
llvm-8.0, whatever)
1. Download and unpack the current (11.3.2) NTL distro
{{{ntl-11.3.2.tar.gz}}} into the current dir.
2. {{{cd ntl-11.3.2/src}}}
3. {{{./configure}}}
This should be enough - it should abort with something like
{{{
$ ./configure
Compilation failed
See CompilerOutput.log for details
Goodbye! at DoConfig line 616.
$ cat CompilerOutput.log
*** CompilerOutput.log ***
*** building GenConfigInfo
g++ -I../include -I. -g -O2 -o GenConfigInfo GenConfigInfo.cpp -lm
Assertion failed: (!CreatedADWARFSection && "Creating regular section
after DWARF"), function ChangeSection, file
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-7.0/llvm-7.0/work/llvm-7.0.1.src/lib/MC/MCMachOStreamer.cpp,
line 159.
Stack dump:
0. Program arguments: /opt/local/libexec/llvm-7.0/bin/clang -cc1as
-triple x86_64-apple-macosx10.14.0 -filetype obj -main-file-name
ccM0RN41.s -target-cpu penryn -I ../include -I . -fdebug-compilation-dir
/Users/ur20980/src/ntl-11.3.2/src -dwarf-debug-producer clang version
7.0.1 (tags/RELEASE_701/final) -I ../include -I . -dwarf-version=4
-mrelocation-model pic -o
/var/folders/c6/lnc_0m093ys8w16md_fm1mnxhtfnj8/T//ccqJ94NA.o
/var/folders/c6/lnc_0m093ys8w16md_fm1mnxhtfnj8/T//ccM0RN41.s
0 libLLVM.dylib 0x0000000105d038b0
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 libLLVM.dylib 0x0000000105d03ca1 SignalHandler(int) + 200
2 libsystem_platform.dylib 0x00007fff7fad1b5d _sigtramp + 29
3 libLLVM.dylib 0x00000001088ffa90 (anonymous
namespace)::NoOpLoopAnalysis::Key + 405584
4 libsystem_c.dylib 0x00007fff7f9916a6 abort + 127
5 libsystem_c.dylib 0x00007fff7f95a20d basename_r + 0
6 libLLVM.dylib 0x00000001068e3479 (anonymous
namespace)::MCMachOStreamer::ChangeSection(llvm::MCSection*, llvm::MCExpr
const*) + 793
7 libLLVM.dylib 0x00000001068f0b89
llvm::MCStreamer::SwitchSection(llvm::MCSection*, llvm::MCExpr const*) +
97
8 libLLVM.dylib 0x0000000106927dab (anonymous
namespace)::DarwinAsmParser::parseSectionSwitch(llvm::StringRef,
llvm::StringRef, unsigned int, unsigned int, unsigned int) + 201
9 libLLVM.dylib 0x00000001069285ee bool
llvm::MCAsmParserExtension::HandleDirective<(anonymous
namespace)::DarwinAsmParser, &((anonymous
namespace)::DarwinAsmParser::parseSectionDirectiveModInitFunc(llvm::StringRef,
llvm::SMLoc))>(llvm::MCAsmParserExtension*, llvm::StringRef, llvm::SMLoc)
+ 44
10 libLLVM.dylib 0x00000001069114d5 (anonymous
namespace)::AsmParser::parseStatement((anonymous
namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*) + 2127
11 libLLVM.dylib 0x000000010690d3b7 (anonymous
namespace)::AsmParser::Run(bool, bool) + 395
12 clang 0x000000010422efe0
cc1as_main(llvm::ArrayRef<char const*>, char const*, void*) + 10156
13 clang 0x000000010422a27b main + 7864
14 libdyld.dylib 0x00007fff7f8ec3d5 start + 1
15 libdyld.dylib 0x000000000000001c start + 2154904648
clang: error: unable to execute command: Abort trap: 6
clang: error: clang integrated assembler command failed due to signal (use
-v to see invocation)
clang version 7.0.1 (tags/RELEASE_701/final)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-7.0/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed
source, and associated run script.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.
make: *** [GenConfigInfo] Error 1
$
}}}
--
Ticket URL: <https://trac.macports.org/ticket/58442#comment:49>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list