[llvm-bugs] [Bug 39349] New: cannot execute scan-build-7 due to extra <U+200B>
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 18 23:32:54 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39349
Bug ID: 39349
Summary: cannot execute scan-build-7 due to extra <U+200B>
Product: Packaging
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: deb packages
Assignee: unassignedbugs at nondot.org
Reporter: hannes.franke at smartoptics.de
CC: llvm-bugs at lists.llvm.org
The `scan-build` perl script installed into `/usr/bin/scan-build` contains an
extra unicode-char <U+200B> which trips up the perl interpreter.
To reproduce:
"deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main" >
/etc/apt/sources.list.d/llvm-latest.list
apt-get update
apt-get install clang-tools-7
/usr/bin/scan-build-7
Output:
Unrecognized character \xE2; marked by <-- HERE after /]*$)/ or
<-- HERE near column 116 at /usr/bin/scan-build-7 line 1082.
Inspecting the file /usr/bin/scan-build-7 at line 1081-1083 (with e.g. vim or
less)
$Cmd =~ /(.*\/?llvm-gcc[^\/]*$)/ or
<U+200B> $Cmd =~ /(.*\/?clang[^\/]*$)/ or
$Cmd =~ /(.*\/?ccc-analyzer[^\/]*$)/) {
shows the extra <U+200B> 'ZERO WIDTH SPACE' character.
If I remove this character everything works as expected.
It doesn't seem to exist inside the sources themselves, at least the ones
offered for download (https://releases.llvm.org/download.html#7.0.0), so I
guess it is a packaging-only problem.
The package downloaded is: (snips from apt-get install)
Get:1 http://apt.llvm.org/xenial llvm-toolchain-xenial-7/main amd64
clang-tools-7 amd64 1:7~svn342187-1~exp1~20180920124227.28
Setting up clang-tools-7 (1:7~svn342187-1~exp1~20180920124227.28)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181019/d3fdbc98/attachment-0001.html>
More information about the llvm-bugs
mailing list