{"id":2697,"date":"2016-02-10T10:29:58","date_gmt":"2016-02-10T08:29:58","guid":{"rendered":"http:\/\/srvcnthpc001.uct.ac.za\/?p=2697"},"modified":"2016-02-10T10:33:19","modified_gmt":"2016-02-10T08:33:19","slug":"forrtl-severe-174-sigsegv-segmentation-fault-occurred","status":"publish","type":"post","link":"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/","title":{"rendered":"forrtl: severe (174): SIGSEGV, segmentation fault occurred"},"content":{"rendered":"<p>Last week we experienced an issue with executing a particular application written in Fortran on the HPC cluster.\u00a0 Submitting a job which executes the application via the portable batch system caused the above error. However, executing the application on a worker node as the user without the submission processes worked perfectly fine. This indicated a environmental mismatch. What I mean by &#8221; environment mismatch &#8221; is that something somewhere between what PBS is configured with and the standard user Linux login environment, is different. So we set to task to see what the issue could be.<\/p>\n<p>Our first clue in the above error was &#8220;segmentation&#8221; which generally points to a memory issue. Unfortunately, there was ample available memory on the worker node executing the process. Then we had a look at the user limits which are set in the environment and in particular the stacksize. Executing &#8221; ulimit -a &#8221; will provide you with a list of user limits which are set for a particular user environment. The limits can also be set globally in the &#8220;<strong>\/etc\/security\/limits.conf<\/strong> &#8221;<\/p>\n<p>It turns out the stacksize was set to unlimited for the PBS environment and for standard users it is set to the default of &#8221; <strong>8192<\/strong>&#8220;. Having the stacksize set to unlimited is actually recommended for most HPC applications. For this Fortran application though it did not like the fact that the the stacksize was set to unlimited. We submitted the job via the batch system again but this time included a &#8220;<strong> ulimit -s 8192<\/strong> &#8221; to set the ulimit stacksize before application executing and it ran through successfully without segmentation faults.<\/p>\n<p>We came to the conclusion that the Fortran application code could have been written to accept a value from the user limits for the stacksize and not a string. The application code should really be written to accept both options. This is unfortunate and the developer should be informed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week we experienced an issue with executing a particular application written in Fortran on the HPC cluster.\u00a0 Submitting a job which executes the application via the portable batch system caused the above error. However, executing the application on a worker node as the user without the submission processes worked perfectly fine. This indicated a&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20,22,8],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>forrtl: severe (174): SIGSEGV, segmentation fault occurred - UCT HPC<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"forrtl: severe (174): SIGSEGV, segmentation fault occurred - UCT HPC\" \/>\n<meta property=\"og:description\" content=\"Last week we experienced an issue with executing a particular application written in Fortran on the HPC cluster.\u00a0 Submitting a job which executes the application via the portable batch system caused the above error. However, executing the application on a worker node as the user without the submission processes worked perfectly fine. This indicated a...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/\" \/>\n<meta property=\"og:site_name\" content=\"UCT HPC\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-10T08:29:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-10T08:33:19+00:00\" \/>\n<meta name=\"author\" content=\"Timothy Carr\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Timothy Carr\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/\"},\"author\":{\"name\":\"Timothy Carr\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/41f6cd039836d7741f2b82a7b7cfe8d0\"},\"headline\":\"forrtl: severe (174): SIGSEGV, segmentation fault occurred\",\"datePublished\":\"2016-02-10T08:29:58+00:00\",\"dateModified\":\"2016-02-10T08:33:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/\"},\"wordCount\":319,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#organization\"},\"articleSection\":[\"Memory\",\"PBS\",\"programming\"],\"inLanguage\":\"en-ZA\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/\",\"name\":\"forrtl: severe (174): SIGSEGV, segmentation fault occurred - UCT HPC\",\"isPartOf\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#website\"},\"datePublished\":\"2016-02-10T08:29:58+00:00\",\"dateModified\":\"2016-02-10T08:33:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/#breadcrumb\"},\"inLanguage\":\"en-ZA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ucthpc.uct.ac.za\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"forrtl: severe (174): SIGSEGV, segmentation fault occurred\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#website\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/\",\"name\":\"UCT HPC\",\"description\":\"University of Cape Town High Performance Computing\",\"publisher\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ucthpc.uct.ac.za\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-ZA\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#organization\",\"name\":\"University of Cape Town High Performance Computing\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-ZA\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png\",\"contentUrl\":\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png\",\"width\":450,\"height\":423,\"caption\":\"University of Cape Town High Performance Computing\"},\"image\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/41f6cd039836d7741f2b82a7b7cfe8d0\",\"name\":\"Timothy Carr\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-ZA\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7e94dcf3a408e6ada008042fc29d4b15?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7e94dcf3a408e6ada008042fc29d4b15?s=96&d=mm&r=g\",\"caption\":\"Timothy Carr\"},\"sameAs\":[\"http:\/\/ucthpc.uct.ac.za\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"forrtl: severe (174): SIGSEGV, segmentation fault occurred - UCT HPC","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/","og_locale":"en_US","og_type":"article","og_title":"forrtl: severe (174): SIGSEGV, segmentation fault occurred - UCT HPC","og_description":"Last week we experienced an issue with executing a particular application written in Fortran on the HPC cluster.\u00a0 Submitting a job which executes the application via the portable batch system caused the above error. However, executing the application on a worker node as the user without the submission processes worked perfectly fine. This indicated a...","og_url":"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/","og_site_name":"UCT HPC","article_published_time":"2016-02-10T08:29:58+00:00","article_modified_time":"2016-02-10T08:33:19+00:00","author":"Timothy Carr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Timothy Carr","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/#article","isPartOf":{"@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/"},"author":{"name":"Timothy Carr","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/41f6cd039836d7741f2b82a7b7cfe8d0"},"headline":"forrtl: severe (174): SIGSEGV, segmentation fault occurred","datePublished":"2016-02-10T08:29:58+00:00","dateModified":"2016-02-10T08:33:19+00:00","mainEntityOfPage":{"@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/"},"wordCount":319,"commentCount":0,"publisher":{"@id":"https:\/\/ucthpc.uct.ac.za\/#organization"},"articleSection":["Memory","PBS","programming"],"inLanguage":"en-ZA","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/","url":"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/","name":"forrtl: severe (174): SIGSEGV, segmentation fault occurred - UCT HPC","isPartOf":{"@id":"https:\/\/ucthpc.uct.ac.za\/#website"},"datePublished":"2016-02-10T08:29:58+00:00","dateModified":"2016-02-10T08:33:19+00:00","breadcrumb":{"@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/#breadcrumb"},"inLanguage":"en-ZA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2016\/02\/10\/forrtl-severe-174-sigsegv-segmentation-fault-occurred\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ucthpc.uct.ac.za\/"},{"@type":"ListItem","position":2,"name":"forrtl: severe (174): SIGSEGV, segmentation fault occurred"}]},{"@type":"WebSite","@id":"https:\/\/ucthpc.uct.ac.za\/#website","url":"https:\/\/ucthpc.uct.ac.za\/","name":"UCT HPC","description":"University of Cape Town High Performance Computing","publisher":{"@id":"https:\/\/ucthpc.uct.ac.za\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ucthpc.uct.ac.za\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-ZA"},{"@type":"Organization","@id":"https:\/\/ucthpc.uct.ac.za\/#organization","name":"University of Cape Town High Performance Computing","url":"https:\/\/ucthpc.uct.ac.za\/","logo":{"@type":"ImageObject","inLanguage":"en-ZA","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/","url":"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png","contentUrl":"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png","width":450,"height":423,"caption":"University of Cape Town High Performance Computing"},"image":{"@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/41f6cd039836d7741f2b82a7b7cfe8d0","name":"Timothy Carr","image":{"@type":"ImageObject","inLanguage":"en-ZA","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7e94dcf3a408e6ada008042fc29d4b15?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7e94dcf3a408e6ada008042fc29d4b15?s=96&d=mm&r=g","caption":"Timothy Carr"},"sameAs":["http:\/\/ucthpc.uct.ac.za"]}]}},"_links":{"self":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts\/2697"}],"collection":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/comments?post=2697"}],"version-history":[{"count":6,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts\/2697\/revisions"}],"predecessor-version":[{"id":2703,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts\/2697\/revisions\/2703"}],"wp:attachment":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/media?parent=2697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/categories?post=2697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/tags?post=2697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}