Ilya Skapenko via llvm-dev
2017-Mar-02 16:06 UTC
[llvm-dev] lli: wrong output; clang: segmentation fault
Dear developers, Attached .ll file looks well-formed, but lli produces wrong output. It prints just: '20\n', although the correct output:'20\n22\n'. Executable, compiled with clang++ has segmentation fault, because it overwrites a return address. But the file, emitted with llc looks nice. Architecture: Linux, x86-64 I wanted to submit a bug, but I can't get an account. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170302/32e2d55e/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: lifetime.ll Type: application/octet-stream Size: 3286 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170302/32e2d55e/attachment.obj>
Ilya Skapenko via llvm-dev
2017-Mar-02 18:28 UTC
[llvm-dev] lli: wrong output; clang: segmentation fault
Forgot to add. Tested LLVM and Clang versions: trunk 296733. 2017-03-02 19:06 GMT+03:00 Ilya Skapenko <aweflea at gmail.com>:> Dear developers, > > Attached .ll file looks well-formed, but lli produces wrong output. > It prints just: '20\n', although the correct output:'20\n22\n'. > Executable, compiled with clang++ has segmentation fault, because it > overwrites a return address. But the file, emitted with llc looks nice. > Architecture: Linux, x86-64 > I wanted to submit a bug, but I can't get an account. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170302/a98a9c95/attachment.html>