Menu

Restoring IDL save file did give a SEG fault

npmk
2006-10-28
2013-06-03
  • npmk

    npmk - 2006-10-28

    Does anyone have had success with restoring an IDL save file with a data
    structure in it? 

    I installed  CMSVLIB routines, and then tried to open the save file, but it did not work:
    GDL> !path='/home/kuin/work/giulio:/home/kuin/myidl:/home/kuin/myidl/gdlpro:/home/kuin/myidl/gdlpro/cmsvlib'
    GDL> restore , 'work/current.save'
    % Compiled module: CMRESTORE.
    % Compiled module: CMSVLIB.
    % Compiled module: CMSV_OPEN.
    % Compiled module: CMSV_RREC.
    % Compiled module: CMSV_RRAW.
    % Compiled module: CMSV_RVTYPE.
    % Compiled module: CMSV_RDATA.

    % BaseGDL::DataAddr(...) called.
    % Execution halted at: RESTORE              1 myidl/gdlpro/restore.pro
    %                      RESTORE              1 myidl/gdlpro/restore.pro
    %                      $MAIN$         
    Segmentation fault

    From memory, the save file has a structure

    r_str with several arrays (string, float, integer), with 2 or 3 indices.

    The note that the CMSV procedures would only restore 'data' maybe means not structures ?  How should I interpret this result?  Hopeless?  I wondered if
    someone had thoughfully written his/her own routine to save a structure from
    IDL in a way that it can be restored easily. Any suggestions?

    Any help will be appreciated.

     
    • Joel Gales

      Joel Gales - 2006-10-29

      Are you using the latest version from CVS?  This code should be able to read structures using CMSVLIB.

      Joel

       
      • npmk

        npmk - 2006-10-29

        I downloaded it from the webpage given in the gdl 0.9pre2 (readme?)
        The last change was
        $Id: cmsv_wraw.pro,v 1.7 2006/03/28 14:11:26 craigm Exp $

         
    • Joel Gales

      Joel Gales - 2006-10-30

      You need the latest version of the GDL code from the CVS repository.

      cvs -z3 -d:pserver:anonymous@gnudatalanguage.cvs.sourceforge.net:/cvsroot/gnudatalanguage co

      will place the code in the gdl subdirectory.  Then configure and build as usual.

      Joel

       
      • npmk

        npmk - 2006-10-31

        Thanks, I'm now doing the checkout (some work interfered). BTW, I had to add 'gdl' to the checkout command. Must be required for the first co.  I'm also going to use solarsoft which is a pretty large suite of IDL sw.  I'll keep all informed about my experiences. Promise!

         

Log in to post a comment.