[Top][All Lists]

[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:


  Message sent via/by Savannah

reply via email to

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