<?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 A SIGSEGV error in a run program - how to generate a trace back report in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755933#M11420</link>
    <description>Hello.&lt;BR /&gt;&lt;BR /&gt;Iintend torun an atmospheric modeling program in my Linux computing system.The configuration of my system to run the modeling program is as follows:&lt;BR /&gt;&lt;BR /&gt;Hardware: HP Z800 Workstation (dual-core)&lt;BR /&gt;Linux OS: Ubuntu 11.04&lt;BR /&gt;Compiler: Intel Fortran Composer XE 2011 for Linux (Update 4)&lt;BR /&gt;The netCDF and Input/Output Application Programming Interface (I/O API) are used for controlling file formats and controlling internal and external communications, respectively.&lt;BR /&gt;&lt;BR /&gt;When I run the core program of the model, a SIGSEGV error occurred and the program stopped on the way of execution.Then I am now trying to solve this problem by followingthe instruction written in the article "Determining Root Cause of SIGSEGV or SIGBUS errors", whichis in Intel Software Network website.&lt;BR /&gt;&lt;BR /&gt;At first, I re-run the program after unlimiting the stacksize for OpenMP (Cause #2). However, it failed again with the similar SIGSEGV error.&lt;BR /&gt;&lt;BR /&gt;For the next step, I would like to isolate where in the code the fault occurred by generating an execution 'traceback'. But I could have not known how to do this. (Actually, I am new to computer programming.) So could anyone teach me how to generate a trace back report?&lt;BR /&gt;&lt;BR /&gt;I also attach the error logfor the run after unlimiting the stacksize. It would be veryhelpful for meifanyone provide the cause and solutionfor the SIGSEGV error by reading the error log.</description>
    <pubDate>Mon, 06 Jun 2011 03:48:39 GMT</pubDate>
    <dc:creator>Tetsuro_Kikuchi</dc:creator>
    <dc:date>2011-06-06T03:48:39Z</dc:date>
    <item>
      <title>A SIGSEGV error in a run program - how to generate a trace back report</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755933#M11420</link>
      <description>Hello.&lt;BR /&gt;&lt;BR /&gt;Iintend torun an atmospheric modeling program in my Linux computing system.The configuration of my system to run the modeling program is as follows:&lt;BR /&gt;&lt;BR /&gt;Hardware: HP Z800 Workstation (dual-core)&lt;BR /&gt;Linux OS: Ubuntu 11.04&lt;BR /&gt;Compiler: Intel Fortran Composer XE 2011 for Linux (Update 4)&lt;BR /&gt;The netCDF and Input/Output Application Programming Interface (I/O API) are used for controlling file formats and controlling internal and external communications, respectively.&lt;BR /&gt;&lt;BR /&gt;When I run the core program of the model, a SIGSEGV error occurred and the program stopped on the way of execution.Then I am now trying to solve this problem by followingthe instruction written in the article "Determining Root Cause of SIGSEGV or SIGBUS errors", whichis in Intel Software Network website.&lt;BR /&gt;&lt;BR /&gt;At first, I re-run the program after unlimiting the stacksize for OpenMP (Cause #2). However, it failed again with the similar SIGSEGV error.&lt;BR /&gt;&lt;BR /&gt;For the next step, I would like to isolate where in the code the fault occurred by generating an execution 'traceback'. But I could have not known how to do this. (Actually, I am new to computer programming.) So could anyone teach me how to generate a trace back report?&lt;BR /&gt;&lt;BR /&gt;I also attach the error logfor the run after unlimiting the stacksize. It would be veryhelpful for meifanyone provide the cause and solutionfor the SIGSEGV error by reading the error log.</description>
      <pubDate>Mon, 06 Jun 2011 03:48:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755933#M11420</guid>
      <dc:creator>Tetsuro_Kikuchi</dc:creator>
      <dc:date>2011-06-06T03:48:39Z</dc:date>
    </item>
    <item>
      <title>A SIGSEGV error in a run program - how to generate a trace back</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755934#M11421</link>
      <description>Your sources need to be compiled and linked with the &lt;SPAN style="text-decoration: underline;"&gt;-traceback&lt;/SPAN&gt; option. If, in addition, you want to see source line numbers, use the &lt;SPAN style="text-decoration: underline;"&gt;-g&lt;/SPAN&gt; option also. Please look up these options in the Fortran User Guide.&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jun 2011 09:14:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755934#M11421</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-06-06T09:14:10Z</dc:date>
    </item>
    <item>
      <title>A SIGSEGV error in a run program - how to generate a trace back</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755935#M11422</link>
      <description>In your file open subroutine, after you report "Maximum current record number", insert a diagnostic printout where you printout the LOC of a scalar variable in the subroutine. IOW to see if your code has a recursion problem. If your file opens are multi-threaded then also print out the OpenMP thread number (or thread ID if nested is enabled).&lt;BR /&gt;&lt;BR /&gt;If nothing unusual shows up then you may need to rework your READ statement(s) for the input data such that large temporaries are not used. Note, heap-arrays should reduce stack pressure, please use whenever appropriate.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey</description>
      <pubDate>Mon, 06 Jun 2011 17:37:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755935#M11422</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2011-06-06T17:37:33Z</dc:date>
    </item>
    <item>
      <title>A SIGSEGV error in a run program - how to generate a trace back</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755936#M11423</link>
      <description>Thank you, all.&lt;BR /&gt;&lt;BR /&gt;I recompiled theexecutable of theprogram (called "CCTM") with the -g and -traceback options. I added the -gasboth thecompiler and link flags in thebuild script, while the -traceback was added only as the compilerflag. Please see the attached build script ("bldit.cctm") ("User Input Section" - "#&amp;gt; Intel Fortran 10.1 Compiler Flags"). Afterthat, I rerun the program. But it failed again with the same SIGSEGV error, and the trace back report was not also created.&lt;BR /&gt;&lt;BR /&gt;For reference, I attached the run script ("run.cctm").</description>
      <pubDate>Tue, 07 Jun 2011 06:38:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755936#M11423</guid>
      <dc:creator>Tetsuro_Kikuchi</dc:creator>
      <dc:date>2011-06-07T06:38:16Z</dc:date>
    </item>
    <item>
      <title>A SIGSEGV error in a run program - how to generate a trace back</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755937#M11424</link>
      <description>Generally if you get a segfault and no traceback is generated, you need to increase your stack size and it should go away. See:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/determining-root-cause-of-sigsegv-or-sigbus-errors/"&gt;http://software.intel.com/en-us/articles/determining-root-cause-of-sigsegv-or-sigbus-errors/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Check out Cause #2. &lt;BR /&gt;&lt;BR /&gt;To find out if this is the issue, type:&lt;BR /&gt;&lt;BR /&gt;ulimit -s unlimited&lt;BR /&gt;&lt;BR /&gt;in your terminal before you run your code.&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 07 Jun 2011 06:46:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755937#M11424</guid>
      <dc:creator>Tim_Gallagher</dc:creator>
      <dc:date>2011-06-07T06:46:51Z</dc:date>
    </item>
    <item>
      <title>A SIGSEGV error in a run program - how to generate a trace back</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755938#M11425</link>
      <description>Thank you, Tim.&lt;BR /&gt;&lt;BR /&gt;I rerun the program after getting the stack size unlimited as you told. However, it failed again with the similar SIGSEGV error.</description>
      <pubDate>Tue, 07 Jun 2011 07:05:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755938#M11425</guid>
      <dc:creator>Tetsuro_Kikuchi</dc:creator>
      <dc:date>2011-06-07T07:05:34Z</dc:date>
    </item>
    <item>
      <title>A SIGSEGV error in a run program - how to generate a trace back</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755939#M11426</link>
      <description>Have you tried the other solutions in the link posted? Particularly heap-arrays and checking for the large temporary arrays.</description>
      <pubDate>Tue, 07 Jun 2011 07:20:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755939#M11426</guid>
      <dc:creator>Tim_Gallagher</dc:creator>
      <dc:date>2011-06-07T07:20:17Z</dc:date>
    </item>
    <item>
      <title>A SIGSEGV error in a run program - how to generate a trace back</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755940#M11427</link>
      <description>The attachments show the added compiler flags, but &lt;SPAN style="text-decoration: underline;"&gt;there is no evidence&lt;/SPAN&gt; that the program was rebuilt. In particular, there are no "ifort ..." commands to be seen.&lt;BR /&gt;&lt;BR /&gt;You may need to do a "make clean", if there is a provision for a "clean" target in the makefile, or whatever needs to be done to &lt;SPAN style="text-decoration: underline;"&gt;force a rebuild to take place &lt;/SPAN&gt;by deleting .o files (possibly some user-built .a and/or .so files) and running Make again.&lt;BR /&gt;&lt;BR /&gt;If my guess is correct, you changed the options in the make/build files but "make" sees no need to rebuild. One way of handling the impass is to add the makefile itself as a dependency of the main target, but this has some undesirable side effects.</description>
      <pubDate>Tue, 07 Jun 2011 10:43:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755940#M11427</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-06-07T10:43:59Z</dc:date>
    </item>
    <item>
      <title>A SIGSEGV error in a run program - how to generate a trace back</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755941#M11428</link>
      <description>Thank you all for your suggestions.&lt;BR /&gt;&lt;BR /&gt;Later, I found that I had compiledtheInput/Output Application Programming Interface (I/O API) library using a different version of Makeinclude files from that needed for the target program. After recompiling the I/O API library andsuccessively a suite ofsource codes of the program, Icould complete the run of theprogram successfully.&lt;BR /&gt;&lt;BR /&gt;Thank you again for your consideration.</description>
      <pubDate>Wed, 08 Jun 2011 02:24:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-SIGSEGV-error-in-a-run-program-how-to-generate-a-trace-back/m-p/755941#M11428</guid>
      <dc:creator>Tetsuro_Kikuchi</dc:creator>
      <dc:date>2011-06-08T02:24:32Z</dc:date>
    </item>
  </channel>
</rss>

