octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44679] Segmentation fault when loading a MAT-


From: Guillaume
Subject: [Octave-bug-tracker] [bug #44679] Segmentation fault when loading a MAT-file containing a function_handle to a subfunction
Date: Tue, 31 Mar 2015 14:45:36 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0

URL:
  <http://savannah.gnu.org/bugs/?44679>

                 Summary: Segmentation fault when loading a MAT-file
containing a function_handle to a subfunction
                 Project: GNU Octave
            Submitted by: gyom
            Submitted on: Tue 31 Mar 2015 02:45:35 PM GMT
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: Guillaume
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Create file myfcn.m as follow:


%%%%%%%% file myfcn.m%%%%%%%%%
function out = myfcn(varargin)

A = @(x) mysubfcn(x);

save testmat.mat A -v6

function mysubfcn(varargin)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


and call it from MATLAB to create MAT-file testmat.mat (attached as well).
Then load it in Octave:


octave> load testmat.mat
error: octave_base_value::cell_value(): wrong type argument 'scalar struct'
panic: Segmentation fault -- stopping myself...
attempting to save variables to 'octave-workspace'...
Segmentation fault


It does not seem to depend on the MATLAB version used nor whether the -v6 flag
was used or not.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 31 Mar 2015 02:45:35 PM GMT  Name: testmat.mat  Size: 3kB   By: gyom

<http://savannah.gnu.org/bugs/download.php?file_id=33498>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44679>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]