Zomega / fabricate

Automatically exported from code.google.com/p/fabricate
0 stars 0 forks source link

Make StraceRunner handle programs that spawn multiple sub-processes #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is an issue Tim Docker brought up in the mailing list. Here's his 
message:

-----
I have had some troubles with an older version of fabricate (1.08)
relating to the way the StraceRunner was handling the current working
directory when subprocesses were involved. I see that an attempt has
been made to fix this in more recent versions, by keeping a stack of
working directories.

But is this stack based approach correct? Given that it's possible for
different subprocesses to be executing simultaneously (and hence have
interleaved file access output in strace), I would have though that a
dictionary of working directories should be kept, indexed by pid, with

 - new entries created by fork/clone matches
 - entries updated by chdir matches
 - entries removed by exit matches
-----

Original issue reported on code.google.com by benh...@gmail.com on 7 Dec 2009 at 11:25

GoogleCodeExporter commented 8 years ago
Applied patch by Peter Jensen to fix this issue, r87

Original comment by benh...@gmail.com on 30 Mar 2010 at 9:29