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


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

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

Add a New Comment (Rich Markup)

You are not logged in

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


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

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



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

Octave crashes upon executing the command :


See also the example straight from MATLAB snippet : in  "Define Class Properties with Constant Values"

PIERRE LABRECHE <pierre5018>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -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)

    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.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.5