From bug-octave-request at bevo dot che dot wisc dot edu Sat Nov 15 18:01:03 2003 Subject: parsing error/recursive call makes octave crash From: "John W. Eaton" To: cc: bug-octave mailing list Date: Sat, 15 Nov 2003 18:00:58 -0600 On 15-Nov-2003, Csaba Szepesvari wrote: | I am using GNU Octave, version 2.1.50 (i686-pc-cygwin). | Consider the following .m file: | ---ident.m ---------------------- | y = ident(x) | y = x; | endfunction | --------------------------------- | Note that the keyword function is missing from this | function file whose name is ident.m | As a result, I guess, octave enters into an indefinity recursive call | and crashes. | Maybe there should be a better way of handling this (detect stack overflow, | etc.). | Also, for a moment octave prints out something about a parsing error but it | crashes immediately. I cannot seem to reproduce the crash. What is the value of x in the workspace when you invoke this script? Is there any other function or script called ident that is defined before you call it? jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------