<?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:address sanitizer on Windows in debug build fails in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1478689#M2998</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;We have used Visual Studio 2022 17.4.4 and the application did not crash with the provided reproducer.&lt;/P&gt;&lt;P&gt;Could you please try debugging using Visual Studio 2022 and let us know the results?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pendyala Sesha Srinivas&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 20 Apr 2023 12:33:21 GMT</pubDate>
    <dc:creator>SeshaP_Intel</dc:creator>
    <dc:date>2023-04-20T12:33:21Z</dc:date>
    <item>
      <title>address sanitizer on Windows in debug build fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1477967#M2988</link>
      <description>&lt;P&gt;Dear support,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When compiling with icx and address sanitizer on Windows in debug mode, we get the following error message during compilation:&lt;/P&gt;
&lt;P&gt;error: cannot make section .ASAN$GL associative with sectionless symbol ?id@?$numpunct@D@std@@2V0locale@2@A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;debug compile parameters are:&lt;/P&gt;
&lt;P&gt;-fp=precise -Qimf-arch-consistency:true -Qfma- -MD -bigobj -EHsc -Qstd=c++17 -Od -Ob0 -Z7 -DDEVELOP -fsanitize=address -fsanitize-address-use-after-scope&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with release this does not occur!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Setup:&lt;/P&gt;
&lt;P&gt;Windows 10&lt;/P&gt;
&lt;P&gt;Intel oneAPI 2023.1.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Frank&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 15:15:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1477967#M2988</guid>
      <dc:creator>Frank_R_1</dc:creator>
      <dc:date>2023-04-18T15:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: address sanitizer on Windows in debug build fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1478321#M2993</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Consider the trivial program:&lt;BR /&gt;#include&amp;lt;cstdio&amp;gt;&lt;/P&gt;
