[Pkg-octave-devel] Bug#550823: Updating load-path cache based on modification times probably a bad idea (was: Race condition between Octave 3.2.3 and unlink())

Thomas Weber thomas.weber.mail at gmail.com
Fri Oct 23 07:19:39 UTC 2009


On Tue, Oct 20, 2009 at 10:00:52PM +0200, Jaroslav Hajek wrote:
> 2009/10/20 Thomas Weber <thomas.weber.mail at gmail.com>:
> > Hi,
> >
> > On Thu, Oct 15, 2009 at 02:09:30PM +0000, Sébastien Villemot wrote:
> >> Hi,
> >>
> >> I think I found the culprit for what I thought was a race condition in
> >> Octave.
> >>
> >> The problem has to do with the way Octave 3.2 updates its load-path: it
> >> only updates its cache of the current directory if the modification time
> >> of the directory changes (see load_path::dir_info::update() in
> >> src/load-path.cc).
> >
> > In case it's not clear: this is a real problem and not some artificially
> > found issue. It makes software using Octave randomly fail at build time.
> >
> >        Thomas
> >
> 
> I don't understand - what you mean by "build time"? 

The build of dynare[1] fails when running its test suite. 

[1] http://www.cepremap.cnrs.fr/dynare/

	Thomas





More information about the Pkg-octave-devel mailing list