<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Debugger - Segmentation fault - SIGSEGV]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=158&amp;type=atom" />
	<updated>2013-02-27T13:14:54Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=158</id>
		<entry>
			<title type="html"><![CDATA[Re: Debugger - Segmentation fault - SIGSEGV]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=594#p594" />
			<content type="html"><![CDATA[<p>John,</p><p>I&#039;m not sure I can answer the question without being able to replicate the issue on my end.&nbsp; Would you be willing to send either the full code causing the issue or a slimmed-down version that still exhibits the behavior?</p><p>Additionally, I still encourage you to try debugging under 1.38.&nbsp; That version ships with a slightly older version of Insight, which might not have this issue.&nbsp; The versions of Insight in Simply Fortran 1.39 and 1.40 are identical.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-02-27T13:14:54Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=594#p594</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debugger - Segmentation fault - SIGSEGV]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=593#p593" />
			<content type="html"><![CDATA[<p>I have borrowed a 64-bit laptop and loaded down v.1.40. After changing the project setting it compiles w/o error, but on launching immediately gives the same error message as previously, but now with 16 characters in the back-tracking address: #0 fffffffffffffff.</p>]]></content>
			<author>
				<name><![CDATA[JohnT]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3408</uri>
			</author>
			<updated>2013-02-27T10:23:08Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=593#p593</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debugger - Segmentation fault - SIGSEGV]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=584#p584" />
			<content type="html"><![CDATA[<p>John,</p><p>The debugger was &quot;upgraded&quot; in version 1.39, and the new version did fix a number of issues people had reported.&nbsp; You might try uninstalling 1.39 and installing 1.38 instead (all versions are available on the <a href="http://simplyfortran.com/download">Download page</a>), which still uses Insight 7.4.50.&nbsp; The bug may be in Insight itself.&nbsp; I&#039;ll try to figure out what the issue is on my end.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-02-23T18:37:19Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=584#p584</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debugger - Segmentation fault - SIGSEGV]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=583#p583" />
			<content type="html"><![CDATA[<p>The program requires nowhere near a Gb. There are less than&nbsp; 40 single-precision, real arrays of (2,50) and 3 of (20,20) that are&nbsp; statically allocated in individual subroutines plus about 50 other common variables in a single module.<br />The message didn&#039;t come until I started running 1.39 last Thursday evening. Before that I had been on the version I downloaded originally Nov 21 (1.34 or 1.35) and the error didn&#039;t occur. I was still debugging the numerical procedures in the program when I saw the new version was available.</p>]]></content>
			<author>
				<name><![CDATA[JohnT]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3408</uri>
			</author>
			<updated>2013-02-23T18:01:51Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=583#p583</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debugger - Segmentation fault - SIGSEGV]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=582#p582" />
			<content type="html"><![CDATA[<p>John,</p><p>There is only one compiler, the one originally set in the compiler options, and it can produce both 32- and 64-bit targets.&nbsp; There should be no reason to change this.</p><p>Does your program by any chance employ large, statically-allocated arrays?&nbsp; Do you receive the error message when you run the program outside the debugger as well? </p><p>The error seems to imply that your program hasn&#039;t even effectively started running when the segmentation fault occurs.&nbsp; I&#039;m just wondering if some static allocations are exceeding the ~1.5GB limit 32-bit Windows imposes on processes.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-02-23T15:55:38Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=582#p582</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debugger - Segmentation fault - SIGSEGV]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=581#p581" />
			<content type="html"><![CDATA[<p>I tried the gFortran.exe that I found by browsing under Options - Compiler...&nbsp; just to see if that was the one I should be using. Obviously this was wrong, so I went back to the original one, without success. The reason for trying this change was that the file path suggests that the file I am using now is for 64-bit computers, while I am running on a 32-bit one. </p><p>The choice under Project options is correctly set and has been all the time.</p>]]></content>
			<author>
				<name><![CDATA[JohnT]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3408</uri>
			</author>
			<updated>2013-02-23T08:51:16Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=581#p581</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debugger - Segmentation fault - SIGSEGV]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=580#p580" />
			<content type="html"><![CDATA[<p>John,</p><p>The original path should be the correct one.&nbsp; Did C:\Programfiler\Simply Fortran\mingw-w64\bin\gfortran.exe not exist?&nbsp; I understand that the path you changed it to exists, but the desired program is the first path.</p><p>The error you&#039;re seeing is most likely due to the compiler not finding the proper subprograms it executes.</p><p>Was there any reason you decided to edit the compiler location?&nbsp; Did you encounter an issue before you changed the location?</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-02-22T19:45:56Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=580#p580</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debugger - Segmentation fault - SIGSEGV]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=579#p579" />
			<content type="html"><![CDATA[<p>I loaded up vers. 1.39 yesterday and the compile default had become: </p><p>C:\Programfiler\Simply Fortran\mingw-w64\bin\gfortran.exe</p><p>I browsed my way to this program: </p><p>C:\Programfiler\Simply Fortran\mingw-w64\x86_64-w64-mingw32\bin\gfortran.exe</p><p>and set it as the compiler.</p><p>The result was the following error message on the first of three files to be compiled:</p><p>&quot;C:\Programfiler\Simply Fortran\mingw-w64\x86_64-w64-mingw32\bin\gfortran.exe&quot; -c -o &quot;build\shmod.o&quot; -g -m32 -I&quot;C:/Programfiler/Simply Fortran/mingw-w64/x86_64-w64-mingw32/include/&quot;&nbsp; -Jmodules &quot;shmod.f90&quot;<br />gfortran.exe: error: CreateProcess: No such file or directory<br />Error(E42): Last command making (build\shmod.o) returned a bad status<br />Error(E02): Make execution terminated</p><p>My computer is a 32bit model (Dell) <br />I gather the download doesn&#039;t interogate the system or use the existing settings</p>]]></content>
			<author>
				<name><![CDATA[JohnT]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3408</uri>
			</author>
			<updated>2013-02-22T19:26:30Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=579#p579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Debugger - Segmentation fault - SIGSEGV]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=578#p578" />
			<content type="html"><![CDATA[<p>John,</p><p>What architecture are you currently compiling for, 32- or 64-bit?&nbsp; This option is configurable in the Project Options window.&nbsp; You might try switching this option, if possible, depending on your operating system, and retry debugging.</p><p>Let us know if you have any luck.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-02-22T18:22:13Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=578#p578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Debugger - Segmentation fault - SIGSEGV]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=577#p577" />
			<content type="html"><![CDATA[<p>My program compiles with the default settings without messages, but on Launching immediately returns the message:</p><p>Program received signal SIGSEGV: Segmentation fault - invalid memory reference.</p><p>Backtrace for this error:<br />#0&nbsp; fffffffff</p><p>I see from the GNU Insight Forum that this fault is ongoing and several people have tried to patch it.</p><p>What I need to know is which FORTRAN feature sets off this trap. I can perhaps program around it, if I know what causes the problem. The program stops on a USE instruction, before the first executable statement.</p>]]></content>
			<author>
				<name><![CDATA[JohnT]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3408</uri>
			</author>
			<updated>2013-02-22T17:24:21Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=577#p577</id>
		</entry>
</feed>
