﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
235	Race condition in install command -> The segment has been deleted	Eric Swenson	Eric Swenson	"If you use the install command multiple times in succession, as in the following command:

{{{
install (Terminals Operator HFED).pdt
}}}

You can get the following error:

{{{
Error:  Segment-fault error by >user_dir_dir>SysAdmin>Repair>install_bug>install|2062 (line 254)
referencing 431|10
The segment has been deleted.
r 07:25 0.463 3 level 2
}}}

This is presumably because ""install"" writes to the >sc1>update directory and Initializer installs the segment and then deletes the file. Install creates a shriek-named segment in the >sc1>update directory, and then writes to it. The race condition is most likely that when the first segment is written to >sc1>update and Initializer is notified that there is something to update, it takes a little time before Initializer processes the segment and deletes it. Before Initializer has a chance to do that, the install program (having been invoked multiple times in rapid succession) writes another segment into >sc1>update, but before it can actually writes its content, Initializer wakes up, processes BOTH segments (getting an error on the second because it hasn't been written yet), and deletes both segments. Then, when ""install"" tries to write to the >sc1>update segment that it created, it has already been deleted by Initializer."	defect	closed	major	MR12.8	Answering Service	MR12.7	fixed		
