<?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 10.0-10.2 dsyevr / dstegr segfaults with em64t &amp; dynamic library combination in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/10-0-10-2-dsyevr-dstegr-segfaults-with-em64t-dynamic-library/m-p/888440#M10186</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I found the following program segfaults with an attached file (&lt;A onclick="ndownload('http://software.intel.com/file/21792')"&gt;reproduce1.c&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Curiously, if I link MKL statically, the program runs without an error. I guess that something is wrong with dynamic loading.&lt;/P&gt;
&lt;P&gt;I don't know whether this is bug or not, but perhaps this is a duplicate of previously reported issue: &lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=66776" target="_blank"&gt;http://software.intel.com/en-us/forums/showthread.php?t=66776&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I use ubuntu 8.04, 64 bit version on Core2Q6600. The same phenomena were observed with MKL 10.0 - 10.2.1.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;% uname -a&lt;/P&gt;
&lt;P&gt;Linux foo 2.6.24-24-generic #1 SMP Fri Jul 24 22:15:50 UTC 2009 x86_64 GNU/Linux&lt;/P&gt;
&lt;P&gt;% icc -g reproduce1.c -L/opt/intel/mkl/10.2.1.017/lib -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lm&lt;/P&gt;
&lt;P&gt;% ./a.out&lt;/P&gt;
&lt;P&gt;zsh: segmentation fault  ./a.out&lt;BR /&gt;% valgrind ./a.out&lt;/P&gt;
&lt;P&gt;(snip)&lt;/P&gt;
&lt;P&gt;==525== Invalid read of size 8&lt;BR /&gt;==525==    at 0x4015EE4: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x400AB93: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x40061E4: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x4008677: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x4012048: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x400DDF5: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x401191A: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x6688F8A: (within /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x400DDF5: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x66894EC: (within /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x6688EF0: dlopen (in /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x522CC0C: mkl_serv_load_lapack_dll (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==  Address 0x688c118 is 48 bytes inside a block of size 53 alloc'd&lt;BR /&gt;==525==    at 0x4C22FAB: malloc (vg_replace_malloc.c:207)&lt;BR /&gt;==525==    by 0x4005F47: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x400885F: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x4012048: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x400DDF5: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x401191A: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x6688F8A: (within /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x400DDF5: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x66894EC: (within /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x6688EF0: dlopen (in /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x522CC0C: mkl_serv_load_lapack_dll (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==    by 0x527884A: mkl_lapack_dsyevr (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==&lt;BR /&gt;==525== Invalid read of size 8&lt;BR /&gt;==525==    at 0x70CB452: mkl_lapack_dlar1v (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_lapack.so)&lt;BR /&gt;==525==    by 0x52714FE: mkl_lapack_dlar1v (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==    by 0x70D9202: mkl_lapack_dlarrv (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_lapack.so)&lt;BR /&gt;==525==    by 0x5271EB4: mkl_lapack_dlarrv (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==    by 0x718266A: mkl_lapack_dstemr (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_lapack.so)&lt;BR /&gt;==525==    by 0x52780D4: mkl_lapack_dstemr (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==    by 0x7129193: mkl_lapack_dsyevr (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_lapack.so)&lt;BR /&gt;==525==    by 0x5278832: mkl_lapack_dsyevr (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==    by 0x4F767BE: DSYEVR (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_intel_lp64.so)&lt;BR /&gt;==525==    by 0x400AF3: main (reproduce1.c:77)&lt;BR /&gt;==525==  Address 0xef8538e067ad3800 is not stack'd, malloc'd or (recently) free'd&lt;/P&gt;
&lt;P&gt;(snip)&lt;/P&gt;
&lt;P&gt;% icc -g reproduce1.c -L/opt/intel/mkl/10.2.1.017/lib  -Wl,--start-group $MKLPATH/libmkl_intel_lp64.a $MKLPATH/libmkl_sequential.a $MKLPATH/libmkl_core.a -Wl,--end-group&lt;/P&gt;
&lt;P&gt;% ./a.out&lt;/P&gt;
&lt;P&gt;Eigenvalues: -0.623475 -0.000000 9.623475&lt;BR /&gt;Eigenvectors:&lt;BR /&gt; (0.827671 0.142414 -0.542844)&lt;BR /&gt; (0.408248 -0.816497 0.408248)&lt;BR /&gt; (-0.385090 -0.559510 -0.733931)&lt;BR /&gt;%&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If I use dsyev instead of dsyevr (by passing arguments to program, see line 43), it works fine. Other functions like dsyrk, dgemv, dgemm make no problems, as far as I could confirm. Only dsyevr gets error on dynamic loading.&lt;/P&gt;
&lt;P&gt;(edit: changed linking option for static version to be compatible with dynamic version. Result is the same.)&lt;BR /&gt;(edit: commented about dsyev and other functions)&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2009 17:33:28 GMT</pubDate>
    <dc:creator>ssakuraba2</dc:creator>
    <dc:date>2009-08-21T17:33:28Z</dc:date>
    <item>
      <title>10.0-10.2 dsyevr / dstegr segfaults with em64t &amp; dynamic library combination</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/10-0-10-2-dsyevr-dstegr-segfaults-with-em64t-dynamic-library/m-p/888440#M10186</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I found the following program segfaults with an attached file (&lt;A onclick="ndownload('http://software.intel.com/file/21792')"&gt;reproduce1.c&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Curiously, if I link MKL statically, the program runs without an error. I guess that something is wrong with dynamic loading.&lt;/P&gt;
&lt;P&gt;I don't know whether this is bug or not, but perhaps this is a duplicate of previously reported issue: &lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=66776" target="_blank"&gt;http://software.intel.com/en-us/forums/showthread.php?t=66776&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I use ubuntu 8.04, 64 bit version on Core2Q6600. The same phenomena were observed with MKL 10.0 - 10.2.1.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;% uname -a&lt;/P&gt;
&lt;P&gt;Linux foo 2.6.24-24-generic #1 SMP Fri Jul 24 22:15:50 UTC 2009 x86_64 GNU/Linux&lt;/P&gt;
&lt;P&gt;% icc -g reproduce1.c -L/opt/intel/mkl/10.2.1.017/lib -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lm&lt;/P&gt;
&lt;P&gt;% ./a.out&lt;/P&gt;
&lt;P&gt;zsh: segmentation fault  ./a.out&lt;BR /&gt;% valgrind ./a.out&lt;/P&gt;
&lt;P&gt;(snip)&lt;/P&gt;
&lt;P&gt;==525== Invalid read of size 8&lt;BR /&gt;==525==    at 0x4015EE4: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x400AB93: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x40061E4: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x4008677: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x4012048: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x400DDF5: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x401191A: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x6688F8A: (within /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x400DDF5: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x66894EC: (within /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x6688EF0: dlopen (in /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x522CC0C: mkl_serv_load_lapack_dll (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==  Address 0x688c118 is 48 bytes inside a block of size 53 alloc'd&lt;BR /&gt;==525==    at 0x4C22FAB: malloc (vg_replace_malloc.c:207)&lt;BR /&gt;==525==    by 0x4005F47: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x400885F: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x4012048: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x400DDF5: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x401191A: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x6688F8A: (within /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x400DDF5: (within /lib/ld-2.7.so)&lt;BR /&gt;==525==    by 0x66894EC: (within /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x6688EF0: dlopen (in /lib/libdl-2.7.so)&lt;BR /&gt;==525==    by 0x522CC0C: mkl_serv_load_lapack_dll (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==    by 0x527884A: mkl_lapack_dsyevr (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==&lt;BR /&gt;==525== Invalid read of size 8&lt;BR /&gt;==525==    at 0x70CB452: mkl_lapack_dlar1v (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_lapack.so)&lt;BR /&gt;==525==    by 0x52714FE: mkl_lapack_dlar1v (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==    by 0x70D9202: mkl_lapack_dlarrv (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_lapack.so)&lt;BR /&gt;==525==    by 0x5271EB4: mkl_lapack_dlarrv (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==    by 0x718266A: mkl_lapack_dstemr (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_lapack.so)&lt;BR /&gt;==525==    by 0x52780D4: mkl_lapack_dstemr (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==    by 0x7129193: mkl_lapack_dsyevr (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_lapack.so)&lt;BR /&gt;==525==    by 0x5278832: mkl_lapack_dsyevr (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_core.so)&lt;BR /&gt;==525==    by 0x4F767BE: DSYEVR (in /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_intel_lp64.so)&lt;BR /&gt;==525==    by 0x400AF3: main (reproduce1.c:77)&lt;BR /&gt;==525==  Address 0xef8538e067ad3800 is not stack'd, malloc'd or (recently) free'd&lt;/P&gt;
&lt;P&gt;(snip)&lt;/P&gt;
&lt;P&gt;% icc -g reproduce1.c -L/opt/intel/mkl/10.2.1.017/lib  -Wl,--start-group $MKLPATH/libmkl_intel_lp64.a $MKLPATH/libmkl_sequential.a $MKLPATH/libmkl_core.a -Wl,--end-group&lt;/P&gt;
&lt;P&gt;% ./a.out&lt;/P&gt;
&lt;P&gt;Eigenvalues: -0.623475 -0.000000 9.623475&lt;BR /&gt;Eigenvectors:&lt;BR /&gt; (0.827671 0.142414 -0.542844)&lt;BR /&gt; (0.408248 -0.816497 0.408248)&lt;BR /&gt; (-0.385090 -0.559510 -0.733931)&lt;BR /&gt;%&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If I use dsyev instead of dsyevr (by passing arguments to program, see line 43), it works fine. Other functions like dsyrk, dgemv, dgemm make no problems, as far as I could confirm. Only dsyevr gets error on dynamic loading.&lt;/P&gt;
&lt;P&gt;(edit: changed linking option for static version to be compatible with dynamic version. Result is the same.)&lt;BR /&gt;(edit: commented about dsyev and other functions)&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2009 17:33:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/10-0-10-2-dsyevr-dstegr-segfaults-with-em64t-dynamic-library/m-p/888440#M10186</guid>
      <dc:creator>ssakuraba2</dc:creator>
      <dc:date>2009-08-21T17:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: 10.0-10.2 dsyevr / dstegr segfaults with em64t &amp; dynamic li</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/10-0-10-2-dsyevr-dstegr-segfaults-with-em64t-dynamic-library/m-p/888441#M10187</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
The library path you show for your link doesn't match the path shown for the .so files in your log. If you don't use the same .so for link and run time, that could explain the problem. I would guess the -L designation in your static link is ignored.&lt;BR /&gt;An advantage of the Intel "professional" compiler editions is the automatic inclusion of MKL paths in the compiler path setup.&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Aug 2009 21:14:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/10-0-10-2-dsyevr-dstegr-segfaults-with-em64t-dynamic-library/m-p/888441#M10187</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-08-21T21:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: 10.0-10.2 dsyevr / dstegr segfaults with em64t &amp; dynamic li</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/10-0-10-2-dsyevr-dstegr-segfaults-with-em64t-dynamic-library/m-p/888442#M10188</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Thanks for pointing out. The problem still remains after changing it to correct path.&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;I am using mklvarsem64t.sh, thus actually there were no need to add -L paths. I just wanted to add it so that the command line be the same as written in reference manual. Sorry for making confusion.&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; The library path you show for your link doesn't match the path shown for the .so files in your log. If you don't use the same .so for link and run time, that could explain the problem. I would guess the -L designation in your static link is ignored.&lt;BR /&gt;An advantage of the Intel "professional" compiler editions is the automatic inclusion of MKL paths in the compiler path setup.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Aug 2009 21:37:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/10-0-10-2-dsyevr-dstegr-segfaults-with-em64t-dynamic-library/m-p/888442#M10188</guid>
      <dc:creator>ssakuraba2</dc:creator>
      <dc:date>2009-08-21T21:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: 10.0-10.2 dsyevr / dstegr segfaults with em64t &amp; dynamic li</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/10-0-10-2-dsyevr-dstegr-segfaults-with-em64t-dynamic-library/m-p/888443#M10189</link>
      <description>&lt;DIV style="margin:0px;"&gt;This is a known issue. It has been fixed in an update which will be released soon. I don't know of any workaround other than linking statically.&lt;BR /&gt;-Todd&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Aug 2009 17:45:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/10-0-10-2-dsyevr-dstegr-segfaults-with-em64t-dynamic-library/m-p/888443#M10189</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2009-08-24T17:45:38Z</dc:date>
    </item>
  </channel>
</rss>

