<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Program received signal SIGSEGV: Segmentation fault...]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=215&amp;type=atom" />
	<updated>2013-06-18T15:31:12Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=215</id>
		<entry>
			<title type="html"><![CDATA[Re: Program received signal SIGSEGV: Segmentation fault...]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=837#p837" />
			<content type="html"><![CDATA[<p>Jin,</p><p>Is your project currently set as a 64-bit project?&nbsp; You can check by opening the Project Options window from the Project menu.&nbsp; Make sure the architecture is set to 64-bit.&nbsp; Additionally, there are limitations (around 2GB) on the size of statically allocated arrays in your executable.&nbsp; If the arrays are dynamically allocated (via Fortran&#039;s <em>ALLOCATE</em> intrinsic procedure), this limitation disappears.</p><p>Additionally, does your program happen to do any file I/O?&nbsp; One quick thing to check is that you&#039;re not attempting to use a standard input/output unit number (5 or 6) for file input/output.&nbsp; Doing so will cause a segmentation fault as well.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-06-18T15:31:12Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=837#p837</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Program received signal SIGSEGV: Segmentation fault...]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=836#p836" />
			<content type="html"><![CDATA[<p>When I launch the code, I have got the following error message:<br />&quot;Program received signal SIGSEGV: Segmentation fault - invalid Memory refererence.<br /> Backtrace for this error:&quot;</p><p>I am using 64-bit OS. I added &quot;mcmodel=medium&quot; in flags for fortran complier, but had same error Messages.<br />In my code, I have many big matrices.</p><p>--------------------------------------------------------------------------------------------------------------------------<br />&nbsp; integer,parameter::ne=8<br />&nbsp; integer,parameter::na=800<br />&nbsp; integer,parameter::ni=ne*na<br />&nbsp; integer,parameter::nad=20000<br />&nbsp; integer,parameter::nid=ne*nad<br />&nbsp; integer,parameter:: FT=101<br />&nbsp; real(8),dimension(FT):: tr_kl0,tr_kl1,tr_ra,tr_wa,tr_gamma0,tr_gamma1,tr_Tadj,tr_Tx,tr_y1<br />&nbsp; real(8),dimension(FT)::tr_cap,tr_lab,tr_agglab,tr_T,tr_Tr,tr_Tp,tr_Ttinc,tr_payroll,tr_inc,tr_cons,tr_Te <br />&nbsp; real(8),dimension(FT)::tr_Tc,tr_Ty,tr_Tsy,tr_G<br />&nbsp; real(8),dimension(ne,na,FT)::tr_aoptval,tr_loptval<br />&nbsp; real(8),dimension(ni,FT):: tr_paytrax,tr_ustar,tr_val<br />&nbsp; integer,dimension(ni,FT):: tr_astar,tr_lstar<br />&nbsp; real(8),dimension(nid,FT)::tr_dist,tr_aoptf,tr_coptf,tr_loptf,tr_taxf,tr_incomef<br />&nbsp; real(8),dimension(nid,FT)::tr_earningf,tr_payrtaxf,tr_tincome,tr_taxef<br />&nbsp; real(8),dimension(nid,FT)::tr_avetaxf,tr_incomeposttax,tr_fintaxf,tr_totaltaxf,tr_uf<br />&nbsp; real(8),dimension(nid,FT)::tr_taxfadj<br />&nbsp; real(8),dimension(ne,nad,FT)::tr_distmat <br />------------------------------------------------------------------------------------------------------------------------<br />Can you give me advice to fix this problem? Thank you in advance.</p><p>Jin</p>]]></content>
			<author>
				<name><![CDATA[jin]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3439</uri>
			</author>
			<updated>2013-06-18T13:03:55Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=836#p836</id>
		</entry>
</feed>
