Re: S_proc_setexecdata

2001-06-06 Thread Neal H Walfield
> What is that proc bug? I search bug-hurd and i only found a patch from Neal > that adds /* XXX race condition */ comment but i didn't investigate further. That was bogus (at that point, I did not realive that there could be no race conditions as proc is single threaded). This was corrected in

Re: S_proc_setexecdata

2001-06-05 Thread Ognyan Kulev
On Tue, Jun 05, 2001 at 11:14:11PM -0700, Jeff Bailey wrote: > The proc bug exhibits only under heavy load. I've never looked at the > internals, so I don't know if these arrays could be the cause of the > crash but I will cheerfully test it if you send me the patch. I some > have easily reprodu

Re: S_proc_setexecdata

2001-06-05 Thread Jeff Bailey
On Wed, Jun 06, 2001 at 08:30:32AM +0300, Ognyan Kulev wrote: > In $HURDSRC/proc/host.c, function S_proc_setexecdata uses std_port_array and > std_int_array without exclusive lock. This can lead to a kind of corruption > if two threads call this function simultaneously (race condition)

Re: S_proc_setexecdata

2001-06-05 Thread Roland McGrath
proc is effectively single-threaded, see proc/main.c:message_demuxer. ___ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd

S_proc_setexecdata

2001-06-05 Thread Ognyan Kulev
Hi, In $HURDSRC/proc/host.c, function S_proc_setexecdata uses std_port_array and std_int_array without exclusive lock. This can lead to a kind of corruption if two threads call this function simultaneously (race condition). I know that this is almost impossible to happen, but i'm asking