<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW " title="NEW --- - "NumBytes should never be 0 when realignment is needed" failed" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23804&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=pXV7RTBs_KJId4phzxC1cc3LchDdhNTpVfndIgMmzes&s=mwVGKhKwV7HaRjLhuNbHB4D1el9HUsmToq2HcJk2tks&e=">23804</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"NumBytes should never be 0 when realignment is needed" failed
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: AArch64
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>eugeni.stepanov@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14458" name="attach_14458" title="IR dump">attachment 14458</a> <a href="attachment.cgi?id=14458&action=edit" title="IR dump">[details]</a></span>
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
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_bugs_&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=pXV7RTBs_KJId4phzxC1cc3LchDdhNTpVfndIgMmzes&s=0dPpZtbVVb-pkP1S6Bwfq85_TZgjsBoYNrfVf5TEACc&e=">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.7: note: diagnostic msg:
Attaching the IR dump with ASan instrumentation.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>