<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Backtrace doesn't seem to be working]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=577&amp;type=atom" />
	<updated>2016-08-08T14:40:33Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=577</id>
		<entry>
			<title type="html"><![CDATA[Re: Backtrace doesn't seem to be working]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2643#p2643" />
			<content type="html"><![CDATA[<p>Thanks. It&#039;s surprising that no one reported this before, as it seems to happen no matter what the code executed is.</p>]]></content>
			<author>
				<name><![CDATA[franceint]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3675</uri>
			</author>
			<updated>2016-08-08T14:40:33Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2643#p2643</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Backtrace doesn't seem to be working]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2642#p2642" />
			<content type="html"><![CDATA[<p>I&#039;m still pursuing this bug.&nbsp; The backtrace functionality in the runtime diagnostics first appeared in GNU Fortran 6.1, and it does not appear to be working in our distribution.&nbsp; There were some initial problems related to Windows, specifically determining the currently running executable, that are now fixed, but I&#039;m still tracking down why the stack addresses are not reported properly.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2016-08-08T11:43:58Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2642#p2642</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Backtrace doesn't seem to be working]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2621#p2621" />
			<content type="html"><![CDATA[<p>It appears to be a compiler bug.&nbsp; I&#039;ll have to look into the problem in more detail, but I&#039;ll update this thread as I go.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2016-07-24T14:16:30Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2621#p2621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Backtrace doesn't seem to be working]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2619#p2619" />
			<content type="html"><![CDATA[<p>It is 32-bit architecture. Under 64-bit, it says:</p><p>Could not print backtrace: libbacktrace could not find executable to open <br />and then follows what looks like a register dump</p>]]></content>
			<author>
				<name><![CDATA[franceint]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3675</uri>
			</author>
			<updated>2016-07-23T16:11:35Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2619#p2619</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Backtrace doesn't seem to be working]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2618#p2618" />
			<content type="html"><![CDATA[<p>I have Enable Debugging checked in the Code Generation tab of the Project Options. I have the following compiler flags:</p><p>-fbounds-check -finit-local-zero -fbacktrace</p><p>I am using Windows 7.0. I have not specifically enabled any optimizations. How do I turn them off?<br />Here is a simple program with the above settings that demonstrates the problem</p><p>program testmain<br />implicit none<br />integer :: x(10)</p><p>Call ChangeX(x,0)</p><p>stop<br />end<br />subroutine changex(x,n)<br />implicit none<br />integer :: x(10),n<br />x(n) = 1<br />return<br />end</p>]]></content>
			<author>
				<name><![CDATA[franceint]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3675</uri>
			</author>
			<updated>2016-07-23T16:06:09Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2618#p2618</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Backtrace doesn't seem to be working]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2617#p2617" />
			<content type="html"><![CDATA[<p>Do you currently have debugging enabled?&nbsp; It might be necessary to enable debugging to produce a valid backtrace.&nbsp; I would also suggest disabling any optimizations.&nbsp; </p><p>Also, what architecture (32- or 64-bit) are you currently using?&nbsp; Are you on Windows?&nbsp; I&#039;ll see if I can reproduce the issue.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2016-07-23T15:47:02Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2617#p2617</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Backtrace doesn't seem to be working]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2615#p2615" />
			<content type="html"><![CDATA[<p>I have bounds checking turned on. When a bounds error occurs, I get a message of which routine and line it occurs on but no backtrace. Do I have to change some setting to get this? Here is a sample of what I get.</p><p>At line 19 of file .\qjutil.F90FORTRAN runtime error: Index &#039;0&#039; of dimension 1 of array &#039;rstart&#039; below bound of 1<br />Error termination. Backtrace:</p><p>Then nothing more. The routine in question is called several levels deep from different places in the program and I&#039;d sure like to know from where without having to put in a lot of debugging statements.</p>]]></content>
			<author>
				<name><![CDATA[franceint]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3675</uri>
			</author>
			<updated>2016-07-22T21:07:15Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2615#p2615</id>
		</entry>
</feed>
