bugGNU Octave - Bugs: bug #29070, 3.2.4: error "undefined...

 
 

bug #29070: 3.2.4: error "undefined variables" if private functions is called from a recursively called function

Submitted by:  Olaf Till <i7tiol>
Submitted on:  Thu 04 Mar 2010 11:40:03 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: Jaroslav Hajek <highegg>
Originator Name: Olaf TillOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 01 Apr 2010 09:28:35 AM UTC, comment #1:

Works in 3.3.51+.

Jaroslav Hajek <highegg>In charge of this item.
Thu 04 Mar 2010 11:40:03 AM UTC, original submission:

Octave version: 3.2.4 (this version could not be chosen from menu)

Problem:

An error message says that variables are undefinend if these are used as arguments to call a private function from a recursively called subfunction.

Repeat by:

- Place attached "trigger_bug.m" in a directory where it will be in Octaves path (not by cd'ing into this directory since I don't know if this would make a difference).

- Place attached "__trigger_bug__.m" in a subdirectory "private".

- Trigger the bug (choosing 2 levels of recursion):

octave:1> trigger_bug (2)
level: 2
level: 1
private function is called now
error: `a' undefined near line 14 column 26
error: evaluating argument list element number 1
error: called from:
error: /home/olaf/devel/octave/dpo/trigger_bug.m at line 14, column 7
error: /home/olaf/devel/octave/dpo/trigger_bug.m at line 18, column 5
error: /home/olaf/devel/octave/dpo/trigger_bug.m at line 3, column 3
octave:1>

- Compare with no recursion (bug not triggered):

octave:1> trigger_bug (1)
level: 1
private function is called now
octave:2>

Remarks:

- cd'ing into the "private" directory sometimes abolishes triggering the bug, somtimes not (found no rule).

- The above procedure does not trigger the bug in current tip of the development branch.

Olaf Till <i7tiol>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #19848:  __trigger_bug__.m added by i7tiol (45B - text/x-objcsrc)
file #19847:  trigger_bug.m added by i7tiol (329B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by highegg (Posted a comment)
  • -unavailable- added by i7tiol (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Apr 2010 09:28:35 AM UTChigheggStatusNone=>Fixed
      Assigned toNone=>highegg
      Open/ClosedOpen=>Closed
    Thu 04 Mar 2010 11:40:06 AM UTCi7tiolAttached File-=>Added trigger_bug.m, #19847
      Attached File-=>Added _trigger_bug_.m, #19848

    Back to the top


    Powered by Savane 3.1-cleanup1