xlf90 malloc problem

From: Chris (c5150f_at_yahoo.com)
Date: 07/28/04

  • Next message: Joel Smith: "passing functions or subroutines in a subroutine"
    Date: 28 Jul 2004 11:05:14 -0700
    
    

    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


  • Next message: Joel Smith: "passing functions or subroutines in a subroutine"

    Relevant Pages

    • Re: Carrying Libraries on Your Back...
      ... > Why not build on an installed based of assemblies, ... > than porting libraries around, ... download source code ... compile local source against header files ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Using Lattice ispLEVER with VHDL libraries
      ... I am assuming there are some advantages to using the IDE rather than ... I also can't see to get Modelsim to work with ispLever, ... You will have to read about the tool you use to specify compile ... user defined libraries to get things to go under ispLever. ...
      (comp.arch.fpga)
    • Re: Getting started on the HP49g+
      ... either the original HP extable lib ... extable2 lib from http://www.hpcalc.org/details.php?id=3940. ... ask again if you have any problem installing libraries. ... compile the string with ASM (listed in the development lib menu, ...
      (comp.sys.hp48)
    • Re: <ctype.h> toLower()
      ... If it's a free standing implimentation, then the scope of the standard is ... > considering portability if makes a heck of a big difference.. ... the code you write will work on /any/ machine you compile it for (if ... the platforms provide the same libraries or even the same program entry ...
      (alt.comp.lang.learn.c-cpp)
    • Re: I need help: Ensure library presence.
      ... If you have ensured the library's presence when you compile ... the unresolved command name will be compiled ... (assuring that all required libraries are present at that time) ... for originally sluggish commands such as VARS and ORDER, ...
      (comp.sys.hp48)