This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: snapshot 20050114 race (on list)


I have been trying without success to reproduce the race
reported by Eric Blake, which started this thread.

When trying a modified script (below), I can get a crash in proc_waiter
3180441 [proc_waiter] sh 3676 handle_exceptions: Error while dumping state
(probably corrupted stack)

If you can't reproduce it, I can provide more info, but nothing very
useful. That was with the cvs of yesterday. I noticed you made some changes
and recompiled, same general result. That's on XP.

Also, in :exit, it's only necessary to call set_exit_state
if n != EXITCODE_NOSET (otherwise the exit code is already set).
Also if set_exit_state does set the code, then the parent can be alerted.

Pierre

#! /bin/sh
pwd=`pwd`
tmp=race.$$
for i in 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
do
 mkdir "$tmp"
 cd "$tmp"
 sleep 1 &
 cd "$pwd"
 rmdir "$tmp"
done
exit 0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]