<?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 munmap_chunk():invalid pointer in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/munmap-chunk-invalid-pointer/m-p/803679#M3259</link>
    <description>Hi,&lt;BR /&gt;I'm trying to test a simple program that uses OpenMP directives along with the threaded MKL library. However, I am getting a runtime error just before the program exits. Below is the error. I've also attached my code and the makefile. I'm not quite sure if there a problem with the libraries I'm linking to. I've set the environment variable OMP_NUM_THREADS=1. I am testing the code on Intel 64 architecture with SUSE Linux Enterprise Server 9.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*** glibc detected *** ./p1: munmap_chunk(): invalid pointer: 0x000000001dc5f0a0 ***&lt;BR /&gt;======= Backtrace: =========&lt;BR /&gt;/lib64/libc.so.6(cfree+0x166)[0x352d472856]&lt;BR /&gt;./p1[0x41560d]&lt;BR /&gt;./p1[0x4146c8]&lt;BR /&gt;./p1[0x440df7]&lt;BR /&gt;./p1[0x4071ae]&lt;BR /&gt;./p1[0x403bd1]&lt;BR /&gt;/lib64/libc.so.6(__libc_start_main+0xf4)[0x352d41d994]&lt;BR /&gt;./p1[0x403ad9]&lt;BR /&gt;======= Memory map: ========&lt;BR /&gt;00400000-004bd000 r-xp 00000000 00:19 3288420770 /home/kkarco2/FortranPrograms/makefileExample/p1&lt;BR /&gt;006bc000-006c4000 rw-p 000bc000 00:19 3288420770 /home/kkarco2/FortranPrograms/makefileExample/p1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I've removed some of the information for the sake of making my post smaller.&lt;BR /&gt;Here is my makefile &lt;A onclick="ndownload('http://software.intel.com/file/31360')"&gt;makefile&lt;/A&gt;&lt;BR /&gt;Here is my mainfile &lt;A onclick="ndownload('http://software.intel.com/file/31359')"&gt;main.f90&lt;/A&gt;&lt;BR /&gt;And here is an additional file &lt;A onclick="ndownload('http://software.intel.com/file/31358')"&gt;add.f90&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 19 Oct 2010 20:28:54 GMT</pubDate>
    <dc:creator>kkarco2</dc:creator>
    <dc:date>2010-10-19T20:28:54Z</dc:date>
    <item>
      <title>munmap_chunk():invalid pointer</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/munmap-chunk-invalid-pointer/m-p/803679#M3259</link>
      <description>Hi,&lt;BR /&gt;I'm trying to test a simple program that uses OpenMP directives along with the threaded MKL library. However, I am getting a runtime error just before the program exits. Below is the error. I've also attached my code and the makefile. I'm not quite sure if there a problem with the libraries I'm linking to. I've set the environment variable OMP_NUM_THREADS=1. I am testing the code on Intel 64 architecture with SUSE Linux Enterprise Server 9.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*** glibc detected *** ./p1: munmap_chunk(): invalid pointer: 0x000000001dc5f0a0 ***&lt;BR /&gt;======= Backtrace: =========&lt;BR /&gt;/lib64/libc.so.6(cfree+0x166)[0x352d472856]&lt;BR /&gt;./p1[0x41560d]&lt;BR /&gt;./p1[0x4146c8]&lt;BR /&gt;./p1[0x440df7]&lt;BR /&gt;./p1[0x4071ae]&lt;BR /&gt;./p1[0x403bd1]&lt;BR /&gt;/lib64/libc.so.6(__libc_start_main+0xf4)[0x352d41d994]&lt;BR /&gt;./p1[0x403ad9]&lt;BR /&gt;======= Memory map: ========&lt;BR /&gt;00400000-004bd000 r-xp 00000000 00:19 3288420770 /home/kkarco2/FortranPrograms/makefileExample/p1&lt;BR /&gt;006bc000-006c4000 rw-p 000bc000 00:19 3288420770 /home/kkarco2/FortranPrograms/makefileExample/p1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I've removed some of the information for the sake of making my post smaller.&lt;BR /&gt;Here is my makefile &lt;A onclick="ndownload('http://software.intel.com/file/31360')"&gt;makefile&lt;/A&gt;&lt;BR /&gt;Here is my mainfile &lt;A onclick="ndownload('http://software.intel.com/file/31359')"&gt;main.f90&lt;/A&gt;&lt;BR /&gt;And here is an additional file &lt;A onclick="ndownload('http://software.intel.com/file/31358')"&gt;add.f90&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Oct 2010 20:28:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/munmap-chunk-invalid-pointer/m-p/803679#M3259</guid>
      <dc:creator>kkarco2</dc:creator>
      <dc:date>2010-10-19T20:28:54Z</dc:date>
    </item>
    <item>
      <title>munmap_chunk():invalid pointer</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/munmap-chunk-invalid-pointer/m-p/803680#M3260</link>
      <description>when you link with ILP64 interfaces, Please usethe /4I8 compiler option for Fortran.&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;smth like:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.8333px;"&gt;ifort /4I8 /I &lt;DIRINCLUDE&gt;....&lt;/DIRINCLUDE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10.8333px;"&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;--Gennady&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Oct 2010 04:12:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/munmap-chunk-invalid-pointer/m-p/803680#M3260</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-10-20T04:12:04Z</dc:date>
    </item>
    <item>
      <title>munmap_chunk():invalid pointer</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/munmap-chunk-invalid-pointer/m-p/803681#M3261</link>
      <description>&lt;DIV id="tiny_quote"&gt;
                &lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=334681" class="basic" href="https://community.intel.com/en-us/profile/334681/"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
                &lt;DIV style="background-color: #e5e5e5; padding: 5px; border: 1px inset; margin-left: 2px; margin-right: 2px;"&gt;&lt;I&gt;when you link with ILP64 interfaces, Please usethe /4I8 compiler option for Fortran.&lt;DIV&gt;&lt;SPAN style="font-family: Verdana,Arial,Helvetica,sans-serif;"&gt;smth like:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.8333px;"&gt;ifort /4I8 /I &lt;DIRINCLUDE&gt;....&lt;/DIRINCLUDE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10.8333px;"&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;--Gennady&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;I've used the include statements and fixed a programming error that was pointed out by Victor Pasko in another forum. It works now. Thanks for the help.</description>
      <pubDate>Wed, 20 Oct 2010 16:43:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/munmap-chunk-invalid-pointer/m-p/803681#M3261</guid>
      <dc:creator>kkarco2</dc:creator>
      <dc:date>2010-10-20T16:43:48Z</dc:date>
    </item>
  </channel>
</rss>

