| Summary: | Clang 10 crashes on Ceph-master source | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Willem Jan Withagen <wjw> | ||||
| Component: | bin | Assignee: | Dimitry Andric <dim> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Some People | CC: | akuz84, asomers, dim, eserte12, toolchain | ||||
| Priority: | --- | Keywords: | crash | ||||
| Version: | CURRENT | Flags: | koobs:
mfc-stable12?
koobs: mfc-stable11- |
||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| See Also: | https://bugs.llvm.org/show_bug.cgi?id=45521 | ||||||
| Attachments: |
|
||||||
|
Description
Willem Jan Withagen
2020-04-11 10:21:52 UTC
(In reply to Willem Jan Withagen from comment #0) > Preproccesed source is to big to upload. > Find it on: > http://smtp.digiware.nl/FreeBSD/config-958680.cpp.xz For some reason this doesn't work over IPv6: $ curl -v -O http://smtp.digiware.nl/FreeBSD/config-958680.cpp.xz * Trying 2001:4cb8:90:ffff::3:80... * TCP_NODELAY set * Connected to smtp.digiware.nl (2001:4cb8:90:ffff::3) port 80 (#0) > GET /FreeBSD/config-958680.cpp.xz HTTP/1.1 > Host: smtp.digiware.nl > User-Agent: curl/7.68.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 404 Not Found < Date: Sat, 11 Apr 2020 11:39:43 GMT < Server: Apache/2.4.41 (FreeBSD) PHP/7.2.26 < Content-Length: 196 < Content-Type: text/html; charset=iso-8859-1 < <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL was not found on this server.</p> </body></html> but it *does* work over IPv4? $ curl -4 -v -O http://smtp.digiware.nl/FreeBSD/config-958680.cpp.xz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 176.74.240.9:80... * TCP_NODELAY set * Connected to smtp.digiware.nl (176.74.240.9) port 80 (#0) > GET /FreeBSD/config-958680.cpp.xz HTTP/1.1 > Host: smtp.digiware.nl > User-Agent: curl/7.68.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Date: Sat, 11 Apr 2020 11:40:38 GMT < Server: Apache/2.4.41 (FreeBSD) PHP/7.2.26 < Last-Modified: Sat, 11 Apr 2020 10:16:09 GMT < ETag: "14dce4-5a3012386c54b" < Accept-Ranges: bytes < Content-Length: 1367268 < Content-Type: application/x-xz < { [2641 bytes data] 100 1335k 100 1335k 0 0 14.1M 0 --:--:-- --:--:-- --:--:-- 14.1M * Connection #0 to host smtp.digiware.nl left intact Anyway I got the file now. Reduced and reported upstream: https://bugs.llvm.org/show_bug.cgi?id=45521 A commit references this bug: Author: dim Date: Wed Jul 8 16:50:48 UTC 2020 New revision: 363013 URL: https://svnweb.freebsd.org/changeset/base/363013 Log: Merge commit 065fc1eafe7c from llvm git (by Richard Smith): PR45521: Preserve the value kind when performing a standard conversion sequence on a glvalue expression. If the sequence is supposed to perform an lvalue-to-rvalue conversion, then one will be specified as the first conversion in the sequence. Otherwise, one should not be invented. This should fix clang crashing with "can't implicitly cast lvalue to rvalue with this cast kind", followed by "UNREACHABLE executed at /usr/src/contrib/llvm-project/clang/lib/Sema/Sema.cpp:538!", when building recent versions of Ceph, and the CPAN module SYBER/Date-5.2.0. Reported by: Willem Jan Withagen <wjw@digiware.nl>, eserte12@yahoo.de PR: 245530, 247812 MFC after: 3 days Changes: head/contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp head/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp *** Bug 247812 has been marked as a duplicate of this bug. *** ^Triage: Assign to committer resolving and track pending merge (assuming stable/11 doesn't need it (no clang 10)). A commit references this bug: Author: dim Date: Sat Jul 11 09:43:17 UTC 2020 New revision: 363092 URL: https://svnweb.freebsd.org/changeset/base/363092 Log: MFC r363013: Merge commit 065fc1eafe7c from llvm git (by Richard Smith): PR45521: Preserve the value kind when performing a standard conversion sequence on a glvalue expression. If the sequence is supposed to perform an lvalue-to-rvalue conversion, then one will be specified as the first conversion in the sequence. Otherwise, one should not be invented. This should fix clang crashing with "can't implicitly cast lvalue to rvalue with this cast kind", followed by "UNREACHABLE executed at /usr/src/contrib/llvm-project/clang/lib/Sema/Sema.cpp:538!", when building recent versions of Ceph, and the CPAN module SYBER/Date-5.2.0. Reported by: Willem Jan Withagen <wjw@digiware.nl>, eserte12@yahoo.de PR: 245530, 247812 Changes: _U stable/11/ _U stable/11/contrib/llvm-project/clang/ stable/11/contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp stable/11/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp _U stable/12/ stable/12/contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp stable/12/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp |