<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: icx address sanitizer on Windows and program with C++ exeptions crash in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-address-sanitizer-on-Windows-and-program-with-C-exeptions/m-p/1619468#M3997</link>
    <description>&lt;P&gt;I've escalated your issue to our engineering team so we can investigate further.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 19:40:40 GMT</pubDate>
    <dc:creator>Alex_Y_Intel</dc:creator>
    <dc:date>2024-07-30T19:40:40Z</dc:date>
    <item>
      <title>icx address sanitizer on Windows and program with C++ exeptions crash</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-address-sanitizer-on-Windows-and-program-with-C-exeptions/m-p/1619033#M3993</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Unfortunately in Intel oneAPI 2024.2 with Windows 10/VS 2019 the reproducer below does not work!&lt;BR /&gt;see&lt;BR /&gt;&lt;A href="https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-with-enabled-address-sanitizer-under-Windows-and-C-throw/m-p/1614289#M3941" target="_blank"&gt;https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-with-enabled-address-sanitizer-under-Windows-and-C-throw/m-p/1614289#M3941&lt;/A&gt;&lt;/P&gt;&lt;P&gt;#############################################################&lt;/P&gt;&lt;P&gt;//icx -Od -EHsc -Z7 ex.cxx&lt;BR /&gt;//works with output "Caught error no. 5 exception at ex.cxx in line 15"&lt;/P&gt;&lt;P&gt;//icx -Od -fsanitize=address -EHsc -Z7 ex.cxx&lt;BR /&gt;//crashes with "Caught error no. Segmentation fault"&lt;BR /&gt;#include&amp;lt;iostream&amp;gt;&lt;BR /&gt;struct Error {&lt;BR /&gt;int a;&lt;BR /&gt;};&lt;BR /&gt;void info(const char* f, const int l, const Error&amp;amp; e) {&lt;BR /&gt;std::cout &amp;lt;&amp;lt; "Caught error no. " &amp;lt;&amp;lt; e.a &amp;lt;&amp;lt; " exception at " &amp;lt;&amp;lt; f &amp;lt;&amp;lt; " in line " &amp;lt;&amp;lt; l &amp;lt;&amp;lt; std::endl;&lt;BR /&gt;}&lt;BR /&gt;int main() {&lt;BR /&gt;try {&lt;BR /&gt;throw Error{5};&lt;BR /&gt;} catch (Error &amp;amp;e) {&lt;BR /&gt;info(__FILE__, __LINE__, e);&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;return 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#############################################################&lt;/P&gt;&lt;P&gt;Everything on Linux now works very nice and stable, the exact same code base on Windows crashes in the exceptions catch. (Have a look in the debugger)&lt;/P&gt;&lt;P&gt;ASAN_OPTIONS are:&lt;BR /&gt;alloc_dealloc_mismatch=0,detect_leaks=0,halt_on_error=0,detect_stack_use_after_return=true,check_initialization_order=true,strict_string_checks=true,check_malloc_usable_size=true,detect_odr_violation=1,strict_init_order=1,use_odr_indicator=1,handle_segv=0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 15:54:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-address-sanitizer-on-Windows-and-program-with-C-exeptions/m-p/1619033#M3993</guid>
      <dc:creator>Frank_R_1</dc:creator>
      <dc:date>2024-07-29T15:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: icx address sanitizer on Windows and program with C++ exeptions crash</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-address-sanitizer-on-Windows-and-program-with-C-exeptions/m-p/1619468#M3997</link>
      <description>&lt;P&gt;I've escalated your issue to our engineering team so we can investigate further.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 19:40:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-address-sanitizer-on-Windows-and-program-with-C-exeptions/m-p/1619468#M3997</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-07-30T19:40:40Z</dc:date>
    </item>
  </channel>
</rss>

