Bug#833802: clang-tidy-3.9: readability-identifier-naming segfaults
paul cannon
pik at debian.org
Mon Aug 8 18:24:14 UTC 2016
Package: clang-tidy-3.9
Version: 1:3.9~svn274438-1
Severity: normal
Tags: upstream, fixed-in-experimental, fixed-upstream
Running clang-tidy-3.9 with the "readability-identifier-naming" check
enabled fails with a segmentation fault at the slightest provocation:
paul at turing:~$ cat breaks-clang-tidy.cpp
#include <iostream>
int main()
{
return 0;
}
paul at turing:~$ clang-tidy-3.9 breaks-clang-tidy.cpp -checks='-*,readability-identifier-naming'
Error while trying to load a compilation database:
Could not auto-detect compilation database for file "breaks-clang-tidy.cpp"
No compilation database found in /home/paul or any parent directory
json-compilation-database: Error while opening JSON database: No such file or directory
Running without flags.
Segmentation fault
paul at turing:~$
This matches the behavior complained of in the upstream bug at
https://llvm.org/bugs/show_bug.cgi?id=28481 , and the patch attached to
that bug does indeed fix the problem.
The problem is also fixed in version 1:3.9~svn275918-1~exp1 (in
experimental).
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.4.0-28-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages clang-tidy-3.9 depends on:
ii libc6 2.23-4
ii libgcc1 1:6.1.1-11
ii libllvm3.9 1:3.9~svn274438-1
ii libstdc++6 6.1.1-11
ii python 2.7.11-2
clang-tidy-3.9 recommends no packages.
clang-tidy-3.9 suggests no packages.
-- no debconf information
More information about the Pkg-llvm-team
mailing list