bugGNU Octave - Bugs: bug #45914, fopen warns "found by...


bug #45914: fopen warns "found by searching load path" although the file doesn't exist

Submitted by:  Andreas Weber <andy1978>
Submitted on:  Thu 10 Sep 2015 06:57:44 AM UTC  
Category: InterpreterSeverity: 2 - Minor
Priority: 5 - NormalItem Group: None
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
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.


Fri 11 Sep 2015 02:24:36 PM UTC, comment #2:

I think the problem is that info about directories in teh load path is cached and the cache is updated when Octave issues a prompt and also when a few other events happen, like adding a new directory to the path. The case of removing a file from a directory in the path hasn't been handled.

But even if we fix unlink to refresh the cached load path info when removing a file from a directory that is in the load path, we could still have problems with other things like

and there's really no way to know.

So maybe a better approach would just be to first look in the cache for files (for speed) and then verify that the file found from the cache actually does exist before returning success?

John W. Eaton <jwe>
Project Administrator
Fri 11 Sep 2015 02:20:24 AM UTC, comment #1:

Confirmed on the default branch here also.

Not so much about timing, this also shows the same error:

Mike Miller <mtmiller>
Project Administrator
Thu 10 Sep 2015 06:57:44 AM UTC, original submission:

This looks like some timing problem. Run this in the CLI

and then paste to CLI in one line OR create a script file and run it (it will not show the warning if unlink and fopen are run separately)

Andreas Weber <andy1978>
Project Member


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by andy1978 (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 11 Sep 2015 02:20:24 AM UTCmtmillerCategoryNone=>Interpreter

    Back to the top

    Powered by Savane 3.1-cleanup1