<?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 -openmp flag causing segmentation fault in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/openmp-flag-causing-segmentation-fault/m-p/748568#M5738</link>
    <description>The GNU C/C++ development environment which our compiler uses is bundled with the Xcode package. The use of this GNU environment is not tied to using the actual Xcode GUI itself.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;-save-temps &lt;/STRONG&gt;isn't intended to address the segV. It saves the intermediate object files which on the Mac OS contain the debug symbols needed for debugging and symbolizing the traceback.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;-openmp&lt;/STRONG&gt; implies &lt;STRONG&gt;-automatic&lt;/STRONG&gt; which places local variables on the stack. If you have only specified the -openmp option but have not added any OpenMP directives to your code then you may have an uninitialized variable in the code which is now on the stack and whose initial value is contributing to the segV.&lt;BR /&gt;&lt;BR /&gt;If this is just a stack size issue you can refer to the URL to a pdf in &lt;A target="_blank" href="http://software.intel.com/en-us/forums/showpost.php?p=82871"&gt;this earlier post &lt;/A&gt;for a nice discussion on how to go beyond the ulimit setting for increasing stack space on Mac OS X.&lt;BR /&gt;&lt;BR /&gt;You can load and start execution of your debug build under the debugger and see if the 'bt' or 'where' commands offer any location information where the segV occurs. You might try this with both idb and gdb.</description>
    <pubDate>Tue, 10 Aug 2010 15:40:02 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2010-08-10T15:40:02Z</dc:date>
    <item>
      <title>-openmp flag causing segmentation fault</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/openmp-flag-causing-segmentation-fault/m-p/748565#M5735</link>
      <description>Hi all,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I'm about to have a go at parallelising a program that I use. Before getting into it though, I did a quick compile of it with the -openmp flag on (with no modifications to my code whatsoever i.e. no openmp includes and no pragma omp directives). Shortly after beginning to run it crashes out with a segmentation fault. Using traceback and debug all flags don't give me any indication of what's going wrong.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Any ideas on how to track down the problem?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;My compile flags are -openmp -traceback -debug all. I usually compile my code with just -m64 -fast.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;ulimit is set to unlimited&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I'm running OS X 10.6.4 with an Intel i7 processor and I'm using ifort version 11.1.080.&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Aug 2010 03:12:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/openmp-flag-causing-segmentation-fault/m-p/748565#M5735</guid>
      <dc:creator>intel1</dc:creator>
      <dc:date>2010-08-10T03:12:21Z</dc:date>
    </item>
    <item>
      <title>-openmp flag causing segmentation fault</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/openmp-flag-causing-segmentation-fault/m-p/748566#M5736</link>
      <description>&lt;P&gt;First, check your Xcode version to ensure you are not seeing effects of the incompatibility between the 11.1 compiler and newer "ld" linker bundled in Xcode 3.2.2 (and later). See &lt;A target="_blank" href="http://software.intel.com/en-us/forums/showthread.php?t=73942&amp;amp;o=d&amp;amp;s=lr"&gt;this sticky post &lt;/A&gt;for details.&lt;BR /&gt;&lt;BR /&gt;Next, perhaps the tips discussed in the knowledge base article about &lt;A target="_blank" href="http://software.intel.com/en-us/articles/determining-root-cause-of-sigsegv-or-sigbus-errors/"&gt;Determining SIGSEGV errors &lt;/A&gt;may help.&lt;BR /&gt;&lt;BR /&gt;You should add &lt;STRONG&gt;-save-temps&lt;/STRONG&gt; to your debug compilation.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2010 08:44:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/openmp-flag-causing-segmentation-fault/m-p/748566#M5736</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-08-10T08:44:31Z</dc:date>
    </item>
    <item>
      <title>-openmp flag causing segmentation fault</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/openmp-flag-causing-segmentation-fault/m-p/748567#M5737</link>
      <description>Would just having Xcode installed cause issues? I have it installed but I don't actually use it, I just use a text editor and the terminal. I added the -use-asm flag that they mention though and it didn't make a difference. Nor did the -save-temps part. I've had a look through the SIGSEGV error guide and have added all of the flags to help track them down:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;-openmp -traceback -debug all -save-temps -use-asm -g -check bounds -fp-stack-check -gen-interfaces -warn interfaces -check arg_temp_created&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Still no joy. I'll need to go through my code piece by piece and see if there's anything that I've done that would cause it to mess up. Back to the world of debugging with write (*,*) statements!!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I do find it a bit odd that just adding the -openmp option messes it up. I've done countless runs with this (simulation) code that can last up to a week and haven't had any problems without the -openmp flag.&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Aug 2010 13:18:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/openmp-flag-causing-segmentation-fault/m-p/748567#M5737</guid>
      <dc:creator>intel1</dc:creator>
      <dc:date>2010-08-10T13:18:44Z</dc:date>
    </item>
    <item>
      <title>-openmp flag causing segmentation fault</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/openmp-flag-causing-segmentation-fault/m-p/748568#M5738</link>
      <description>The GNU C/C++ development environment which our compiler uses is bundled with the Xcode package. The use of this GNU environment is not tied to using the actual Xcode GUI itself.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;-save-temps &lt;/STRONG&gt;isn't intended to address the segV. It saves the intermediate object files which on the Mac OS contain the debug symbols needed for debugging and symbolizing the traceback.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;-openmp&lt;/STRONG&gt; implies &lt;STRONG&gt;-automatic&lt;/STRONG&gt; which places local variables on the stack. If you have only specified the -openmp option but have not added any OpenMP directives to your code then you may have an uninitialized variable in the code which is now on the stack and whose initial value is contributing to the segV.&lt;BR /&gt;&lt;BR /&gt;If this is just a stack size issue you can refer to the URL to a pdf in &lt;A target="_blank" href="http://software.intel.com/en-us/forums/showpost.php?p=82871"&gt;this earlier post &lt;/A&gt;for a nice discussion on how to go beyond the ulimit setting for increasing stack space on Mac OS X.&lt;BR /&gt;&lt;BR /&gt;You can load and start execution of your debug build under the debugger and see if the 'bt' or 'where' commands offer any location information where the segV occurs. You might try this with both idb and gdb.</description>
      <pubDate>Tue, 10 Aug 2010 15:40:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/openmp-flag-causing-segmentation-fault/m-p/748568#M5738</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-08-10T15:40:02Z</dc:date>
    </item>
  </channel>
</rss>

