Bug#915390: clazy: Segmentation fault compiling any file
Hi, Lisandro:
On 3/12/18 22:55, Lisandro Damián Nicanor Pérez Meyer wrote:
> Hi Alberto!
>
> El lun., 3 dic. 2018 09:48, Alberto Luaces <aluaces@udc.es
> <mailto:aluaces@udc.es>> escribió:
>
> Package: clazy
> Version: 1.4-3
> Severity: grave
> Justification: renders package unusable
>
> Dear Maintainer,
>
> attempting to compile any file on my system results in a segfault.
> Could it be that a runtime dependency is missing from d/control?
>
>
> Clazy calls clang, so maybe that's what's missing. I can't tell you
> right now which package it is, but should be easy to find.
I had clang (and thus clang-6.0) installed. I tried again by installing
clang-7, but with similar results.
In fact, the clazy script makes this call, as shown in the original report:
/usr/lib/llvm-6.0/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj ...
so it seems it is using clang-6. However,
> ldd /usr/lib/x86_64-linux-gnu/ClangLazy.so
linux-vdso.so.1 (0x00007fff6b6da000)
libLLVM-7.so.1 => /usr/lib/x86_64-linux-gnu/libLLVM-7.so.1 ...
so the plugin is built against LLVM 7.
Chaging the script to call clang-7 instead results in no errors, so it
should be a matter of adjusting it and requiring clang-7 in d/control as
a dependency.
Regards,
Alberto
Reply to: