bugGNU Octave - Bugs: bug #40117, Corruption of symbol table when...


bug #40117: Corruption of symbol table when editing functions in private/ dirs

Submitted by:  Rik <rik5>
Submitted on:  Thu 26 Sep 2013 10:10:01 PM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating 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 26 Sep 2019 01:28:36 PM UTC, comment #3: 

I came across the same bug with this configuration:

├── A.m
└── private
    ├── B.m
    └── C.m

with files defined as:

function A ()
  disp ('A');
  B ();

function B ()
  disp ('B');
  C ();

function C ()
  disp ('C');

An error occurs when B.m has his timestamp changed:

octave:1> A
octave:2> system ('touch A.m');
octave:3> A
octave:4> system ('touch private/C.m');
octave:5> A
octave:6> system ('touch private/B.m');
octave:7> A
error: 'C' undefined near line 3 column 3
error: called from
    B at line 3 column 3
    A at line 3 column 3

Guillaume <gyom>
Tue 22 Nov 2016 10:15:00 PM UTC, comment #2: 

This bug is still present in Octave 4.2.0.

(Fixing the mentioned bug #35067 doesn't seem to have helped.)

Hartmut <hardy>
Fri 27 Sep 2013 02:40:23 AM UTC, comment #1: 

Confirmed here. I wonder if this is related to your much older bug #35067 still present in the latest version.

Mike Miller <mtmiller>
Project Administrator
Thu 26 Sep 2013 10:10:01 PM UTC, original submission:  

Octave checks the timestamps of m-files.  If the timestamp has changed since the last time Octave compiled the function then the m-file is re-read and recompiled.

However, on a recent tip (55680de6a897, 9/26/13), I find that the symbol table becomes corrupted when the timestamp on an m-file in a private directory is changed.


demo ("quiver", 1)
## In another terminal window, execute 'touch scripts/plot/private/__quiver__.m
demo ("quiver", 1)
quiver example 1:
[x,y] = meshgrid (1:2:20);
h = quiver (x,y, sin (2*pi*x/10), sin (2*pi*y/10));
set (h, 'maxheadsize', 0.33);

quiver example 1: failed
'__add_datasource__' undefined near line 152 column 14

I find that I can restore things if I execute

clear -f

to clear all functions from memory.

Rik <rik5>
Project Administrator


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by gyom (Posted a comment)
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by rik5 (Submitted the item)

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

    Only project members can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-16 mtmiller Carbon-CopyRemoved 80942 => -
    2013-09-27 mtmiller StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.5