<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Delphi bug of the day: FPU stack leak</title>
	<atom:link href="http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/</link>
	<description>Life, .NET, and Cats</description>
	<pubDate>Sun, 12 Oct 2008 07:33:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Ritchie Annand</title>
		<link>http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-6925</link>
		<dc:creator>Ritchie Annand</dc:creator>
		<pubDate>Fri, 21 Mar 2008 06:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-6925</guid>
		<description>A little more detail (but not much) on the Cisco trouble: it's on reallocating strings, and basically it seems to be munching the very first fild - either popping it off the FPU stack or resetting it, because you end up with an *underflow*, and if you mask out the invalid floating point operation, you end up with the first bytes (which are the first grabbed and put on the FPU stack) garbled.

It would be nice if OllyDbg (a very nice tool for most assembly tracing) could log out more of the FPU registers (it just seems to do the ST(0) through ST(7)) so I could trace this thing, but alas...</description>
		<content:encoded><![CDATA[<p>A little more detail (but not much) on the Cisco trouble: it&#8217;s on reallocating strings, and basically it seems to be munching the very first fild - either popping it off the FPU stack or resetting it, because you end up with an *underflow*, and if you mask out the invalid floating point operation, you end up with the first bytes (which are the first grabbed and put on the FPU stack) garbled.</p>
<p>It would be nice if OllyDbg (a very nice tool for most assembly tracing) could log out more of the FPU registers (it just seems to do the ST(0) through ST(7)) so I could trace this thing, but alas&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ritchie Annand</title>
		<link>http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5823</link>
		<dc:creator>Ritchie Annand</dc:creator>
		<pubDate>Mon, 11 Feb 2008 19:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5823</guid>
		<description>Thanks for posting this.

We've been running into some very strange Invalid Floating Point Operation errors ourselves. In this case, though, the cause is not internal to the program, but rather, from Cisco VPN v4.6 on some machines. Basically, we do socket reads, and at random intervals (I saw something in the packet trace log that looked like a broken packet it was trying to resend, but I can't be sure that was the issue) it sets the FPU into a state that is ripe for causing the System.Move to have an invalid floating point operation.

It's not limited to Delphi programs by any means. Matlab (in particular!) and SQL Server Merge Replication are also sensitive to the issues in Cisco's v4.6.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this.</p>
<p>We&#8217;ve been running into some very strange Invalid Floating Point Operation errors ourselves. In this case, though, the cause is not internal to the program, but rather, from Cisco VPN v4.6 on some machines. Basically, we do socket reads, and at random intervals (I saw something in the packet trace log that looked like a broken packet it was trying to resend, but I can&#8217;t be sure that was the issue) it sets the FPU into a state that is ripe for causing the System.Move to have an invalid floating point operation.</p>
<p>It&#8217;s not limited to Delphi programs by any means. Matlab (in particular!) and SQL Server Merge Replication are also sensitive to the issues in Cisco&#8217;s v4.6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A26gen</title>
		<link>http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5690</link>
		<dc:creator>A26gen</dc:creator>
		<pubDate>Fri, 21 Dec 2007 07:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5690</guid>
		<description>Hi, &lt;br&gt;&lt;br&gt;Thanks for this great post !&lt;br&gt;&lt;br&gt;I wanted to try the repro test but it seem's that the report doesn't exist anymore on QualityCentral. Is it possible to post it again and to give us the new link please.&lt;br&gt;
</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Thanks for this great post !</p>
<p>I wanted to try the repro test but it seem&#8217;s that the report doesn&#8217;t exist anymore on QualityCentral. Is it possible to post it again and to give us the new link please.<br />
</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Birger</title>
		<link>http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5689</link>
		<dc:creator>Birger</dc:creator>
		<pubDate>Wed, 19 Dec 2007 12:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5689</guid>
		<description>Thanks for this blog. I came across it when searching for floating point and stack errors and it helped us explaining a problem we encountered!
</description>
		<content:encoded><![CDATA[<p>Thanks for this blog. I came across it when searching for floating point and stack errors and it helped us explaining a problem we encountered!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5688</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Thu, 30 Aug 2007 22:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5688</guid>
		<description>Thanks for taking the time to BLOG about this in any easy to read manner.  It's been many years since I coded in ASM and I somtimes forget what the compiler does for us when using higher level languages like Pascal.&lt;br&gt;&lt;br&gt;This also begins to explain FastMM to provide such an improvement... something I've always curious about but not important enough to investigate.&lt;br&gt;&lt;br&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for taking the time to BLOG about this in any easy to read manner.  It&#8217;s been many years since I coded in ASM and I somtimes forget what the compiler does for us when using higher level languages like Pascal.</p>
<p>This also begins to explain FastMM to provide such an improvement&#8230; something I&#8217;ve always curious about but not important enough to investigate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: william</title>
		<link>http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5687</link>
		<dc:creator>william</dc:creator>
		<pubDate>Wed, 29 Aug 2007 23:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5687</guid>
		<description>Nice read with detailed explanation!
</description>
		<content:encoded><![CDATA[<p>Nice read with detailed explanation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David M</title>
		<link>http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5686</link>
		<dc:creator>David M</dc:creator>
		<pubDate>Wed, 29 Aug 2007 23:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5686</guid>
		<description>Interesting read!
</description>
		<content:encoded><![CDATA[<p>Interesting read!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig Stuntz</title>
		<link>http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5685</link>
		<dc:creator>Craig Stuntz</dc:creator>
		<pubDate>Wed, 29 Aug 2007 12:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/08/28/delphi-bug-of-the-day-fpu-stack-leak/#comment-5685</guid>
		<description>Thanks; I reproduced this and opened the report.
</description>
		<content:encoded><![CDATA[<p>Thanks; I reproduced this and opened the report.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
