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

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

[Octave-bug-tracker] [bug #33226] Value of variable changes unexpectedly


From: Zhiyang Ong
Subject: [Octave-bug-tracker] [bug #33226] Value of variable changes unexpectedly; print statement is repeated unexpectedly
Date: Wed, 04 May 2011 09:41:01 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.18) Gecko/20110323 Iceweasel/3.5.18 (like Firefox/3.5.18)

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

                 Summary: Value of variable changes unexpectedly; print
statement is repeated unexpectedly
                 Project: GNU Octave
            Submitted by: zhiyang
            Submitted on: Wed 04 May 2011 09:41:00 AM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Zhiyang Ong
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The values of the variables "num_col" and "ncc" change unexpectedly from 1000
to values such as 10, 48, or 49. Likewise, the values of the variables
"num_row" and "nrr" change unexpectedly from 2 to 50, 10, or otherwise.

I did not update the values of these variables. 

Furthermore, the following print statements are repeated unexpectedly.

printf('###             Number of rows: %dn',num_row)
printf('###             Number of columns: %dn',num_col)
printf('===             Number of rows: %dn',int2str(nrr))
printf('===             Number of columns: %dn',int2str(ncc))


The behavior of the script is nondeterministic, but is repeatable.

I executed the script with an input argument (filename of the log file).
process_sin_tb.m sin_tb.dat



The following is an extract from the terminal session of executing the GNU
Octave script.

status =  0.00000000000000e+00
num_row = 10000

nrr = 10000

status =  0.00000000000000e+00
num_col = 2

ncc = 2

###             Number of rows: 49
###             Number of rows: 48
###             Number of rows: 48
###             Number of rows: 48
###             Number of rows: 48
###             Number of rows: 10
###             Number of columns: 50
###             Number of columns: 10
===             Number of rows: 52
===             Number of rows: 57
===             Number of rows: 32
===             Number of rows: 32
===             Number of rows: 52
===             Number of rows: 56
===             Number of rows: 32
===             Number of rows: 32
===             Number of rows: 52
===             Number of rows: 56
===             Number of rows: 32
===             Number of rows: 32
===             Number of rows: 52
===             Number of rows: 56
===             Number of rows: 32
===             Number of rows: 32
===             Number of rows: 52
===             Number of rows: 56
===             Number of rows: 32
===             Number of rows: 32
===             Number of rows: 49
===             Number of rows: 48
===             Number of columns: 53
===             Number of columns: 48
===             Number of columns: 32
===             Number of columns: 32
===             Number of columns: 49
===             Number of columns: 48
###             ii is now: 2
###             ii is now: 3
###             ii is now: 4
###             ii is now: 5
###             ii is now: 6
###             ii is now: 7
###             ii is now: 8
###             ii is now: 9
###             ii is now: 10
###             ii is now: 11




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 04 May 2011 09:41:00 AM GMT  Name: process_sin_tb.m  Size: 10kB  
By: zhiyang

<http://savannah.gnu.org/bugs/download.php?file_id=23348>
-------------------------------------------------------
Date: Wed 04 May 2011 09:41:00 AM GMT  Name: sin_tb.dat  Size: 238kB   By:
zhiyang

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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