Bug 237619 - clang assertion failed when building databases/clickhouse with -DENABLE_TESTS=1
Summary: clang assertion failed when building databases/clickhouse with -DENABLE_TESTS=1
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-28 00:27 UTC by Kai Knoblich
Modified: 2019-05-01 12:18 UTC (History)
1 user (show)

See Also:


Attachments
gtest_rw_lock-5a4ea8.cpp.gz / Clang diag file #1 (733.04 KB, application/gzip)
2019-04-28 00:30 UTC, Kai Knoblich
no flags Details
gtest_rw_lock-5a4ea8.sh / Clang diag file #2 (8.21 KB, application/x-shellscript)
2019-04-28 00:31 UTC, Kai Knoblich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Knoblich freebsd_committer 2019-04-28 00:27:58 UTC
While working on bug #237318 it came to light that Clang always crashes on 13.0-CURRENT@r346346 amd64 when the port databases/clickhouse is compiled with -DENABLE_TESTS=1:

Assertion failed: (getActiveBits() <= 64 && "Too many bits for uint64_t"), function getZExtValue, file /usr/local/poudriere/jails/13Camd64/usr/src/contrib/llvm/include/llvm/
ADT/APInt.h, line 1566.
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM 8.0.0)
Target: x86_64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin

On 11.2-RELEASE and 12.0-RELEASE the port can be built without problems, even if -DENABLE_TESTS=1 is set.
Comment 1 Kai Knoblich freebsd_committer 2019-04-28 00:30:27 UTC
Created attachment 204080 [details]
gtest_rw_lock-5a4ea8.cpp.gz / Clang diag file #1
Comment 2 Kai Knoblich freebsd_committer 2019-04-28 00:31:16 UTC
Created attachment 204081 [details]
gtest_rw_lock-5a4ea8.sh / Clang diag file #2