<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20170306101351922890 { }body { font-size: 10.5pt; font-family: 宋体; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">Thank you for your reply. </span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">Can the function be implemented by exception handling instructions</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">(http://llvm.org/docs/ExceptionHandling.html#id34)</span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">?</span></div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>haifeng.qin@wellintech.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:rnk@google.com">Reid Kleckner</a></div><div><b>Date:</b> 2017-03-02 02:20</div><div><b>To:</b> <a href="mailto:haifeng.qin@wellintech.com">haifeng.qin@wellintech.com</a></div><div><b>CC:</b> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev</a></div><div><b>Subject:</b> Re: [llvm-dev] How to catch EXCEPTION_ACCESS_VIOLATION exceptions on win64</div></div></div><div><div class="FoxDiv20170306101351922890"><div dir="ltr">I would not expect you to be able to catch any exceptions originating from code JITed by LLVM on Win64. Nobody has implemented the code to register the unwind data necessary to do this. The linked bug describes the steps necessary to implement this functionality.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 27, 2017 at 12:34 AM, <a href="mailto:haifeng.qin@wellintech.com">haifeng.qin@wellintech.com</a> via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.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>
<div><span style="color:rgb(0,0,238)">LLVM3.8 version.<br><br><a href="https://bugs.llvm.org//show_bug.cgi?id=24233" target="_blank">https://bugs.llvm.org//show_<wbr>bug.cgi?id=24233</a>. The example <wbr>can catch exception. But I <wbr>use my own code for testing, <wbr>CustomEHMemoryManager <wbr>allocated memory address is <wbr>very large, <wbr>allocateCodeSection, <wbr>allocateDataSection assigned <wbr>address (more than 32 bit <wbr>address space) is getting <wbr>smaller and smaller. Cause <wbr>registerEHFrames to fail.<br>3.9.1 or 4.0.0 version has <wbr>been supported on win x64? Or <wbr>how to solve this problem?</span><span></span></div><div><span style="color:rgb(0,0,0);font-size:10.5pt;line-height:1.5;background-color:rgba(0,0,0,0)"><br></span></div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)"></span>
<div><br></div><hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:haifeng.qin@wellintech.com" target="_blank">haifeng.qin@wellintech.com</a></div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT:8px;PADDING-LEFT:8px;FONT-SIZE:12px;FONT-FAMILY:tahoma;COLOR:#000000;BACKGROUND:#efefef;PADDING-BOTTOM:8px;PADDING-TOP:8px"><div><b>发件人:</b> <a href="mailto:haifeng.qin@wellintech.com" target="_blank">haifeng.qin@wellintech.<wbr>com</a></div><div><b>发送时间:</b> 2017-02-17 10:38</div><div><b>收件人:</b> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev</a></div><div><b>主题:</b> 回复: How to catch EXCEPTION_ACCESS_VIOLATION exceptions on win64</div></div></div><div><div class="h5"><div><div class="m_-983558963573570572FoxDiv20170227162200485570">
<div><span></span><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">I'm sorry。<br>I make mistakes. SE can be catched.</span></div>
<div><br></div><hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:haifeng.qin@wellintech.com" target="_blank">haifeng.qin@wellintech.com</a></div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT:8px;PADDING-LEFT:8px;FONT-SIZE:12px;FONT-FAMILY:tahoma;COLOR:#000000;BACKGROUND:#efefef;PADDING-BOTTOM:8px;PADDING-TOP:8px"><div><b>发件人:</b> <a href="mailto:haifeng.qin@wellintech.com" target="_blank">haifeng.qin@wellintech.<wbr>com</a></div><div><b>发送时间:</b> 2017-02-16 17:48</div><div><b>收件人:</b> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev</a></div><div><b>主题:</b> How to catch EXCEPTION_ACCESS_VIOLATION exceptions on win64</div></div></div><div><div class="m_-983558963573570572FoxDiv20170217103622312439">
<div><span></span><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">For help:</span></div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">Llvm generated instruction <wbr>calls a function (extern), <wbr>the function will have a SEH <wbr>exception (EXCEPTION_ACCESS_<wbr>VIOLATION), But JIT can not capture the <wbr>exception of the EXCEPTION_<wbr>ACCESS_VIOLATION. I saw Bug <wbr>24233. EXCEPTION_ACCESS_<wbr>VIOLATION exception cannot be <wbr>captured after modification. </span></div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">How to catch EXCEPTION_ACCESS_<wbr>VIOLATION exceptions on win64 ?</span></div></div>
<div><br></div><hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:haifeng.qin@wellintech.com" target="_blank">haifeng.qin@wellintech.com</a></div></div></span></div>
</div></div></blockquote>
</div></div></div></div></blockquote>
</div><br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote>
</body></html>