[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52582] Dependent constant properties cause a
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #52582] Dependent constant properties cause a crash |
Date: |
Sun, 3 Dec 2017 21:38:38 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #1, bug #52582 (project octave):
I can confirm that there is some strangeness. With 4.2.1, I get
octave:1> x = Crash
error: no such file, '/home/rik/downloads/Crash.m'
That alone is weird. With the development branch I get a true segfault.
octave:1> x = Crash ()
Segmentation fault
On the other hand, is this even valid code? Does it run under Matlab?
It appears to me that this line
c2 = Crash.c1 + 1;
will cause an infinite loop. The first time an object of the class is created
the class will try to be initialized. The line 'c1 = 1' is straightforward.
The next line will allocate space for the variable c2, but then will call the
class constructor Crash because 'Crash.c1' does not yet exist as a class
constant variable since the first initialization has not finished.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52582>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52582] Dependent constant properties cause a crash, Damian Gisler, 2017/12/03
- [Octave-bug-tracker] [bug #52582] Dependent constant properties cause a crash,
Rik <=
- [Octave-bug-tracker] [bug #52582] Dependent constant properties cause a crash, Philip Nienhuis, 2017/12/04
- [Octave-bug-tracker] [bug #52582] Dependent constant properties cause a crash, Dan Sebald, 2017/12/04
- [Octave-bug-tracker] [bug #52582] Dependent constant properties cause a crash, Rik, 2017/12/04
- [Octave-bug-tracker] [bug #52582] Dependent constant properties cause a crash, Dan Sebald, 2017/12/05
- [Octave-bug-tracker] [bug #52582] Dependent constant properties cause a crash, Rik, 2017/12/05
- [Octave-bug-tracker] [bug #52582] Dependent constant properties cause a crash, Dan Sebald, 2017/12/05