Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xlf and Cray pointers



Hi,

can someone help me with this?

I'm trying to compile and run a Fortran 77 code that uses Cray pointers. I tested it on Solaris, Linux with Portland and Intel compilers, and SGI3k. Compiling on my Mac OS X using IBM's xlf works, but I get a segmentation fault:

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x000266d4 in ordinstep (space=541912) at ordinstep.f:18
18 stfu(i) = cstep0(rlcar(1,rlend(i-1)+1)) * rlins(i)
(gdb)

The arrays that are accessed here have their storrage assigned through cray pointers. I'm ware of the fact that the xlf is doing byte pointer arithmetic instead of word arithmetic, but the code does not rely any specific type of pointer arithmetic.

Thanks for any help!!!

Till

--
---------------------------------
Till Burkert
Dep. of Physics
Uppsala Universitet
http://www.fysik.uu.se/~theomag
---------------------------------
_______________________________________________
fortran-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/fortran-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.