Memory corruption on amd64 FreeBSD

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Sep 1 18:18:00 GMT 2004


On Tue, Aug 31, 2004 at 05:37:59PM -0700, Steve Kargl wrote:
> Paul,
> 
> The good news is that one of my research codes is running
> on amd64-unknown-freebsd.  The bad news is a second code is
> giving me a seg fault in runtime/memory.c.  Both codes 
> make use of allocate/deallocate, but the second code
> does many more allocate/deallocate pairs.

(backtrace snipped)

> I'm suspicious of line 207.  m->marker is an int and if I read
> the code correctly you are doing pointer arithmetic.

Well, this isn't a 32 vs 64 bit issue.  I've just
reproduced the crach on my i386 FreeBSD system with
the exact same backtrace.  I may be able to use 
valgrind to investigate this.

-- 
Steve



More information about the Fortran mailing list