public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/4536] New: race in FCatch's exec code
@ 2007-05-22 17:06 cagney at redhat dot com
  2007-06-29 13:33 ` [Bug general/4536] " mcvet at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: cagney at redhat dot com @ 2007-05-22 17:06 UTC (permalink / raw)
  To: frysk-bugzilla

This code:

    
    if (attach == true)
      init();
    else
      {
        File exe = new File(command[0]);
        if (exe.exists())
          Manager.host.requestCreateAttachedProc(command, new CatchObserver());
        else
          {
            System.err.println("fcatch: can't find executable!");
            System.exit(1);
          }
      }

has a race - the executable could be removed between the exe.exists() call and
the requestCreateAttatchedProc call.

The code should instead handle the exec failure in the attatched observer.

-- 
           Summary: race in FCatch's exec code
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: cagney at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4536

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-11 19:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-22 17:06 [Bug general/4536] New: race in FCatch's exec code cagney at redhat dot com
2007-06-29 13:33 ` [Bug general/4536] " mcvet at redhat dot com
2007-07-03 17:24 ` cagney at redhat dot com
2008-03-11 19:43 ` swagiaal at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).