[LLVMbugs] [Bug 23804] New: "NumBytes should never be 0 when realignment is needed" failed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jun 9 15:51:54 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23804
Bug ID: 23804
Summary: "NumBytes should never be 0 when realignment is
needed" failed
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: AArch64
Assignee: unassignedbugs at nondot.org
Reporter: eugeni.stepanov at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 14458
--> https://llvm.org/bugs/attachment.cgi?id=14458&action=edit
IR dump
$ cat 3.cc
void f(int *);
int main() {
int t;
f(&t);
f(&t);
}
$ /code/llvm/build/bin/clang++ --target=aarch64-none-linux-gnu
-fsanitize=address 3.cc -O1 -c
clang-3.7: ../lib/Target/AArch64/AArch64FrameLowering.cpp:370: virtual void
llvm::AArch64FrameLowering::emitPrologue(llvm::MachineFunction &,
llvm::MachineBasicBlock &) const: Assertion `!(NeedsRealignment && NumBytes==0)
&& "NumBytes should never be 0 when realignment is needed"' failed.
0 clang-3.7 0x000000000163192a
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 42
1 clang-3.7 0x0000000001632cab
2 libpthread.so.0 0x00007f45ed13c340
3 libc.so.6 0x00007f45ec364cc9 gsignal + 57
4 libc.so.6 0x00007f45ec3680d8 abort + 328
5 libc.so.6 0x00007f45ec35db86
6 libc.so.6 0x00007f45ec35dc32
7 clang-3.7 0x000000000071d420
llvm::AArch64FrameLowering::emitPrologue(llvm::MachineFunction&,
llvm::MachineBasicBlock&) const + 5056
8 clang-3.7 0x00000000010cd358
9 clang-3.7 0x000000000106369c
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 124
10 clang-3.7 0x00000000012e4364
llvm::FPPassManager::runOnFunction(llvm::Function&) + 468
11 clang-3.7 0x00000000012e459b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
12 clang-3.7 0x00000000012e4a85
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 901
13 clang-3.7 0x0000000001a9f7fd
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*)
+ 7981
14 clang-3.7 0x0000000001a914d5
15 clang-3.7 0x0000000002037d83 clang::ParseAST(clang::Sema&, bool, bool)
+ 483
16 clang-3.7 0x00000000017e14ce clang::FrontendAction::Execute() + 62
17 clang-3.7 0x00000000017afd8c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 892
18 clang-3.7 0x0000000001860859
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3049
19 clang-3.7 0x00000000006e95ac cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 700
20 clang-3.7 0x00000000006e7df2 main + 11794
21 libc.so.6 0x00007f45ec34fec5 __libc_start_main + 245
22 clang-3.7 0x00000000006e4edc
Stack dump:
0. Program arguments: /code/llvm/build/bin/clang-3.7 -cc1 -triple
aarch64-none-linux-gnu -emit-obj -disable-free -main-file-name 3.cc
-mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu generic -target-feature +neon -target-abi aapcs -dwarf-column-info
-coverage-file /code/llvm/build-android-aarch64/3.cc -resource-dir
/code/llvm/build/bin/../lib/clang/3.7.0 -internal-isystem /usr/local/include
-internal-isystem /code/llvm/build/bin/../lib/clang/3.7.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O1
-fdeprecated-macro -fdebug-compilation-dir /code/llvm/build-android-aarch64
-ferror-limit 19 -fmessage-length 158 -fsanitize=address
-fsanitize-blacklist=/code/llvm/build/bin/../lib/clang/3.7.0/asan_blacklist.txt
-fno-assume-sane-operator-new -mstackrealign -fallow-half-arguments-and-returns
-fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o 3.o -x c++ ../3.cc
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '../3.cc'.
4. Running pass 'Prologue/Epilogue Insertion & Frame Finalization' on
function '@main'
clang-3.7: error: unable to execute command: Aborted (core dumped)
clang-3.7: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (trunk 239440)
Target: aarch64-none-linux-gnu
Thread model: posix
clang-3.7: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.7: note: diagnostic msg:
Attaching the IR dump with ASan instrumentation.
--
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/20150609/474a90bb/attachment.html>
More information about the llvm-bugs
mailing list