Skip to content

clang-tidy crash when compile database path ends with * #55881

Closed as not planned
Closed as not planned
@yh-sb

Description

@yh-sb

Compile database located in "build" directory. When I tried to set "*" symbol in the end of its path, clang-tidy crashed.

D:\dev\c++\projects\some_project>clang-tidy --quiet -p build* main.cpp
LLVM ERROR: Cannot chdir into "D:/dev/c++/projects/some_project/build"!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: clang-tidy --quiet -p build* main.cpp
 #0 0x00007ff7b2943436 (C:\mydevtools\Clang\bin\clang-tidy.exe+0x1093436)
 #1 0x00007fffe38fcd84 (C:\Windows\System32\ucrtbase.dll+0x7cd84)
 #2 0x00007fffe38fdd61 (C:\Windows\System32\ucrtbase.dll+0x7dd61)
 #3 0x00007ff7b2917a62 (C:\mydevtools\Clang\bin\clang-tidy.exe+0x1067a62)
 #4 0x00007ff7b2d3ed08 (C:\mydevtools\Clang\bin\clang-tidy.exe+0x148ed08)
 #5 0x00007ff7b2d5a769 (C:\mydevtools\Clang\bin\clang-tidy.exe+0x14aa769)
 #6 0x00007ff7b18b3c8a (C:\mydevtools\Clang\bin\clang-tidy.exe+0x3c8a)
 #7 0x00007ff7b3785e20 (C:\mydevtools\Clang\bin\clang-tidy.exe+0x1ed5e20)
 #8 0x00007fffe43654e0 (C:\Windows\System32\KERNEL32.DLL+0x154e0)
 #9 0x00007fffe622485b (C:\Windows\SYSTEM32\ntdll.dll+0x485b)

Version:

LLVM (http://llvm.org/):
  LLVM version 14.0.0
  Optimized build.
  Default target: x86_64-pc-windows-msvc
  Host CPU: skylake

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-tidycrashPrefer [crash-on-valid] or [crash-on-invalid]incompleteIssue not complete (e.g. missing a reproducer, build arguments, etc.)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions