<?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 Alright, thank you for your in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097282#M5136</link>
    <description>&lt;P&gt;Alright, thank you for your help. Please keep me posted. Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2016 10:43:42 GMT</pubDate>
    <dc:creator>asd__asdqwe</dc:creator>
    <dc:date>2016-08-16T10:43:42Z</dc:date>
    <item>
      <title>Heap-buffer-overflow in MPI_Init</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097278#M5132</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm compiling this example:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include &amp;lt;mpi.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;

int main(int argc, char** argv) {
    MPI_Init(NULL, NULL);
    MPI_Finalize();
}
&lt;/PRE&gt;

&lt;P&gt;And I get the following memory error. Is this a false positive? Could this be fixed if not?&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$  mpicxx -show &amp;amp;&amp;amp; mpicxx hello.cpp -fsanitize=address &amp;amp;&amp;amp; mpirun -np 1 ./a.out
g++ -I/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/include -L/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/release_mt -L/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker /opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/release_mt -Xlinker -rpath -Xlinker /opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/5.1/intel64/lib/release_mt -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/5.1/intel64/lib -lmpicxx -lmpifort -lmpi -lmpigi -ldl -lrt -lpthread
=================================================================
==12984==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61200000b0c4 at pc 0x7fe42bb4e93c bp 0x7ffec5b32310 sp 0x7ffec5b31ac0
READ of size 261 at 0x61200000b0c4 thread T0
    #0 0x7fe42bb4e93b  (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x4393b)
    #1 0x7fe42bb4ed27 in __interceptor_strstr (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x43d27)
    #2 0x7fe42b0431b4 in MPID_nem_impi_configuration_init (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/libmpi.so.12+0x2c51b4)
    #3 0x7fe42b0459f0 in MPID_nem_init_ckpt (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/libmpi.so.12+0x2c79f0)
    #4 0x7fe42ae8d340 in MPIDI_CH3_Init (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/libmpi.so.12+0x10f340)
    #5 0x7fe42b035b7e in MPID_Init (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/libmpi.so.12+0x2b7b7e)
    #6 0x7fe42afe5364 in MPIR_Init_thread (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/libmpi.so.12+0x267364)
    #7 0x7fe42afd671d in MPI_Init (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/libmpi.so.12+0x25871d)
    #8 0x400873 in main (/tmp/a.out+0x400873)
    #9 0x7fe429b3872f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2072f)
    #10 0x400788 in _start (/tmp/a.out+0x400788)

0x61200000b0c4 is located 0 bytes to the right of 260-byte region [0x61200000afc0,0x61200000b0c4)
allocated by thread T0 here:
    #0 0x7fe42bbcce38 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1e38)
    #1 0x7fe42b033a98  (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/libmpi.so.12+0x2b5a98)

SUMMARY: AddressSanitizer: heap-buffer-overflow (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x4393b) 
Shadow bytes around the buggy address:
  0x0c247fff95c0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x0c247fff95d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c247fff95e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa
  0x0c247fff95f0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c247fff9600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=&amp;gt;0x0c247fff9610: 00 00 00 00 00 00 00 00[04]fa fa fa fa fa fa fa
  0x0c247fff9620: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c247fff9630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c247fff9640: 00 00 00 00 00 00 00 00 01 fa fa fa fa fa fa fa
  0x0c247fff9650: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c247fff9660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==12984==ABORTING
&lt;/PRE&gt;

&lt;P&gt;For reference, here is what I get with MPICH:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ mpicxx.mpich hello.cpp -fsanitize=address &amp;amp;&amp;amp; mpirun.mpich -np 1 ./a.out &amp;amp;&amp;amp; echo $?
0
&lt;/PRE&gt;

&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 09:24:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097278#M5132</guid>
      <dc:creator>asd__asdqwe</dc:creator>
      <dc:date>2016-08-15T09:24:14Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097279#M5133</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thank you for the message.&lt;/P&gt;

&lt;P&gt;Can you try with debug libraries?&lt;/P&gt;

&lt;P&gt;For using debug you need to source&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13px; line-height: 20.8px;"&gt;&amp;lt;installdir&amp;gt;/intel64em64t/bin/mpivars.sh debug_mt&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13px; line-height: 20.8px;"&gt;--&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13px; line-height: 20.8px;"&gt;Dmitry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 11:26:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097279#M5133</guid>
      <dc:creator>Dmitry_S_Intel</dc:creator>
      <dc:date>2016-08-15T11:26:25Z</dc:date>
    </item>
    <item>
      <title>Here is what I get now:</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097280#M5134</link>
      <description>&lt;P&gt;Here is what I get now:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ mpicxx -show &amp;amp;&amp;amp; mpicxx -g hello.cpp -fsanitize=address &amp;amp;&amp;amp; mpirun -np 1 ./a.out 
g++ -I/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/include -L/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/release_mt -L/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker /opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/release_mt -Xlinker -rpath -Xlinker /opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/5.1/intel64/lib/release_mt -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/5.1/intel64/lib -lmpicxx -lmpifort -lmpi -lmpigi -ldl -lrt -lpthread
=================================================================
==25225==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000ebb1 at pc 0x7fd06d3f6019 bp 0x7ffed9a0c410 sp 0x7ffed9a0bbc0
READ of size 1 at 0x60200000ebb1 thread T0
    #0 0x7fd06d3f6018  (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x51018)
    #1 0x7fd06c72bc94  (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/debug_mt/libmpi.so.12+0x43fc94)
    #2 0x7fd06c72f4e7 in MPID_Init (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/debug_mt/libmpi.so.12+0x4434e7)
    #3 0x7fd06c6afaeb in MPIR_Init_thread (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/debug_mt/libmpi.so.12+0x3c3aeb)
    #4 0x7fd06c6988bf in MPI_Init (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/debug_mt/libmpi.so.12+0x3ac8bf)
    #5 0x400863 in main /tmp/hello.cpp:5
    #6 0x7fd06b0a672f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2072f)
    #7 0x400778 in _start (/tmp/a.out+0x400778)

0x60200000ebb1 is located 0 bytes to the right of 1-byte region [0x60200000ebb0,0x60200000ebb1)
allocated by thread T0 here:
    #0 0x7fd06d466e38 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1e38)
    #1 0x7fd06c72b90c  (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/debug_mt/libmpi.so.12+0x43f90c)
    #2 0x7fd06c72f4e7 in MPID_Init (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/debug_mt/libmpi.so.12+0x4434e7)
    #3 0x7fd06c6afaeb in MPIR_Init_thread (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/debug_mt/libmpi.so.12+0x3c3aeb)
    #4 0x7fd06c6988bf in MPI_Init (/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib/debug_mt/libmpi.so.12+0x3ac8bf)
    #5 0x400863 in main /tmp/hello.cpp:5
    #6 0x7fd06b0a672f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2072f)

SUMMARY: AddressSanitizer: heap-buffer-overflow (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x51018) 
Shadow bytes around the buggy address:
  0x0c047fff9d20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c047fff9d30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c047fff9d40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c047fff9d50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c047fff9d60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=&amp;gt;0x0c047fff9d70: fa fa 03 fa fa fa[01]fa fa fa 02 fa fa fa 07 fa
  0x0c047fff9d80: fa fa 00 fa fa fa 04 fa fa fa fd fd fa fa 00 fa
  0x0c047fff9d90: fa fa 04 fa fa fa 00 04 fa fa 00 04 fa fa fd fa
  0x0c047fff9da0: fa fa 00 fa fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fff9db0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fff9dc0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa 07 fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==25225==ABORTING&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 11:50:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097280#M5134</guid>
      <dc:creator>asd__asdqwe</dc:creator>
      <dc:date>2016-08-15T11:50:18Z</dc:date>
    </item>
    <item>
      <title>Thank you.</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097281#M5135</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;

&lt;P&gt;We have some reports about potential memory leak in MPI_Init. Our investigations indicated that they are false positive.&lt;/P&gt;

&lt;P&gt;I've submit the ticket against this issue to the development team, and let you know results.&lt;/P&gt;

&lt;P&gt;--&lt;/P&gt;

&lt;P&gt;Dmitry&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 06:45:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097281#M5135</guid>
      <dc:creator>Dmitry_S_Intel</dc:creator>
      <dc:date>2016-08-16T06:45:18Z</dc:date>
    </item>
    <item>
      <title>Alright, thank you for your</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097282#M5136</link>
      <description>&lt;P&gt;Alright, thank you for your help. Please keep me posted. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 10:43:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097282#M5136</guid>
      <dc:creator>asd__asdqwe</dc:creator>
      <dc:date>2016-08-16T10:43:42Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097283#M5137</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;The development team investigated this issue and confirmed that it is already reported false-positive.&lt;/P&gt;

&lt;P&gt;Thank you for your investigations.&lt;/P&gt;

&lt;P&gt;--&lt;/P&gt;

&lt;P&gt;Dmitry&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 09:29:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Heap-buffer-overflow-in-MPI-Init/m-p/1097283#M5137</guid>
      <dc:creator>Dmitry_S_Intel</dc:creator>
      <dc:date>2016-09-06T09:29:30Z</dc:date>
    </item>
  </channel>
</rss>

