Open
Description
Say, we have LLVM 10.0.0, and just have built llvm-cbe
in current directory.
Trying to build lzip_index.cc
from plzip-1.9
with lzlib-1.12
:
wget -q http://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-1.12.tar.gz
wget -q http://download.savannah.gnu.org/releases/lzip/plzip/plzip-1.9.tar.gz
tar xf plzip-1.9.tar.gz
tar xf lzlib-1.12.tar.gz
clang++-10 -S -emit-llvm -g -Iplzip-1.9 -Ilzlib-1.12 -o lzip_index.ll plzip-1.9/lzip_index.cc
./llvm-cbe lzip_index.ll
And it crashes with SIGSEGV
with the following stack trace:
#0 0x00007f369d0a44ff llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/lib/llvm-10/lib/libLLVM-10.so.1+0x9814ff)
#1 0x00007f369d0a2782 llvm::sys::RunSignalHandlers() (/usr/lib/llvm-10/lib/libLLVM-10.so.1+0x97f782)
#2 0x00007f369d0a4ac5 (/usr/lib/llvm-10/lib/libLLVM-10.so.1+0x981ac5)
#3 0x00007f369c34a210 (/lib/x86_64-linux-gnu/libc.so.6+0x46210)
#4 0x00007f369d1355fc llvm::DataLayout::getAlignmentInfo(llvm::AlignTypeEnum, unsigned int, bool, llvm::Type*) const (/usr/lib/llvm-10/lib/libLLVM-10.so.1+0xa125fc)
#5 0x00005558f07d71b0
Stack dump:
0. Program arguments: ./llvm-cbe lzip_index.ll
The same is on LLVM 11.0.0 and 9.0.0 (but no stack trace somehow). Interestingly, on LLVM 8.0.0, there is no failure, .cbe.c
output is being produced correctly, but issue #132 occurs then.
Metadata
Metadata
Assignees
Labels
No labels