Skip to content

Race condition in gap_reset_workspace() #14242

@jdemeyer

Description

@jdemeyer

Consider this script gap_race.sage:

from multiprocessing import Process
import time

def rungap():
    gap("42")

P = [Process(target=rungap) for i in range(4)]
for p in P:
    p.start()
    time.sleep(0.1)

When executing with ./sage --nodotsage gaprace.sage, this should run without producing errors. But it doesn't, due to race conditions in gap_reset_workspace().

CC: @vbraun

Component: interfaces

Author: Jeroen Demeyer

Reviewer: Volker Braun

Merged: sage-5.9.beta0

Issue created by migration from https://trac.sagemath.org/ticket/14242

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions