Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

xlf90 malloc problem
I hope this post is located in the correct group, if not I apologize
in advance.

I'm trying to compile a code on a Mac-(G5, OS X 10.3 Panther) using
xlf90 (IBM XL Fortran 8.1). The code uses BLAS/LAPACK extensively and
I've attempted linking with both the vecLib Framework and compiling my
own libraries both yielding the same result. The problem appears to be
related to the call of malloc or malloc_create_zone.

I've compiled smaller test codes in an effort to hunt down the problem
but gdb prints the error message
"Program received signal EXC_BAD_ACCESS, Could not access memory.
0x9001f654 in malloc_create_zone ()"
for anything I try using any set of linked libraries. I've set
breakpoints at the earliest stages of the code with no success. To get
the code to compile, I must link with the System.B, and crt1.o OS X
libraries.

I've also tried compiling a very simple code (shown below) pulled off
of lang.fortran that uses ALLOCATE/DEALLOCATE with no problems.

Any help or suggestion would certainly be appreciated.

-Chris

------------code below------------
PROGRAM testmem2
REAL, ALLOCATABLE :: A(:,:)
integer i,e,j

print *,'Press a numeric key & enter to start'
read *,e
allocate (A(10000,10000))
do 100 i=1, 10000, 1
do 200 j=1, 10000, 1
a(i,j)=4
200   continue
100    continue
print *,'Press a numeric key & enter to deallocate'
read *, e

deallocate(A, STAT=e)
print *, 'Error',e
call sleep(5)
END PROGRAM testmem2

Report this thread to moderator Post Follow-up to this message
Old Post
Chris
07-29-04 02:06 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Fortran archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:31 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.