bugGNU Octave - Bugs: bug #44679, Segmentation fault when loading a...

 
 

bug #44679: Segmentation fault when loading a MAT-file containing a function_handle to a subfunction

Submitted by:  Guillaume <gyom>
Submitted on:  Tue 31 Mar 2015 02:45:35 PM UTC  
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 03 Dec 2015 05:46:58 PM UTC, comment #1: 

Using a recent development tip the test file no longer produces a segmentation fault.  Octave can't read the MAT-file with an embedded handle to a subfunction, but just issues an error message about that.  I am changing the Item Group to Matlab Compatibility and marking this as confirmed.

Rik <rik5>
Project Administrator
Tue 31 Mar 2015 02:45:35 PM UTC, original submission:  

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.

Guillaume <gyom>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #33498:  testmat.mat added by gyom (3KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-03 rik5 Item GroupSegfault, Bus Error, etc. => Matlab Compatibility
        StatusNone => Confirmed
    2015-03-31 gyom Attached File- => Added testmat.mat, #33498

    Back to the top


    Powered by Savane 3.5