Summary: | clang 11.0.1 crash while compiling devel/capnproto 0.9.0 | ||
---|---|---|---|
Product: | Base System | Reporter: | Fernando Apesteguía <fernape> |
Component: | bin | Assignee: | Dimitry Andric <dim> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | dim, emaste |
Priority: | --- | Keywords: | crash |
Version: | CURRENT | ||
Hardware: | amd64 | ||
OS: | Any | ||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257919 |
Description
Fernando Apesteguía
2021-08-20 08:13:04 UTC
I can not attach the .cpp file due to its size (4.0MB). The file and the reproducer script can be taken from /home/fernape/bug_257961 in freefall. Thanks! FWIW, I updated both currents (host and jail) and I can not reproduce this anymore. build of devel/capnproto | capnproto-0.9.0 ended at Sat Aug 21 13:21:33 CEST 2021 build time: 00:04:32 [00:26:01] Logs: /usr/local/poudriere/data/logs/bulk/current-default/2021-08-21_12h55m33s [00:26:01] Cleaning up [00:26:01] Unmounting file systems [fernape@vm-current ~]$ uname -a FreeBSD vm-current 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n248803-eba8e643b19: Thu Aug 19 08:47:12 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 [fernape@vm-current ~]$ poudriere jail -l current 14.0-CURRENT 1400030 5d75ffdd0 amd64 git+https 2021-08-20 22:34:46 /usr/local/poudriere/jails/current Do you want me to keep this PR open? It does not block capnproto anymore. I couldn't reproduce with clang 12.0.1 in 14.0-CURRENT (main-n248773-d75b0870e542 as of 2021-08-18), so it's an issue with clang 11.0.1. It might still be interesting to fix for e.g. stable/11 which has clang 11. (Although this might only happen with assertions enabled.) A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=b65d87e5d7b58fd06cf4a3061b564d62f1033999 commit b65d87e5d7b58fd06cf4a3061b564d62f1033999 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2021-08-21 14:26:51 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2021-08-21 15:13:37 +0000 Apply upstream clang fix for assertion failure compiling devel/capnproto Merge commit 48c70c1664aa from llvm git (by Richard Smith): Extend memset-to-zero optimization to C++11 aggregate functional casts Aggr{...}. We previously missed these cases due to not stepping over the additional AST nodes representing their syntactic form. Direct commit to stable/12, as both main and stable/13 already have this fix as part of clang 12.0.1. Reported by: fernape PR: 257961 contrib/llvm-project/clang/lib/CodeGen/CGExprAgg.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) A commit in branch stable/11 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=d5c7f929b50dbd5965c500ab42c93d0a2736ef99 commit d5c7f929b50dbd5965c500ab42c93d0a2736ef99 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2021-08-21 15:13:10 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2021-08-21 15:14:00 +0000 Apply upstream clang fix for assertion failure compiling devel/capnproto Merge commit 48c70c1664aa from llvm git (by Richard Smith): Extend memset-to-zero optimization to C++11 aggregate functional casts Aggr{...}. We previously missed these cases due to not stepping over the additional AST nodes representing their syntactic form. Direct commit to stable/11, as both main and stable/13 already have this fix as part of clang 12.0.1. Reported by: fernape PR: 257961 contrib/llvm-project/clang/lib/CodeGen/CGExprAgg.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) |