octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #36288] Accessing variables in some recursion


From: Olaf Till
Subject: [Octave-bug-tracker] [bug #36288] Accessing variables in some recursion gives wrong values if handle to private function is set.
Date: Tue, 24 Apr 2012 20:37:49 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20120315 Iceweasel/3.5.16 (like Firefox/3.5.16)

URL:
  <http://savannah.gnu.org/bugs/?36288>

                 Summary: Accessing variables in some recursion gives wrong
values if handle to private function is set.
                 Project: GNU Octave
            Submitted by: i7tiol
            Submitted on: Tue 24 Apr 2012 08:37:48 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: Olaf Till
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:


Tested to occur in Octave versions:

- 3.6.1+ (000cd393f3c1),
- default (6a736395ff7d).

Description:

Accessing variables in some type of recursion gives wrong values if some
(unrelated) handle to a private function was set.

Repeat by:

- Copy attached 'testfunction.m' into current directory,

- copy attached '__dummy_private_function__.m' into subdirectory '/private',

- start Octave freshly,

- run 'testfunction',

- from the debug prompt, enter v to see its value.

The bug shows up if you see a value of '2' for 'v', although you are in the
body of an 'if' statement which tests for v==1. (The non-interactive 'printf'
before has printed a value of '1' for 'v').

If you comment out the line in 'testfunction.m' which sets the handle to
'__dummy_private_function__', the bug will not occur. Also, the bug only seems
to occur in the first call to 'testfunction'.






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 24 Apr 2012 08:37:48 PM GMT  Name: testfunction.m  Size: 652B   By:
i7tiol

<http://savannah.gnu.org/bugs/download.php?file_id=25722>
-------------------------------------------------------
Date: Tue 24 Apr 2012 08:37:48 PM GMT  Name: __dummy_private_function__.m 
Size: 52B   By: i7tiol

<http://savannah.gnu.org/bugs/download.php?file_id=25723>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36288>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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