[Bug 257961] clang 11.0.1 crash while compiling devel/capnproto 0.9.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 20 Aug 2021 08:13:04 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257961

            Bug ID: 257961
           Summary: clang 11.0.1 crash while compiling devel/capnproto
                    0.9.0
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs_at_FreeBSD.org
          Reporter: fernape_at_FreeBSD.org

I'm working on the update of devel/capnproto to 0.9.0 as specified in bug
#257919.

In my current, clang chokes with the following error:

Assertion failed: ((T->isAnyPointerType() || T->isBlockPointerType()) &&
"Invalid type"), function isPointerZeroInitializable, file
/usr/local/poudriere/jails/13-current/usr/src/contrib/llvm-project/clang/lib/CodeGen/CodeGenTypes.cpp,
line 869.
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the
crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: c++ -DHAVE_CONFIG_H -I. -I./src -I./src
-DKJ_HEADER_WARNINGS -DCAPNP_HEADER_WARNINGS
-DCAPNP_INCLUDE_DIR="/usr/local/include" -D_THREAD_SAFE -pthread -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -D_THREAD_SAFE -pthread
-DKJ_HAS_ZLIB -DKJ_HAS_OPENSSL -MT src/capnp/compiler/capnpc-c++.o -MD -MP -MF
src/capnp/compiler/.deps/capnpc-c++.Tpo -c -o src/capnp/compiler/capnpc-c++.o
src/capnp/compiler/capnpc-c++.c++ 
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      ./src/kj/debug.h:655:3 <Spelling=./src/kj/debug.h:650:25>: Generating
code for declaration 'kj::_::DebugExpression<kj::StringPtr &>::operator!='
depbase=`echo src/capnp/compiler/parser.lo | sed
's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H -I.   
-I./src -I./src -DKJ_HEADER_WARNINGS -DCAPNP_HEADER_WARNINGS
-DCAPNP_INCLUDE_DIR='"/usr/local/include"' -D_THREAD_SAFE -pthread -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing   -D_THREAD_SAFE -pthread
-DKJ_HAS_ZLIB -DKJ_HAS_OPENSSL -MT src/capnp/compiler/parser.lo -MD -MP -MF
$depbase.Tpo -c -o src/capnp/compiler/parser.lo src/capnp/compiler/parser.c++
&&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I./src -I./src -DKJ_HEADER_WARNINGS
-DCAPNP_HEADER_WARNINGS -DCAPNP_INCLUDE_DIR=\"/usr/local/include\"
-D_THREAD_SAFE -pthread -O2 -pipe -fstack-protector-strong -fno-strict-aliasing
-D_THREAD_SAFE -pthread -DKJ_HAS_ZLIB -DKJ_HAS_OPENSSL -MT
src/capnp/compiler/parser.lo -MD -MP -MF src/capnp/compiler/.deps/parser.Tpo -c
src/capnp/compiler/parser.c++  -fPIC -DPIC -o src/capnp/compiler/.libs/parser.o
#0 0x00000000041e71ce PrintStackTrace
/usr/local/poudriere/jails/13-current/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13
#1 0x00000000041e5425 RunSignalHandlers
/usr/local/poudriere/jails/13-current/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:69:18
#2 0x000000000418490e HandleCrash
/usr/local/poudriere/jails/13-current/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:77:5
#3 0x0000000004184a91 CrashRecoverySignalHandler
/usr/local/poudriere/jails/13-current/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:0:51
#4 0x00000008056a7010 handle_signal
/usr/local/poudriere/jails/13-current/usr/src/lib/libthr/thread/thr_sig.c:0:3
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 11.0.1 (git_at_github.com:llvm/llvm-project.git
llvmorg-11.0.1-0-g43ff75f2c3fe)
Target: x86_64-unknown-freebsd14.0
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/capnpc-c++-161d22.cpp
c++: note: diagnostic msg: /tmp/capnpc-c++-161d22.sh
c++: note: diagnostic msg: 

********************
gmake[1]: *** [Makefile:2307: src/capnp/compiler/capnpc-c++.o] Error 254
gmake[1]: *** Waiting for unfinished jobs....

The host machine is
FreeBSD vm-current 14.0-CURRENT FreeBSD 14.0-CURRENT #14
main-n247765-31914882fca5: Thu Jul  8 07:11:23 CEST 2021    
root_at_vm-current:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

and the port is built in poudriere (yeah, the name of the jail is 13-current,
but it actually runs 14.0-current... is confusing):
[fernape_at_vm-current /usr/local/poudriere/ports/default]$ poudriere jail -l
JAILNAME   VERSION                        ARCH  METHOD    TIMESTAMP          
PATH
13-current 14.0-CURRENT 1400013 50d31dbc6 amd64 git+https 2021-05-02 17:11:19
/usr/local/poudriere/jails/13-current

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Fri Aug 20 2021 - 08:13:04 UTC

Original text of this message