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

2021-03-17 Thread Matthias Klose
this seems to be fixed in LLVM 12.



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

2021-01-19 Thread Gianfranco Costamagna
control: severity -1 important
control: found -1 1:11.0.0-5
On Thu, 7 Jan 2021 12:02:43 +0100 Matthias Klose  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 PtrTraits>::updatePointer(intptr_t, PointerT) [with PointerT = clang::Stmt*;
> unsigned int IntBits = 1; PtrTraits = 
> llvm::PointerLikeTypeTraits;
> 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.



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

2021-01-07 Thread Matthias Klose
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::updatePointer(intptr_t, PointerT) [with PointerT = clang::Stmt*;
unsigned int IntBits = 1; PtrTraits = llvm::PointerLikeTypeTraits;
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.