[clang] [llvm] Enable LLDB tests in Linux pre-merge CI (PR #94208)

2024-06-05 Thread Dmitry Vasilyev via cfe-commits

slydiman wrote:

We have configured few buildbots for cross lldb tests with Windows x86_64, 
Linux x86_64 hosts and Linux Aarch64 targets. Our main setup is Windows host 
and currently it is 100% green. We still have a number of local patches. The 
biggest changes are related to Makefile.rules to build API tests with different 
tools and hosts and linking the correct libraries on Linux host. We also 
adapted Shell tests to run on a remote target. We will prepare PRs to mainline 
soon. We have fugured out that currently lldb does not support CXX ABI 2. Few 
tests are marked as XFAIL with unclear reasons and strange conditions, so we 
got few XPASS tests. Most failed API tests on Windows hosts were related to 
path separators. Currently SBFileSpec (FileSpec wrapper for python) does not 
have a constructor to pass tripple or style, so it is impossible to create a 
POSIX path in API tests on the Windows host. But FileSpec stores a normalized 
path and the path style is completelly ignored inside lldb code.

https://github.com/llvm/llvm-project/pull/94208
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [llvm] Enable LLDB tests in pre-merge CI (PR #94208)

2024-06-03 Thread Dmitry Vasilyev via cfe-commits

slydiman wrote:

> First Windows CI results: LLDB unit tests do not even build.

Please note the following for Windows setup:

- We used cmake 3.25.3 because we got some issues with the latest cmake.
- python prerequisites are: `python -m pip install swig pexpect psutil`.
- Most gnu tools may be used from `git` distributive, PATH env must contain 
C:\Program Files\Git\usr\bin
- lldb API tests require `make` which can be installed via Chocolatey `choco 
install make`.
- lldb for Windows host must be compiled with 
`CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL` (or MultiThreadedDebugDLL in case 
of CMAKE_BUILD_TYPE=Debug), otherwise python and lldb will use different UCRT 
instances and python will crash with the exit code 0xC409 
(STATUS_STACK_BUFFER_OVERRUN) because of an assert in UCRT.

https://github.com/llvm/llvm-project/pull/94208
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [llvm] [AArch64] Improve bcvtn2 and remove aarch64_neon_bfcvt intrinsics (PR #120363)

2025-01-21 Thread Dmitry Vasilyev via cfe-commits

slydiman wrote:

> Ah - thanks. It is hopefully fixed in 
> [6dc356d](https://github.com/llvm/llvm-project/commit/6dc356d6985fc49d1b69c20cc27f6b066742144a)?

Yes, https://lab.llvm.org/buildbot/#/builders/197/builds/927
Thanks.


https://github.com/llvm/llvm-project/pull/120363
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [llvm] [AArch64] Improve bcvtn2 and remove aarch64_neon_bfcvt intrinsics (PR #120363)

2025-01-21 Thread Dmitry Vasilyev via cfe-commits

slydiman wrote:

One more failure on Windows host using MSVC
https://lab.llvm.org/buildbot/#/builders/197/builds/919
```
FAILED: 
tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBuiltin.cpp.obj 
ccache 
C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe
  /nologo /TP -DCLANG_BUILD_STATIC -DGTEST_HAS_RTTI=0 -DUNICODE 
-D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS 
-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS 
-D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS 
-D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS 
-D__STDC_LIMIT_MACROS 
-IC:\buildbot\as-builder-10\lldb-x-aarch64\build\tools\clang\lib\CodeGen 
-IC:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\clang\lib\CodeGen 
-IC:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\clang\include 
-IC:\buildbot\as-builder-10\lldb-x-aarch64\build\tools\clang\include 
-IC:\buildbot\as-builder-10\lldb-x-aarch64\build\include 
-IC:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\llvm\include 
-D__OPTIMIZE__ /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj 
/permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 
-wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 
-wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 
-wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 
-wd4275 -w14062 -we4238 /Gw /O2 /Ob2  -MD  /EHs-c- /GR- -UNDEBUG -std:c++17 
/showIncludes 
/Fotools\clang\lib\CodeGen\CMakeFiles\obj.clangCodeGen.dir\CGBuiltin.cpp.obj 
/Fdtools\clang\lib\CodeGen\CMakeFiles\obj.clangCodeGen.dir\ /FS -c 
C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\clang\lib\CodeGen\CGBuiltin.cpp
C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\clang\lib\CodeGen\CGBuiltin.cpp(12824):
 error C2039: 'iota': is not a member of 'std'
C:\Program Files\Microsoft Visual 
Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\forward_list(23): note: 
see declaration of 'std'
C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\clang\lib\CodeGen\CGBuiltin.cpp(12824):
 error C3861: 'iota': identifier not found
C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\clang\lib\CodeGen\CGBuiltin.cpp(12834):
 error C2039: 'iota': is not a member of 'std'
C:\Program Files\Microsoft Visual 
Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\forward_list(23): note: 
see declaration of 'std'
C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\clang\lib\CodeGen\CGBuiltin.cpp(12834):
 error C3861: 'iota': identifier not found
C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\clang\lib\CodeGen\CGBuiltin.cpp(12836):
 error C2039: 'iota': is not a member of 'std'
C:\Program Files\Microsoft Visual 
Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\forward_list(23): note: 
see declaration of 'std'
C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\clang\lib\CodeGen\CGBuiltin.cpp(12836):
 error C3861: 'iota': identifier not found
```

https://github.com/llvm/llvm-project/pull/120363
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang-tools-extra] [clang] Improved canonicalization for template specialization types (PR #135119)

2025-04-10 Thread Dmitry Vasilyev via cfe-commits

slydiman wrote:

Please note we got the assert (ASTContext.cpp, line 5619) at least on the 
following buildbots:

[lldb-remote-linux-win](https://lab.llvm.org/buildbot/#/builders/197):
```
UNSUPPORTED: LLDB 
(C:\buildbot\as-builder-10\lldb-x-aarch64\build\bin\clang.exe-aarch64) :: 
test_dsym (TestIteratorFromStdModule.TestCase.test_dsym)
(test case does not fall in any category of interest for this run) 
Assertion failed: Arg.structurallyEquals(getCanonicalTemplateArgument(Arg)), 
file 
C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\clang\lib\AST\ASTContext.cpp,
 line 5619
Windows fatal exception: code 0x8003
Current thread 0x287c (most recent call first):
  File 
"C:\buildbot\as-builder-10\lldb-x-aarch64\build\Lib\site-packages\lldb\__init__.py",
 line 6539 in EvaluateExpression
  File 
"C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py",
 line 2547 in expect_expr
  File 
"C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\lldb\test\API\commands\expression\import-std-module\iterator\TestIteratorFromStdModule.py",
 line 24 in test
  File 
"C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\lldb\packages\Python\lldbsuite\test\decorators.py",
 line 148 in wrapper
  File 
"C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py",
 line 1804 in test_method
  File "C:\Python312\Lib\unittest\case.py", line 589 in _callTestMethod
  File "C:\Python312\Lib\unittest\case.py", line 634 in run
  File "C:\Python312\Lib\unittest\case.py", line 690 in __call__
  File "C:\Python312\Lib\unittest\suite.py", line 122 in run
  File "C:\Python312\Lib\unittest\suite.py", line 84 in __call__
  File "C:\Python312\Lib\unittest\suite.py", line 122 in run
  File "C:\Python312\Lib\unittest\suite.py", line 84 in __call__
  File "C:\Python312\Lib\unittest\runner.py", line 240 in run
  File 
"C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\lldb\packages\Python\lldbsuite\test\dotest.py",
 line 1108 in run_suite
  File 
"C:\buildbot\as-builder-10\lldb-x-aarch64\llvm-project\lldb\test\API\dotest.py",
 line 8 in 
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and 
include the crash backtrace.
Exception Code: 0x8003
  #0 0x7ffade6ec4b5 PyInit__lldb 
(C:\buildbot\as-builder-10\lldb-x-aarch64\build\Lib\site-packages\lldb\_lldb.cp312-win_amd64.pyd+0x9fc4b5)
  #1 0x7ffb08a0bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
  #2 0x7ffb08a0cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
  #3 0x7ffb08a0e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
  #4 0x7ffb08a0e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)```
```
[lldb-remote-linux-ubuntu](https://lab.llvm.org/buildbot/#/builders/195):
```
python3.12: 
/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/clang/lib/AST/ASTContext.cpp:5619:
clang::QualType 
clang::ASTContext::getCanonicalTemplateSpecializationType(clang::TemplateName, 
llvm::ArrayRef) const:
Assertion `Arg.structurallyEquals(getCanonicalTemplateArgument(Arg))' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and 
include the crash backtrace.
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH 
or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  _lldb.cpython-312-x86_64-linux-gnu.so 0x7b63c144ae62
1  _lldb.cpython-312-x86_64-linux-gnu.so 0x7b63c14480cf
2  _lldb.cpython-312-x86_64-linux-gnu.so 0x7b63c1448214
3  libc.so.6 0x7b63c8445330
4  libc.so.6 0x7b63c849eb2c pthread_kill + 284
5  libc.so.6 0x7b63c844527e gsignal + 30
6  libc.so.6 0x7b63c84288ff abort + 223
7  libc.so.6 0x7b63c842881b
8  libc.so.6 0x7b63c843b517
```

https://github.com/llvm/llvm-project/pull/135119
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang-tools-extra] Revert "[clang] Improved canonicalization for template specialization types" (PR #135354)

2025-04-11 Thread Dmitry Vasilyev via cfe-commits

https://github.com/slydiman created 
https://github.com/llvm/llvm-project/pull/135354

Reverts llvm/llvm-project#135119 because of the assert in ASTContext.cpp, line 
5619.
See #135352 for details.



>From 2c7b3620502462008c3150df0522b441fb9527b3 Mon Sep 17 00:00:00 2001
From: Dmitry Vasilyev 
Date: Fri, 11 Apr 2025 16:12:19 +0400
Subject: [PATCH] =?UTF-8?q?Revert=20"[clang]=20Improved=20canonicalization?=
 =?UTF-8?q?=20for=20template=20specialization=20types=20(=E2=80=A6"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This reverts commit 3954d258a5d20c418718bb2f655665e02e6a7475.
---
 clang-tools-extra/clangd/AST.cpp  |   3 +-
 clang/docs/ReleaseNotes.rst   |   2 -
 clang/include/clang/AST/ASTContext.h  |  46 ++--
 clang/include/clang/AST/PropertiesBase.td |   5 +-
 clang/include/clang/AST/TemplateBase.h|  13 +-
 clang/include/clang/AST/Type.h|   7 +-
 clang/include/clang/AST/TypeProperties.td |  30 ++-
 clang/lib/AST/ASTContext.cpp  | 236 --
 clang/lib/AST/ASTDiagnostic.cpp   |   8 +-
 clang/lib/AST/ASTImporter.cpp |  34 +--
 clang/lib/AST/DeclTemplate.cpp|   7 +-
 clang/lib/AST/QualTypeNames.cpp   |   3 +-
 clang/lib/AST/TemplateBase.cpp|  19 +-
 clang/lib/AST/Type.cpp|  50 ++--
 clang/lib/Sema/SemaCXXScopeSpec.cpp   |  18 +-
 clang/lib/Sema/SemaExpr.cpp   |  20 +-
 clang/lib/Sema/SemaLookup.cpp |   3 +-
 clang/lib/Sema/SemaTemplate.cpp   | 162 ++--
 clang/lib/Sema/SemaTemplateDeduction.cpp  |  45 ++--
 .../lib/Sema/SemaTemplateInstantiateDecl.cpp  |  11 +-
 clang/lib/Sema/SemaTemplateVariadic.cpp   |   3 +-
 clang/lib/Sema/TreeTransform.h|  13 +-
 .../class.derived.general/p2.cpp  |   2 +-
 .../temp/temp.decls/temp.class.spec/p6.cpp|   4 +-
 .../undefined-partial-specialization.cpp  |   2 +-
 clang/test/SemaTemplate/make_integer_seq.cpp  |  61 +++--
 clang/test/SemaTemplate/type_pack_element.cpp |  57 +++--
 clang/unittests/AST/TypePrinterTest.cpp   |   6 +-
 28 files changed, 422 insertions(+), 448 deletions(-)

diff --git a/clang-tools-extra/clangd/AST.cpp b/clang-tools-extra/clangd/AST.cpp
index 3b991e5e9013f..66b587f00ff4a 100644
--- a/clang-tools-extra/clangd/AST.cpp
+++ b/clang-tools-extra/clangd/AST.cpp
@@ -439,8 +439,7 @@ QualType declaredType(const TypeDecl *D) {
   if (const auto *CTSD = llvm::dyn_cast(D))
 if (const auto *Args = CTSD->getTemplateArgsAsWritten())
   return Context.getTemplateSpecializationType(
-  TemplateName(CTSD->getSpecializedTemplate()), Args->arguments(),
-  /*CanonicalArgs=*/std::nullopt);
+  TemplateName(CTSD->getSpecializedTemplate()), Args->arguments());
   return Context.getTypeDeclType(D);
 }
 
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 69c7369755c67..db8dad268a8a7 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -301,8 +301,6 @@ Improvements to Clang's diagnostics
 - Clang now better preserves the sugared types of pointers to member.
 - Clang now better preserves the presence of the template keyword with 
dependent
   prefixes.
-- Clang now in more cases avoids printing 'type-parameter-X-X' instead of the 
name of
-  the template parameter.
 - Clang now respects the current language mode when printing expressions in
   diagnostics. This fixes a bunch of `bool` being printed as `_Bool`, and also
   a bunch of HLSL types being printed as their C++ equivalents.
diff --git a/clang/include/clang/AST/ASTContext.h 
b/clang/include/clang/AST/ASTContext.h
index b8ea2af9215d2..b1e6344576eb5 100644
--- a/clang/include/clang/AST/ASTContext.h
+++ b/clang/include/clang/AST/ASTContext.h
@@ -367,6 +367,9 @@ class ASTContext : public RefCountedBase {
  const ASTContext&>
 CanonTemplateTemplateParms;
 
+  TemplateTemplateParmDecl *
+getCanonicalTemplateTemplateParmDecl(TemplateTemplateParmDecl *TTP) const;
+
   /// The typedef for the __int128_t type.
   mutable TypedefDecl *Int128Decl = nullptr;
 
@@ -1808,26 +1811,22 @@ class ASTContext : public RefCountedBase {
   bool ParameterPack,
   TemplateTypeParmDecl *ParmDecl = nullptr) const;
 
-  QualType getCanonicalTemplateSpecializationType(
-  TemplateName T, ArrayRef CanonicalArgs) const;
+  QualType getTemplateSpecializationType(TemplateName T,
+ ArrayRef Args,
+ QualType Canon = QualType()) const;
 
   QualType
-  getTemplateSpecializationType(TemplateName T,
-ArrayRef SpecifiedArgs,
-ArrayRef CanonicalArgs,
-QualType Under

[clang] [clang-tools-extra] Revert "[clang] Improved canonicalization for template specialization types" (PR #135354)

2025-04-11 Thread Dmitry Vasilyev via cfe-commits

https://github.com/slydiman closed 
https://github.com/llvm/llvm-project/pull/135354
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang-tools-extra] [llvm] Reland: [clang] Improved canonicalization for template specialization types (PR #135414)

2025-04-11 Thread Dmitry Vasilyev via cfe-commits

slydiman wrote:

Note [lldb-x86_64-debian](https://lab.llvm.org/buildbot/#/builders/162) and 
[lldb-aarch64-windows](https://lab.llvm.org/buildbot/#/builders/141) did not 
fail because used gcc and msvc to build lldb. But failed lldb tests required 
clang. I will test this patch on the environment similar to 
[lldb-remote-linux-win](https://lab.llvm.org/buildbot/#/builders/197).

https://github.com/llvm/llvm-project/pull/135414
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang-tools-extra] [llvm] Reland: [clang] Improved canonicalization for template specialization types (PR #135414)

2025-04-11 Thread Dmitry Vasilyev via cfe-commits

slydiman wrote:

I have tested the initial commit 
https://github.com/llvm/llvm-project/pull/135414/commits/f8e6b60276eabe0d89db03df95af1315590b78b9

The issue is still there
```
Assertion failed: Arg.structurallyEquals(getCanonicalTemplateArgument(Arg)), 
file D:\as\mainline\llvm-project\clang\lib\AST\ASTContext.cpp, line 5619
 Windows fatal exception: code 0x8003

Current thread 0x6b58 (most recent call first):
  File "D:\test\build-lldb\Lib\site-packages\lldb\__init__.py", line 6539 in 
EvaluateExpression
  File "D:\test\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", 
line 2547 in expect_expr
  File 
"D:\test\llvm-project\lldb\test\API\commands\expression\import-std-module\array\TestArrayFromStdModule.py",
 line 29 in test
  File 
"D:\test\llvm-project\lldb\packages\Python\lldbsuite\test\decorators.py", line 
148 in wrapper
  File "D:\test\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", 
line 1804 in test_method
  File "C:\Python312\Lib\unittest\case.py", line 589 in _callTestMethod
  File "C:\Python312\Lib\unittest\case.py", line 634 in run
  File "C:\Python312\Lib\unittest\case.py", line 690 in __call__
  File "C:\Python312\Lib\unittest\suite.py", line 122 in run
  File "C:\Python312\Lib\unittest\suite.py", line 84 in __call__
  File "C:\Python312\Lib\unittest\suite.py", line 122 in run
  File "C:\Python312\Lib\unittest\suite.py", line 84 in __call__
  File "C:\Python312\Lib\unittest\runner.py", line 240 in run
  File "D:\test\llvm-project\lldb\packages\Python\lldbsuite\test\dotest.py", 
line 1108 in run_suite
  File "D:\test\llvm-project\lldb\test\API\dotest.py", line 8 in 
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and 
include the crash backtrace.
Exception Code: 0x8003
  #0 0x7ffd386632f5 PyInit__lldb 
(D:\test\build-lldb\Lib\site-packages\lldb\_lldb.cp312-win_amd64.pyd+0x9f32f5)
  #1 0x7ffe13a71989 (C:\WINDOWS\System32\ucrtbase.dll+0xc1989)
  #2 0x7ffe13a54ab1 (C:\WINDOWS\System32\ucrtbase.dll+0xa4ab1)
  #3 0x7ffe13a72986 (C:\WINDOWS\System32\ucrtbase.dll+0xc2986)
  #4 0x7ffe13a72b61 (C:\WINDOWS\System32\ucrtbase.dll+0xc2b61)
  #5 0x7ffd3af1f959 PyInit__lldb 
(D:\test\build-lldb\Lib\site-packages\lldb\_lldb.cp312-win_amd64.pyd+0x32af959)
  #6 0x7ffd3b18d481 PyInit__lldb 
(D:\test\build-lldb\Lib\site-packages\lldb\_lldb.cp312-win_amd64.pyd+0x351d481)
...
```
I will rebuild the debug version to get the useful stack trace.

https://github.com/llvm/llvm-project/pull/135414
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang-tools-extra] [llvm] Reland: [clang] Improved canonicalization for template specialization types (PR #135414)

2025-04-11 Thread Dmitry Vasilyev via cfe-commits

slydiman wrote:

I tried the single test
`C:/Python312/python_d.exe D:/test/llvm-project/lldb/test/API/dotest.py ... 
D:/test/llvm-project/lldb/test/API/commands/expression/import-std-module/array 
-p TestArrayFromStdModule.py`

Here is the debug stack trace:
```
Assertion failed: Arg.structurallyEquals(getCanonicalTemplateArgument(Arg)), 
file D:\test\llvm-project\clang\lib\AST\ASTContext.cpp, line 5619
 Windows fatal exception: code 0x8003
 
Current thread 0x6a18 (most recent call first):
  File "D:\test\build-lldb\Lib\site-packages\lldb\__init__.py", line 6539 in 
EvaluateExpression
  File "D:\test\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", 
line 2547 in expect_expr
  File 
"D:\test\llvm-project\lldb\test\API\commands\expression\import-std-module\array\TestArrayFromStdModule.py",
 line 29 in test
  File 
"D:\test\llvm-project\lldb\packages\Python\lldbsuite\test\decorators.py", line 
148 in wrapper
  File "D:\test\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", 
line 1804 in test_method
  File "C:\Python312\Lib\unittest\case.py", line 589 in _callTestMethod
  File "C:\Python312\Lib\unittest\case.py", line 634 in run
  File "C:\Python312\Lib\unittest\case.py", line 690 in __call__
  File "C:\Python312\Lib\unittest\suite.py", line 122 in run
  File "C:\Python312\Lib\unittest\suite.py", line 84 in __call__
  File "C:\Python312\Lib\unittest\suite.py", line 122 in run
  File "C:\Python312\Lib\unittest\suite.py", line 84 in __call__
  File "C:\Python312\Lib\unittest\runner.py", line 240 in run
  File "D:\test\llvm-project\lldb\packages\Python\lldbsuite\test\dotest.py", 
line 1108 in run_suite
  File "D:\test\llvm-project\lldb\test\API\dotest.py", line 8 in 
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and 
include the crash backtrace.
Exception Code: 0x8003
  #0 0x7ffd2b9f5bac HandleAbort 
D:\test\llvm-project\llvm\lib\Support\Windows\Signals.inc:429:0
  #1 0x7ffdcdf390ed (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0xa90ed)
  #2 0x7ffdcdf3ae49 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0xaae49)
  #3 0x7ffdcdf40c6f (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0xb0c6f)
  #4 0x7ffdcdf3eba1 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0xaeba1)
  #5 0x7ffdcdf418af (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0xb18af)
  #6 0x7ffd33b0afe1 
clang::ASTContext::getCanonicalTemplateSpecializationType(class 
clang::TemplateName, class llvm::ArrayRef) const 
D:\test\llvm-project\clang\lib\AST\ASTContext.cpp:5619:0
  #7 0x7ffd340cff87 
clang::ASTNodeImporter::VisitTemplateSpecializationType(class 
clang::TemplateSpecializationType const *) 
D:\test\llvm-project\clang\lib\AST\ASTImporter.cpp:1665:0
  #8 0x7ffd34184739 clang::TypeVisitor>::Visit(class clang::Type const *) 
D:\test\build-lldb\tools\clang\include\clang\AST\TypeNodes.inc:77:0
  #9 0x7ffd340b9a49 clang::ASTImporter::Import(class clang::Type const *) 
D:\test\llvm-project\clang\lib\AST\ASTImporter.cpp:9166:0
 #10 0x7ffd340b9c23 clang::ASTImporter::Import(class clang::QualType) 
D:\test\llvm-project\clang\lib\AST\ASTImporter.cpp:9180:0
 #11 0x7ffd34156589 clang::ASTNodeImporter::import(class clang::QualType const &) 
D:\test\llvm-project\clang\lib\AST\ASTImporter.cpp:217:0
 #12 0x7ffd340cffe8 
clang::ASTNodeImporter::VisitTemplateSpecializationType(class 
clang::TemplateSpecializationType const *) 
D:\test\llvm-project\clang\lib\AST\ASTImporter.cpp:1669:0
 #13 0x7ffd34184739 clang::TypeVisitor>::Visit(class clang::Type const *) 
D:\test\build-lldb\tools\clang\include\clang\AST\TypeNodes.inc:77:0
 #14 0x7ffd340b9a49 clang::ASTImporter::Import(class clang::Type const *) 
D:\test\llvm-project\clang\lib\AST\ASTImporter.cpp:9166:0
 #15 0x7ffd340bd0b3 clang::ASTImporter::Import(class 
clang::NestedNameSpecifier *) 
D:\test\llvm-project\clang\lib\AST\ASTImporter.cpp:9795:0
 #16 0x7ffd34161596 clang::ASTImporter::importInto(class clang::NestedNameSpecifier *&, class 
clang::NestedNameSpecifier *const &) 
D:\test\llvm-project\clang\include\clang\AST\ASTImporter.h:310:0
 #17 0x7ffd340bd375 clang::ASTImporter::Import(class 
clang::NestedNameSpecifierLoc) 
D:\test\llvm-project\clang\lib\AST\ASTImporter.cpp:9823:0
 #18 0x7ffd3415557b clang::ASTNodeImporter::import(class clang::NestedNameSpecifierLoc const &) 
D:\test\llvm-project\clang\lib\AST\ASTImporter.cpp:217:0
 #19 0x7ffd34160edd clang::ASTNodeImporter::importChecked(class llvm::Error &, class 
clang::NestedNameSpecifierLoc const &) 
D:\test\llvm-project\clang\lib\AST\ASTImporter.cpp:693:0
 #20 0x7ffd34108489 
clang::ASTNodeImporter::VisitDependentScopeDeclRefExpr(class 
clang::DependentScopeDeclRefExpr *) 
D:\test\llvm-project\clang\lib\AST\ASTImporter.cpp:8561:0
 #21 0x7ffd3417d423 clang::StmtVisitorBase>::Visit(class 
clang::Stmt *) 
D:\test\build-lldb\tools\clang\include\clang\AST\StmtNodes.inc:462:0
 #22 0x7ffd340bc975 clang::ASTImporter::Import(class clang::Stmt *) 
D:\test\llvm-project\clang\lib

[clang] [clang-tools-extra] [llvm] Reland: [clang] Improved canonicalization for template specialization types (PR #135414)

2025-04-11 Thread Dmitry Vasilyev via cfe-commits

slydiman wrote:

> I still wish I could test lldb locally. I will keep trying.

Please note lldb uses the system's `debugserver` on macOS. But on other systems 
(Linux, Windows) it uses its own lldb-server. You may not be able to reproduce 
the problem on macOS.

https://github.com/llvm/llvm-project/pull/135414
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits