[Aptitude-devel] Bug#764046: aptitude: race condition in config file replacement leads to warnings

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Thu Oct 15 17:47:24 UTC 2015

Control: tags -1 + pending

2014-10-05 04:12 Paul Wise:
>Package: aptitude
>Version: 0.6.11-1
>Severity: normal
>Usertags: warnings race-condition
>I run several cron jobs each doing aptitude searches and I often get
>this warning from aptitude:
>E: Unable to replace /home/pabs/.aptitude/config with new configuration file - apt_init (2: No such file or directory)
>Looking at the code it seems that there is a race condition when
>multiple aptitude instances are running:
>Every instance is using ~/.aptitude/config.new instead of creating a
>temporary unique filename. This means that one process can rename
>the .new file before another process gets a chance to do that, which
>means the .new file disappears, rename fails and a warning is given.

Thanks Paul, fix committed, so tagging as +pending.

Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>

More information about the Aptitude-devel mailing list