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.
|