Skip to content

lockdir race condition #105

@joezuntz

Description

@joezuntz

Hi.

There appears to be some kind of race condition in the eups-setup system. Multiple processes trying to setup at the same time will sometimes fail.

Here's the easiest way I have found to trigger it:

import os
import multiprocessing

def task(i):
    return os.system("source /home/zuntz/lsst/anaconda/bin/eups-setups.sh")

pool = multiprocessing.Pool(32)
args = range(100)
print pool.map(task, args)

I (usually) get a combination of:

OSError: [Errno 2] No such file or directory: '/home/zuntz/lsst/anaconda/var/opt/eups/.lockDir'

and some atexit errors trying to remove the same file when it doesn't exist.

Interestingly, there seems to be a similar bug in conda: conda/conda#2837

Cheers!
Joe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions