<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - llvm-ar 12.0 regression crash"
href="https://bugs.llvm.org/show_bug.cgi?id=50706">50706</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-ar 12.0 regression crash
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>12.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>llvm-ar
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>shawn.webb@hardenedbsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>FreeBSD recently imported llvm 12 in base. HardenedBSD is a derivative of
FreeBSD that tracks FreeBSD very closely (syncing every six hours). HardenedBSD
builds the (nearly) the entire userland with LTO (so both static/shared
libraries and apps). llvm-ar 12 contains a regression that crashes llvm-ar.
`uname -a`: FreeBSD hbsd-current-01 14.0-CURRENT-HBSD FreeBSD 14.0-CURRENT-HBSD
#0 hardened/current/master-n190436-d33c442bf867-dirty: Fri May 28 12:45:43 EDT
2021 shawn@hbsd-current-01:/usr/obj/usr/src/amd64.amd64/sys/HARDENEDBSD
amd64
`cc --version`:
FreeBSD clang version 12.0.0 (<a href="mailto:git@github.com">git@github.com</a>:llvm/llvm-project.git
llvmorg-12.0.0-0-gd28af7c654d8)
Target: x86_64-unknown-freebsd14.0
Thread model: posix
InstalledDir: /usr/obj/usr/src/amd64.amd64/tmp/usr/bin
Tarball of object files used with the build log below:
<a href="https://hardenedbsd.org/~shawn/2021-06-14_libzstd.tar.xz">https://hardenedbsd.org/~shawn/2021-06-14_libzstd.tar.xz</a>
build log:
==== BEGIN LOG ====
===> lib/libzstd (obj,all,install)
building static zstd library
ar rcv libprivatezstd.a entropy_common.o error_private.o fse_decompress.o
pool.o threading.o xxhash.o zstd_common.o fse_compress.o huf_compress.o
zstd_compress.o zstd_compress_literals.o zstd_compress_sequences.o
zstd_compress_superblock.o zstdmt_compress.o huf_decompress.o zstd_ddict.o
zstd_decompress.o zstd_decompress_block.o zbuff_common.o zbuff_compress.o
zbuff_decompress.o cover.o divsufsort.o zdict.o zstd_fast.o
zstd_lazy.o zstd_ldm.o zstd_opt.o zstd_double_fast.o debug.o hist.o fastcover.o
Assertion failed: ((Record[i] == 5 || Record[i] == 6) && "Invalid attribute
group entry"), function parseAttributeGroupBlock, file
/usr/src/contrib/llvm-project/llvm/lib/Bitcode/Reader/BitcodeReader.cpp, line
1645.
PLEASE submit a bug report to <a href="https://bugs.freebsd.org/submit/">https://bugs.freebsd.org/submit/</a> and include the
crash backtrace.
Stack dump:
0. Program arguments: ar rcv libprivatezstd.a entropy_common.o
error_private.o fse_decompress.o pool.o threading.o xxhash.o zstd_common.o
fse_compress.o huf_compress.o zstd_compress.o
zstd_compress_literals.o zstd_compress_sequences.o zstd_compress_superblock.o
zstdmt_compress.o huf_decompress.o zstd_ddict.o zstd_decompress.o
zstd_decompress_block.o zbuff_common.o zbuff_compress.o
zbuff_decompress.o cover.o divsufsort.o zdict.o zstd_fast.o zstd_lazy.o
zstd_ldm.o zstd_opt.o zstd_double_fast.o debug.o hist.o fastcover.o
#0 0x0000010ea28e6f86 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13
#1 0x0000010ea28e4de1 llvm::sys::RunSignalHandlers()
/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:69:18
#2 0x0000010ea28e7815 SignalHandler
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
#3 0x000003a50c98161e handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3
==== END LOG ====</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>