From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9611 invoked by alias); 22 May 2007 17:06:03 -0000 Received: (qmail 9557 invoked by uid 48); 22 May 2007 17:05:49 -0000 Date: Tue, 22 May 2007 17:06:00 -0000 From: "cagney at redhat dot com" To: frysk-bugzilla@sourceware.org Message-ID: <20070522180546.4536.cagney@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug general/4536] New: race in FCatch's exec code X-Bugzilla-Reason: AssignedTo Mailing-List: contact frysk-bugzilla-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: frysk-bugzilla-owner@sourceware.org X-SW-Source: 2007-q2/txt/msg00223.txt.bz2 List-Id: 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.