<?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 *** glibc detected *** ./test.out: free(): invalid next size (fast) in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/glibc-detected-test-out-free-invalid-next-size-fast/m-p/1002951#M18665</link>
    <description>&lt;P&gt;Sir,&lt;/P&gt;

&lt;P&gt;i am trying to multiply 2 block sparse matrices ie. block elemnts along the diagnol. in my case two 4*4 blocks.&lt;/P&gt;

&lt;P&gt;a_mat is the nonzero array for A. since A is 8*8 a_mat(columns array as per documentation) is 8*4 due to block diagnol sparsenes.&lt;/P&gt;

&lt;P&gt;the result is atored in either q_mat or b_mat.&lt;/P&gt;

&lt;P&gt;i have tried bot routines mkl_scsrmultd(a_mat * a_mat) &amp;amp; scsrmm(a_mat *b_mat)&lt;/P&gt;

&lt;P&gt;also i have seen to that scscrmult gets one based indexing and scsrmm get zero based. I just cant seem to figure out the error as to which size is wrong .&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;</description>
    <pubDate>Mon, 28 Apr 2014 10:38:47 GMT</pubDate>
    <dc:creator>hemantp_p_</dc:creator>
    <dc:date>2014-04-28T10:38:47Z</dc:date>
    <item>
      <title>*** glibc detected *** ./test.out: free(): invalid next size (fast)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/glibc-detected-test-out-free-invalid-next-size-fast/m-p/1002951#M18665</link>
      <description>&lt;P&gt;Sir,&lt;/P&gt;

&lt;P&gt;i am trying to multiply 2 block sparse matrices ie. block elemnts along the diagnol. in my case two 4*4 blocks.&lt;/P&gt;

&lt;P&gt;a_mat is the nonzero array for A. since A is 8*8 a_mat(columns array as per documentation) is 8*4 due to block diagnol sparsenes.&lt;/P&gt;

&lt;P&gt;the result is atored in either q_mat or b_mat.&lt;/P&gt;

&lt;P&gt;i have tried bot routines mkl_scsrmultd(a_mat * a_mat) &amp;amp; scsrmm(a_mat *b_mat)&lt;/P&gt;

&lt;P&gt;also i have seen to that scscrmult gets one based indexing and scsrmm get zero based. I just cant seem to figure out the error as to which size is wrong .&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 10:38:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/glibc-detected-test-out-free-invalid-next-size-fast/m-p/1002951#M18665</guid>
      <dc:creator>hemantp_p_</dc:creator>
      <dc:date>2014-04-28T10:38:47Z</dc:date>
    </item>
    <item>
      <title>Hello,  </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/glibc-detected-test-out-free-invalid-next-size-fast/m-p/1002952#M18666</link>
      <description>&lt;P&gt;Hello, &amp;nbsp;&lt;/P&gt;

&lt;P&gt;It seems your code have some memory issues. If you have &amp;nbsp;Intel Inspector XE, you will find the problem in quick way :).&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The main problem are in the *.h file. They should be :&amp;nbsp;malloc(M*N*s&lt;SPAN style="font-weight: 700;"&gt;izeof(int))&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;int * gen_col(int M, int N)&lt;BR /&gt;
	{&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;int n = 0;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int m = 0;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int k = 1;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int i;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;int *x = (int*)malloc(M*N*s&lt;STRONG&gt;izeof(int))&lt;/STRONG&gt;;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;void * gen_row(int M, int N)&lt;BR /&gt;
	{&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;int i;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;int *x = (int*)malloc((M+1)*&lt;STRONG&gt;sizeof(int)&lt;/STRONG&gt;);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;and other memory leak as you only malloc them, but haven't free them.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Inspector result :)&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;ID&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Type&amp;nbsp;&amp;nbsp; &amp;nbsp;Sources&amp;nbsp;&amp;nbsp; &amp;nbsp;Modules&amp;nbsp;&amp;nbsp; &amp;nbsp;Object Size&amp;nbsp;&amp;nbsp; &amp;nbsp;State&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;P1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Unhandled application exception&amp;nbsp;&amp;nbsp; &amp;nbsp;read.c&amp;nbsp;&amp;nbsp; &amp;nbsp;MSVCR100D.dll&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;New&lt;BR /&gt;
	P2&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Memory leak&amp;nbsp;&amp;nbsp; &amp;nbsp;gen_col.h&amp;nbsp;&amp;nbsp; &amp;nbsp;mkl-lab1-dgemm.exe&amp;nbsp;&amp;nbsp; &amp;nbsp;32&amp;nbsp;&amp;nbsp; &amp;nbsp;New&lt;BR /&gt;
	P3&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Memory leak&amp;nbsp;&amp;nbsp; &amp;nbsp;test1.cpp&amp;nbsp;&amp;nbsp; &amp;nbsp;mkl-lab1-dgemm.exe&amp;nbsp;&amp;nbsp; &amp;nbsp;128&amp;nbsp;&amp;nbsp; &amp;nbsp;New&lt;BR /&gt;
	P4&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Memory leak&amp;nbsp;&amp;nbsp; &amp;nbsp;test1.cpp&amp;nbsp;&amp;nbsp; &amp;nbsp;mkl-lab1-dgemm.exe&amp;nbsp;&amp;nbsp; &amp;nbsp;256&amp;nbsp;&amp;nbsp; &amp;nbsp;New&lt;BR /&gt;
	P5&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Memory leak&amp;nbsp;&amp;nbsp; &amp;nbsp;test1.cpp&amp;nbsp;&amp;nbsp; &amp;nbsp;mkl-lab1-dgemm.exe&amp;nbsp;&amp;nbsp; &amp;nbsp;256&amp;nbsp;&amp;nbsp; &amp;nbsp;New&lt;BR /&gt;
	P6&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Invalid memory access&amp;nbsp;&amp;nbsp; &amp;nbsp;gen_col.h&amp;nbsp;&amp;nbsp; &amp;nbsp;mkl-lab1-dgemm.exe&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;New&lt;BR /&gt;
	P7&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Invalid memory access&amp;nbsp;&amp;nbsp; &amp;nbsp;test1.cpp&amp;nbsp;&amp;nbsp; &amp;nbsp;mkl-lab1-dgemm.exe&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;New&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2014 07:32:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/glibc-detected-test-out-free-invalid-next-size-fast/m-p/1002952#M18666</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2014-04-30T07:32:15Z</dc:date>
    </item>
  </channel>
</rss>

