From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12535 invoked by alias); 12 Jul 2007 20:34:05 -0000 Received: (qmail 12495 invoked by uid 48); 12 Jul 2007 20:33:53 -0000 Date: Thu, 12 Jul 2007 20:34:00 -0000 From: "pmuldoon at redhat dot com" To: frysk-bugzilla@sourceware.org Message-ID: <20070712203353.4788.pmuldoon@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug general/4788] New: Exe.get() Exceptions are not being thrown 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-q3/txt/msg00101.txt.bz2 List-Id: Inside frysk/frysk-imports/frysk/sys/proc/cni/Exe.cxx There is a test like: if (len < 0 || len >= FILENAME_MAX) throwErrno (errno, "readlink"); In some situations in the field, getExe() produces garbage. However the above exception never "surfaces" to the user level, and no indications of an error happening has occured. If you add in a print statement something like: if (len < 0 || len >= FILENAME_MAX) { printf("readlink failed on link %s\n",link); throwErrno (errno, "readlink"); } The printf is shown, but no stack trace for the exceptions. This leaves getExe() always appearing to be correct. -- Summary: Exe.get() Exceptions are not being thrown Product: frysk Version: unspecified Status: NEW Severity: normal Priority: P2 Component: general AssignedTo: frysk-bugzilla at sourceware dot org ReportedBy: pmuldoon at redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=4788 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.