<?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: strange valgrind info with ifort in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/strange-valgrind-info-with-ifort/m-p/741336#M884</link>
    <description>Just thought I would update this, since I have found out about error suppression in valgrind (see &lt;A href="http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress)" target="_blank"&gt;http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress)&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Suppressions such as the one below (which targets for__reopen_file) will clean up the output of valgrind:&lt;BR /&gt;&lt;PRE&gt;[plain]{
   noname
   Memcheck:Cond
   fun:for__reopen_file
   ...
}
{
   noname
   Memcheck:Value8
   fun:for__reopen_file
   ...
}[/plain]&lt;/PRE&gt; &lt;BR /&gt;I wonder whether there is a repository of such suppressions in use for ifort? This is definitely something that is tedious to assemble, could be shared &amp;amp; would save a lot of time.</description>
    <pubDate>Wed, 23 Feb 2011 00:18:55 GMT</pubDate>
    <dc:creator>Alexis_R_</dc:creator>
    <dc:date>2011-02-23T00:18:55Z</dc:date>
    <item>
      <title>strange valgrind info with ifort</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/strange-valgrind-info-with-ifort/m-p/741334#M882</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm using valgrind to analyze a code compiled with ifort, and I have some extrain information on different points of the code.&lt;BR /&gt;Some examples:&lt;BR /&gt;&lt;BR /&gt;==2785==    by 0x403CDB: main (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;==2785==  Address 0x5a64178 is 112 bytes inside a block of size 116 alloc'd&lt;BR /&gt;==2785==    at 0x4C265AE: malloc (vg_replace_malloc.c:207)&lt;BR /&gt;==2785==    by 0x2110962: for__get_vm (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;==2785==    by 0x2135456: for__open_proc (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;==2785==    by 0x20F627E: for_open (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;==2785==    by 0x6FCE94: c_input_mp_openfi_ (c_input.F90:798)&lt;BR /&gt;==2785==    by 0x1DEACB2: startp_ (startp.f90:21)&lt;BR /&gt;==2785==    by 0x13079E0: MAIN__ (mainpg.F90:82)&lt;BR /&gt;==2785==    by 0x403CDB: main (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;==2785== Invalid read of size 8&lt;BR /&gt;==2785==    at 0x20E474F: for__io_return (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;==2785==    by 0x2106DDC: for_read_seq_fmt (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;==2785==    by 0x720171: c_input_mp_randwr_ (c_input.F90:1302)&lt;BR /&gt;==2785==    by 0x720011: c_input_mp_genfil_ (c_input.F90:1283)&lt;BR /&gt;==2785==    by 0x6FD2BA: c_input_mp_openfi_ (c_input.F90:800)&lt;BR /&gt;==2785==    by 0x1DEACB2: startp_ (startp.f90:21)&lt;BR /&gt;==2785==    by 0x13079E0: MAIN__ (mainpg.F90:82)&lt;BR /&gt;==2785==    by 0x403CDB: main (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;==2785== Conditional jump or move depends on uninitialised value(s)&lt;BR /&gt;==2785==    at 0x218CE96: __intel_sse2_strlen (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;==2785==    by 0x20E476B: for__io_return (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;==2785==    by 0x2106DDC: for_read_seq_fmt (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;==2785==    by 0x720171: c_input_mp_randwr_ (c_input.F90:1302)&lt;BR /&gt;==2785==    by 0x720011: c_input_mp_genfil_ (c_input.F90:1283)&lt;BR /&gt;==2785==    by 0x6FD2BA: c_input_mp_openfi_ (c_input.F90:800)&lt;BR /&gt;==2785==    by 0x1DEACB2: startp_ (startp.f90:21)&lt;BR /&gt;==2785==    by 0x13079E0: MAIN__ (mainpg.F90:82)&lt;BR /&gt;==2785==    by 0x403CDB: main (in /home/xxxx/bin/e600INTEL-dbg_2009.11.unix.exe)&lt;BR /&gt;&lt;BR /&gt;I have many comments in the valgrind analysis, and I'm not sure about if is right or not....&lt;BR /&gt;&lt;BR /&gt;I'm using intel ifort 11.1.056, and ubuntu 9.04 amd64:&lt;BR /&gt;Linux xxxx 2.6.27-15-generic #1 SMP Tue Oct 20 06:50:36 UTC 2009 x86_64 GNU/Linux&lt;BR /&gt;&lt;BR /&gt;compilation: ifort -g -warn all -check all -traceback ....&lt;BR /&gt;&lt;BR /&gt;Someone can give me some information about this kind of "remarks/errors" with valgrind?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Nov 2009 12:54:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/strange-valgrind-info-with-ifort/m-p/741334#M882</guid>
      <dc:creator>clabra</dc:creator>
      <dc:date>2009-11-20T12:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: strange valgrind info with ifort</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/strange-valgrind-info-with-ifort/m-p/741335#M883</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
