<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Error message: Segmentation fault]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=190</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=190&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Error message: Segmentation fault.]]></description>
		<lastBuildDate>Thu, 25 Apr 2013 16:41:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Error message: Segmentation fault]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=752#p752</link>
			<description><![CDATA[<p>I just gave your code a try on my machine, and I&#039;m not seeing any issue.&nbsp; Which version of Simply Fortran are you currently using?&nbsp; I just want to confirm you&#039;re on the latest version.&nbsp; </p><p>Doing the math manually, I can see that 64-bit wasn&#039;t actually necessary in your stripped-down example.&nbsp; Do you have debugging enabled already? </p><p>I&#039;ve seen similar issues if the standard input and output unit numbers, 5 and 6, are used for file access via OPEN statements.&nbsp; Is anything of that nature currently occurring in your code?</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 25 Apr 2013 16:41:47 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=752#p752</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error message: Segmentation fault]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=750#p750</link>
			<description><![CDATA[<p>Yes, I am compiling in 64-bit mode with Windows7.<br />I did it as you recommended, but the same error message came out shortly after launching it.<br />You mentioned a few other things I can try. What are those?</p><p>I extracted some lines from my code following:</p><p>module globvar</p><p>&nbsp; &nbsp; &nbsp; !******* prohibit implicit variable declaration *******<br />&nbsp; &nbsp; &nbsp; implicit none</p><p>&nbsp; &nbsp; &nbsp; !******* meta parameter *******<br />&nbsp; &nbsp; &nbsp; real(8),parameter:: eps&nbsp; &nbsp; &nbsp;= 1.0d-10&nbsp; &nbsp; &nbsp;!really small number<br />&nbsp; &nbsp; &nbsp; integer,parameter:: scr&nbsp; &nbsp; &nbsp;= 8&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;!screen output file number<br />&nbsp; &nbsp; &nbsp; integer,parameter:: out&nbsp; &nbsp; &nbsp;= 10&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;!output file number</p><p>&nbsp; &nbsp; &nbsp; !******* variables for approximation *******<br />&nbsp; &nbsp; &nbsp; integer,parameter:: ne=8&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;!number of earnings shocks<br />&nbsp; &nbsp; &nbsp; integer,parameter:: na&nbsp; &nbsp; &nbsp; = 800&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;!number of grid points</p><p>&nbsp; &nbsp; &nbsp; integer,parameter:: ni=ne*na</p><p>end module globvar</p><p>program main</p><p>&nbsp; &nbsp; &nbsp; use globvar<br />&nbsp; &nbsp; &nbsp; implicit none</p><p>&nbsp; &nbsp; &nbsp; real(8),dimension(1:ni,1:ni)&nbsp; :: matQ&nbsp; !matrix for modified policy rule</p><br /><p>end program main</p>]]></description>
			<author><![CDATA[null@example.com (jin)]]></author>
			<pubDate>Thu, 25 Apr 2013 12:47:58 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=750#p750</guid>
		</item>
		<item>
			<title><![CDATA[Re: Error message: Segmentation fault]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=744#p744</link>
			<description><![CDATA[<p>Are you compiling in 64-bit mode?&nbsp; That could be a simple fix.</p><p>If you already are in 64-bit mode, there might be a few other things you could try.&nbsp; For example, add the switch &quot;-mcmodel=medium&quot; to the Fortran compiler flags in the Project Options dialog.&nbsp; That allows more memory to be accessed by your program.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 24 Apr 2013 14:11:59 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=744#p744</guid>
		</item>
		<item>
			<title><![CDATA[Error message: Segmentation fault]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=743#p743</link>
			<description><![CDATA[<p>I compiled the code sucessfully, but I got the following error message shortly after I launched it.</p><p>---------------------------------------------------------------------------------------------------<br />Program received signal SIGSEGV: Segmentation fault - invalid memory reference.</p><p>Backtrace for this error:<br />#0&nbsp; fffffffff<br />---------------------------------------------------------------------------------------------------</p><p>I think that this error message is related with the big matrix I defined as a real.<br />the size of the matrix is 6400*6400.<br />Before I introduced this big matrix, the code run well.<br />How can I solve the problem while using the big matrix?</p>]]></description>
			<author><![CDATA[null@example.com (jin)]]></author>
			<pubDate>Wed, 24 Apr 2013 11:07:57 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=743#p743</guid>
		</item>
	</channel>
</rss>
