bugGNU Octave - Bugs: bug #60006, Octave crashes when defclass...

 
 

bug #60006: Octave crashes when defclass properties reuses named constant

Submitter:  PIERRE LABRECHE <pierre5018>
Submitted:  Thu 04 Feb 2021 08:01:45 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 19 Mar 2021 06:32:56 PM UTC, comment #5: 

@Fernando: You are probably right.

Closing as duplicate of bug #57557.

Markus Mützel <mmuetzel>
Group administrator
Fri 19 Mar 2021 05:30:00 PM UTC, comment #4: 

This seems to be the a duplicate of bug #57557. That bug was for Octave 5.1.0 and Linux, but it seems it also affects (in different ways) more recent versions of Octave and also in Windows.

Fernando <tutissanalio>
Wed 24 Feb 2021 05:15:31 PM UTC, comment #3: 

I can confirm this produces a crash of Octave in Windows, for Release 6.1.0 and also 6.2.0.

Fernando <tutissanalio>
Fri 05 Feb 2021 01:06:11 AM UTC, comment #2: 

On linux with a recent 6.1.1 tip I do not get a crash, but
rather un-helpful error message:


octave:1> stat("/home/dima/scratch/NamedConst.m")
ans =

  scalar structure containing the fields:

    dev = 66306
    ino = 2.7803e+07
    mode = 33204
    modestr = -rw-rw-r--
    nlink = 1
    uid = 1001
    gid = 1001
    rdev = 0
    size = 92
    atime = 1.6125e+09
    mtime = 1.6125e+09
    ctime = 1.6125e+09
    blksize = 4096
    blocks = 8

octave:2> NamedConst.R
error: no such file, '/home/dima/scratch/NamedConst.m'
error: called from
    <unknown>
octave:3>


If that could be helpful to you before the bug is fixed, you
can try a nightly builds from:

https://buildbot.octave.space/#/download

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Fri 05 Feb 2021 12:42:35 AM UTC, comment #1: 

High severity. Complete crash of Octave without identification of the cause.
Prevents using OO programming style.

PIERRE LABRECHE <pierre5018>
Thu 04 Feb 2021 08:01:45 PM UTC, original submission:  

A defclass file NamedConst.m contains the following code:

classdef NamedConst
   properties (Constant)
      R = 1
      D = NamedConst.R
   end
end


Octave crashes upon executing the command :

NamedConst.R


See also the example straight from MATLAB snippet : in  "Define Class Properties with Constant Values"
https://www.mathworks.com/help/matlab/matlab_oop/properties-with-constant-values.html

PIERRE LABRECHE <pierre5018>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by tutissanalio (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by pierre5018 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-19 mmuetzel StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #57557

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code