Bug#979495: clang_delta (creduce, cvise) segfaults when built with LLVM 11

Gianfranco Costamagna locutusofborg at debian.org
Tue Jan 19 19:31:04 GMT 2021


control: severity -1 important
control: found -1 1:11.0.0-5
On Thu, 7 Jan 2021 12:02:43 +0100 Matthias Klose <doko at debian.org> wrote:
> Package: src:llvm-toolchain-11
> Version: 1:11.0.1-1
> Severity: serious
> Tags: sid bullseye
> Forwarded: https://bugs.llvm.org/show_bug.cgi?id=48682
> 
> First seen at https://gcc.gnu.org/PR98557, at least on armhf
> 
> $ cat > wxe_funcs.ii
> static __typeof() a     __attribute__((__weakref__("pthread_mutex_destroy")))
> 
> $ /usr/lib/cvise/clang_delta --query-instances=replace-function-def-with-decl
> wxe_funcs.ii
> clang_delta: /usr/lib/llvm-11/include/llvm/ADT/PointerIntPair.h:178: static
> intptr_t llvm::PointerIntPairInfo<PointerT, IntBits,
> PtrTraits>::updatePointer(intptr_t, PointerT) [with PointerT = clang::Stmt*;
> unsigned int IntBits = 1; PtrTraits = llvm::PointerLikeTypeTraits<clang::Stmt*>;
> intptr_t = int]: Assertion `(PtrWord & ~PointerBitMask) == 0 && "Pointer is not
> sufficiently aligned"' failed.
> Aborted
> 
> Expected behavior:
> 
> $ /usr/lib/cvise/clang_delta --query-instances=replace-function-def-with-decl
> wxe_funcs.ii
> Available transformation instances: 0
> 
> Building the cvise and creduce packages with LLVM 9 or LLVM 10 doesn't show the
> segfault.
> 
> 

Since you changed the cvise dependency back to llvm-9, and llvm-9 is not getting removed from
next stable, I'm downgrading this bug for now...

G.



More information about the Pkg-llvm-team mailing list