&lt;P&gt;int main() {&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Compile with:&lt;BR /&gt;icx -W -Wall -Wextra -Wpedantic -Wvla -Wunused-template -Wtautological-unsigned-zero-compare -Wtautological-unsigned-enum-zero-compare -Wshift-sign-overflow -Wmissing-variable-declarations -Wno-enum-constexpr-conversion -Wno-strict-prototypes -Wno-gnu-zero-variadic-macro-arguments -Wno-register -Wno-deprecated-register -Wno-pragma-pack -Wno-#pragma-messages -Wno-unknown-pragmas -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-format-security -Wno-writable-strings -Wno-deprecated-declarations -DMS64 -D_CONSOLE -D_LIB -DNT -D_AMD64_ -DWIN64 -DWIN32 -DWINDOWS64 -D_MBCS -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -DNOMINMAX -nologo -fp=precise -Qimf-arch-consistency:true -Qfma- -MD -bigobj -EHsc -Qstd=c++17 -O3 -Ob2 -DNDEBUG -Oi -fsanitize=address -fsanitize-address-use-after-scope -Z7 -c test.cxx&lt;/P&gt;
&lt;P&gt;Link with:&lt;BR /&gt;link -machine:x64 -WHOLEARCHIVE:clang_rt.asan_dynamic-x86_64.lib -WHOLEARCHIVE:clang_rt.asan_dynamic_runtime_thunk-x86_64.lib -WHOLEARCHIVE:vcasan.lib -nologo -STACK:10485760 -OPT:REF -INCREMENTAL:NO -FIXED:NO -MAP -DEBUG -DEBUGTYPE:CV -subsystem:console test.obj&lt;/P&gt;
&lt;P&gt;Start with Visual Studio 2019 debugger and you will get what you see in the attached image.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;It crashes at the beginning before even the main routine starts.&lt;BR /&gt;The crash is caused by clang_rt.asan_dynamic-x86_64.dll internally.&lt;/P&gt;
&lt;P&gt;What do we wrong?&lt;BR /&gt;We would really like to use the icx sanitizer as a replacement to pointer check of icc/icl&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;Frank&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:21:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1478321#M2993</guid>
      <dc:creator>Frank_R_1</dc:creator>
      <dc:date>2023-04-19T12:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: address sanitizer on Windows in debug build fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1478675#M2996</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;on Linux RHEL8 we run into the following problem:&lt;/P&gt;
&lt;P&gt;==85532==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000000000 bp 0x7f62def34f10 sp 0x7f62def346c8 T1)&lt;BR /&gt;==85532==Hint: pc points to the zero page.&lt;BR /&gt;==85532==The signal is caused by a READ memory access.&lt;BR /&gt;==85532==Hint: address points to the zero page.&lt;BR /&gt;#0 0x0 (&amp;lt;unknown module&amp;gt;)&lt;BR /&gt;#1 0x7f6160ad6a5a (/lib64/libnss_dns.so.2+0x1a5a) (BuildId: 84a643b847c3129604fbebcb3c70027cfb113dd5)&lt;/P&gt;
&lt;P&gt;AddressSanitizer can not provide additional info.&lt;BR /&gt;SUMMARY: AddressSanitizer: SEGV (&amp;lt;unknown module&amp;gt;)&lt;BR /&gt;Thread T1 created by T0 here:&lt;BR /&gt;#0 0x7f62e54d9e2e (/net/avdi0de055/data/p4ws/repo_cache/software/intel/oneAPI/2023.1.0/linux/compiler/2023.1.0/linux/lib/clang/16/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so+0x10ce2e)&lt;BR /&gt;#1 0x7f62e49f2d87 (/net/avdi0de055/data/p4ws/repo_cache/mature/jdk_adopt_hotspot/11.0.15_10/LINUX64_217/jre/bin/../lib/jli/libjli.so+0x9d87)&lt;BR /&gt;#2 0x7f62e49ef37c (/net/avdi0de055/data/p4ws/repo_cache/mature/jdk_adopt_hotspot/11.0.15_10/LINUX64_217/jre/bin/../lib/jli/libjli.so+0x637c)&lt;BR /&gt;#3 0x7f62e49f09ff (/net/avdi0de055/data/p4ws/repo_cache/mature/jdk_adopt_hotspot/11.0.15_10/LINUX64_217/jre/bin/../lib/jli/libjli.so+0x79ff)&lt;BR /&gt;#4 0x55ebddff8a72 (/net/avdi0de055/data/p4ws/repo_cache/mature/jdk_adopt_hotspot/11.0.15_10/LINUX64_217/jre/bin/java+0xa72)&lt;BR /&gt;#5 0x7f62e4459d84 (/lib64/libc.so.6+0x3ad84) (BuildId: f65c85bfdb904b623d4fe2139b4d7c25cf8c0b58)&lt;/P&gt;
&lt;P&gt;==85532==ABORTING&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The process starts a java vm which obviously uses /lib64/libnss_dns.so.2 and this causes problems.&lt;/P&gt;
&lt;P&gt;Is there a workaround or fix of this behavior?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 11:25:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1478675#M2996</guid>
      <dc:creator>Frank_R_1</dc:creator>
      <dc:date>2023-04-20T11:25:52Z</dc:date>
    </item>
    <item>
      <title>Re:address sanitizer on Windows in debug build fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1478689#M2998</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;We have used Visual Studio 2022 17.4.4 and the application did not crash with the provided reproducer.&lt;/P&gt;&lt;P&gt;Could you please try debugging using Visual Studio 2022 and let us know the results?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pendyala Sesha Srinivas&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Apr 2023 12:33:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1478689#M2998</guid>
      <dc:creator>SeshaP_Intel</dc:creator>
      <dc:date>2023-04-20T12:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re:address sanitizer on Windows in debug build fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1479563#M3006</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately we only have Visual Studio 2019 16.11.16 because this is our production environment. So it would be nice if you also use this version.&lt;/P&gt;
&lt;P&gt;At startup a lot of 0xC0000005 Errors are shown! But when I disable these exceptions in the debugger it runs.&lt;/P&gt;
&lt;P&gt;But without debugger no run possible!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Frank&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 13:15:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1479563#M3006</guid>
      <dc:creator>Frank_R_1</dc:creator>
      <dc:date>2023-04-24T13:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: address sanitizer on Windows in debug build fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1481275#M3012</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We were able to reproduce your issue in&amp;nbsp;&lt;SPAN&gt;Visual Studio 2019 after enabling the exceptions&lt;/SPAN&gt;. We have informed the development team about it.&lt;/P&gt;
&lt;P&gt;We will get back to you soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Pendyala Sesha Srinivas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 12:24:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1481275#M3012</guid>
      <dc:creator>SeshaP_Intel</dc:creator>
      <dc:date>2023-05-04T12:24:22Z</dc:date>
    </item>
    <item>
      <title>Re:address sanitizer on Windows in debug build fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1483032#M3045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This behavior is expected from Address Sanitizer on Windows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can refer to this page: &lt;A href="https://github.com/google/sanitizers/wiki/AddressSanitizerWindowsPort#debugging" target="_blank"&gt;https://github.com/google/sanitizers/wiki/AddressSanitizerWindowsPort#debugging&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Address Sanitizer on Windows relies on these exceptions to work. This exception is not caused by the Intel oneAPI product but by the Address Sanitizer.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope this answers your query. Could you please confirm whether we can close this thread from our end?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pendyala Sesha Srinivas&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2023 12:25:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1483032#M3045</guid>
      <dc:creator>SeshaP_Intel</dc:creator>
      <dc:date>2023-05-04T12:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re:address sanitizer on Windows in debug build fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1483448#M3047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is not using the debugger. I can switch of exceptions and the program ran till the end.&lt;/P&gt;
&lt;P&gt;I just can not start the program without debugger, because it directly crashes!&lt;/P&gt;
&lt;P&gt;On Linux we use this with no problem. I also set environment variables correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 13:44:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1483448#M3047</guid>
      <dc:creator>Frank_R_1</dc:creator>
      <dc:date>2023-05-05T13:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: address sanitizer on Windows in debug build fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1484975#M3061</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;EM&gt;I just can not start the program without debugger, because it directly crashes!&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On Windows, I have tried to compile and link the sample program with provided commands.&lt;/P&gt;
&lt;P&gt;And I have imported the executable into Visual Studio 2019 and am able to see the output without any crashes using the start without Debugging(Ctrl+F5) option.&lt;/P&gt;
&lt;P&gt;Could you please try to use Start Without Debugging option under Debug properties and let us know the results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;EM&gt;On Linux we use this with no problem. I also set environment variables correctly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On Linux, you have provided a crash report previously, was the issue resolved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing something? I'm a bit confused by your replies. Could you please confirm whether we both are on the same page?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Pendyala Sesha Srinivas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 18:09:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1484975#M3061</guid>
      <dc:creator>SeshaP_Intel</dc:creator>
      <dc:date>2023-05-10T18:09:46Z</dc:date>
    </item>
    <item>
      <title>Re:address sanitizer on Windows in debug build fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1487051#M3072</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Could you please provide an update on your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pendyala Sesha Srinivas&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 May 2023 15:25:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1487051#M3072</guid>
      <dc:creator>SeshaP_Intel</dc:creator>
      <dc:date>2023-05-17T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re:address sanitizer on Windows in debug build fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1488688#M3098</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pendyala Sesha Srinivas&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 May 2023 06:02:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/address-sanitizer-on-Windows-in-debug-build-fails/m-p/1488688#M3098</guid>
      <dc:creator>SeshaP_Intel</dc:creator>
      <dc:date>2023-05-23T06:02:01Z</dc:date>
    </item>
  </channel>
</rss>