I have also found that Valgrind becomes almost useless (because of a large number of warnings/errors) when analysing ifort-compiled executables. Maybe I am missing an option in valgrind? As an example, here is the simplest "Hello world" program:&lt;BR /&gt;
&lt;PRE&gt;[cpp]program helloworld&lt;BR /&gt; print *, 'Hello world'&lt;BR /&gt;end program[/cpp]&lt;/PRE&gt;
I compile it like this:&lt;BR /&gt;
&lt;PRE&gt;[cpp]ifort -g helloworld.f90[/cpp]&lt;/PRE&gt;
Then run it "under" valgrind:&lt;BR /&gt;
&lt;PRE&gt;[cpp]valgrind a.out[/cpp]&lt;/PRE&gt;
And I get a very long list of errors from (i guess) low-level fortran routines:&lt;BR /&gt;
&lt;PRE&gt;[cpp]==22344== Memcheck, a memory error detector&lt;BR /&gt;==22344== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.&lt;BR /&gt;==22344== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info&lt;BR /&gt;==22344== Command: a.out&lt;BR /&gt;==22344== &lt;BR /&gt;==22344== Conditional jump or move depends on uninitialised value(s)&lt;BR /&gt;==22344==    at 0x41E36C: for__open_proc (in /scratch/alr99/helloworld/a.out)&lt;BR /&gt;==22344==    by 0x40CF94: for__open_default (in /scratch/alr99/helloworld/a.out)&lt;BR /&gt;==22344==    by 0x412189: for_write_seq_lis (in /scratch/alr99/helloworld/a.out)&lt;BR /&gt;==22344==    by 0x402B4C: MAIN__ (helloworld.f90:2)&lt;BR /&gt;==22344==    by 0x402ADB: main (in /scratch/alr99/helloworld/a.out)&lt;BR /&gt;==22344== &lt;BR /&gt;==22344== Conditional jump or move depends on uninitialised value(s)&lt;BR /&gt;==22344==    at 0x40F45C: for__get_vm (in /scratch/alr99/helloworld/a.out)&lt;BR /&gt;==22344==    by 0x41E396: for__open_proc (in /scratch/alr99/helloworld/a.out)&lt;BR /&gt;==22344==    by 0x40CF94: for__open_default (in /scratch/alr99/helloworld/a.out)&lt;BR /&gt;==22344==    by 0x412189: for_write_seq_lis (in /scratch/alr99/helloworld/a.out)&lt;BR /&gt;==22344==    by 0x402B4C: MAIN__ (helloworld.f90:2)&lt;BR /&gt;==22344==    by 0x402ADB: main (in /scratch/alr99/helloworld/a.out)&lt;BR /&gt;(...)&lt;BR /&gt;[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;Does anyone know how to use valgrind with ifort-compiled executables? Are there alternative tools which perform a similar function?&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jan 2010 22:29:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/strange-valgrind-info-with-ifort/m-p/741335#M883</guid>
      <dc:creator>Alexis_R_</dc:creator>
      <dc:date>2010-01-13T22:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: strange valgrind info with ifort</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/strange-valgrind-info-with-ifort/m-p/741336#M884</link>
      <description>Just thought I would update this, since I have found out about error suppression in valgrind (see &lt;A href="http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress)" target="_blank"&gt;http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress)&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Suppressions such as the one below (which targets for__reopen_file) will clean up the output of valgrind:&lt;BR /&gt;&lt;PRE&gt;[plain]{
   noname
   Memcheck:Cond
   fun:for__reopen_file
   ...
}
{
   noname
   Memcheck:Value8
   fun:for__reopen_file
   ...
}[/plain]&lt;/PRE&gt; &lt;BR /&gt;I wonder whether there is a repository of such suppressions in use for ifort? This is definitely something that is tedious to assemble, could be shared &amp;amp; would save a lot of time.</description>
      <pubDate>Wed, 23 Feb 2011 00:18:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/strange-valgrind-info-with-ifort/m-p/741336#M884</guid>
      <dc:creator>Alexis_R_</dc:creator>
      <dc:date>2011-02-23T00:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: strange valgrind info with ifort</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/strange-valgrind-info-with-ifort/m-p/741337#M885</link>
      <description>&lt;DIV&gt;Thanks Rohou!&lt;/DIV&gt;&lt;DIV&gt;I hope will be possible use valgrind without false warnings/errors. I thing the problems are basically with read/write functions.&lt;/DIV&gt;</description>
      <pubDate>Sun, 27 Feb 2011 19:41:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/strange-valgrind-info-with-ifort/m-p/741337#M885</guid>
      <dc:creator>clabra</dc:creator>
      <dc:date>2011-02-27T19:41:32Z</dc:date>
    </item>
  </channel>
</rss>

