bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Data corruption with g++


From: Jean-Sylvain Sormany
Subject: Re: Data corruption with g++
Date: 5 Aug 2002 08:39:05 -0700

address@hidden (=?iso-8859-1?Q?Andr=E9_P=F6nitz?=) wrote in message 
news:<address@hidden>...
> Jean-Sylvain Sormany <address@hidden> wrote:
> > I passed my code throw Rational Purify to be sure that no memory leak
> > was the source of this problem.
> > 
> > Did somebody have an idea of what could produce this kind of trouble? 
> 
> I'd usually suspect out-of-bound writes in arrays. But as it passed through
> purify, this should be unlikely... You could try additional checkers,
> though...
> 
> Andre'

It's seem that my problem was at compiler (and architecture) level.
Using g++ with compilation option -ffloat-store (to avoid usage of
register to store floating point variable) has corrected my bug. (I
have found this when I discovered that, on SUN achitecture with same
compiler my code was working fine...)

Thanks,

Jean-Sylvain



reply via email to

[Prev in Thread] Current Thread [Next in Thread]