<p dir="ltr">Ping?<br>
</p>
<div class="gmail_quote">On Jul 17, 2014 11:05 AM, "İsmail Dönmez" <<a href="mailto:ismail@donmez.ws">ismail@donmez.ws</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 16, 2014 at 6:43 PM, Nico Weber <span dir="ltr"><<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">

<div><div>On Wed, Jul 16, 2014 at 4:10 AM, İsmail Dönmez <span dir="ltr"><<a href="mailto:ismail@donmez.ws" target="_blank">ismail@donmez.ws</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<br><div class="gmail_extra"><br><br><div class="gmail_quote">

<div>On Mon, Jul 14, 2014 at 8:10 PM, Dan Albert <span dir="ltr"><<a href="mailto:danalbert@google.com" target="_blank">danalbert@google.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Submitted (with some slight modifications, s/libgcc_s/libgcc_eh/) as r212958. Tested with and without the LLVM unwinder, and things look good. Thanks again!</blockquote>




<div><br></div></div><div>Changing gcc_s with gcc_eh doesn't look good. libcxxabi tests pass but llvm MCJIT exception tests fail with:</div><div><br></div><div>"terminating with uncaught exception of type int"<br>


</div></div></div></div></blockquote><div><br></div></div></div><div>Can you try to make a reduced test case for libcxxabi from this?</div><div> </div></div></div></div></blockquote><div><br></div><div><br></div><div>Smallest test cases are test/ExecutionEngine/MCJIT/{eh-sm-pic,eh-lg-pic}.ll</div>

<div><br></div><div>Both fail the same way:</div><div><br></div><div><div> /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/lli -use-mcjit -relocation-model=pic -code-model=small /home/abuild/rpmbuild/BUILD/llvm/test/ExecutionEngine/MCJIT/eh-sm-pic.ll</div>

<div> --</div><div> Exit Code: 134</div><div> </div><div> Command Output (stderr):</div><div> --</div><div> terminating with uncaught exception of type int</div><div> 0  libLLVMSupport.so         0x00007f9c6ddf7d85 llvm::sys::PrintStackTrace(_IO_FILE*) + 37</div>

<div> 1  libLLVMSupport.so         0x00007f9c6ddf83f3</div><div> 2  libpthread.so.0           0x00007f9c6d0d79f0</div><div> 3  libc.so.6                 0x00007f9c6c806849 gsignal + 57</div><div> 4  libc.so.6                 0x00007f9c6c807cd8 abort + 328</div>

<div> 5  libc++abi.so.1            0x00007f9c6cb89237</div><div> 6  libc++abi.so.1            0x00007f9c6cb894b6</div><div> 7  libc++abi.so.1            0x00007f9c6cbeda7e</div><div> 8  libc++abi.so.1            0x00007f9c6cbec6ed</div>

<div> 9  libc++abi.so.1            0x00007f9c6cbec646</div><div> 10 libc++abi.so.1            0x00007f9c6ff3001c</div><div> 11 libc++abi.so.1            0x00007f9c6ff30026</div><div> 12 libLLVMMCJIT.so           0x00007f9c6e61fd27 llvm::MCJIT::runFunction(llvm::Function*, std::__1::vector<llvm::GenericValue, std::__1::allocator<llvm::GenericValue> > const&) + 919</div>

<div> 13 libLLVMExecutionEngine.so 0x00007f9c6f34fa65 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, char const* const*) + 1221</div>

<div> 14 lli                       0x000000000040c8b7 main + 6599</div><div> 15 libc.so.6                 0x00007f9c6c7f2be5 __libc_start_main + 245</div><div> 16 lli                       0x000000000040a6d1</div><div> Stack dump:</div>

<div> 0.<span style="white-space:pre-wrap">      </span>Program arguments: /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/lli -use-mcjit -relocation-model=pic -code-model=small /home/abuild/rpmbuild/BUILD/llvm/test/ExecutionEngine/MCJIT/eh-sm-pic.ll </div>

<div> /home/abuild/rpmbuild/BUILD/llvm/stage2/test/ExecutionEngine/MCJIT/Output/eh-sm-pic.ll.script: line 1: 30636 Aborted                 /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/lli -use-mcjit -relocation-model=pic -code-model=small /home/abuild/rpmbuild/BUILD/llvm/test/ExecutionEngine/MCJIT/eh-sm-pic.ll</div>

</div><div><br></div><div>Note that this clang is hardcoded to use libc++ (-stdlibc=libc++). Is this good enough?</div><div><br></div><div>Thanks!</div><div><br></div></div></div></div>
</blockquote></div>