From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22930 invoked by alias); 25 Jun 2007 15:11:30 -0000 Received: (qmail 22884 invoked by uid 48); 25 Jun 2007 15:11:19 -0000 Date: Mon, 25 Jun 2007 15:11:00 -0000 Message-ID: <20070625151119.22883.qmail@sourceware.org> From: "swagiaal at redhat dot com" To: frysk-bugzilla@sourceware.org In-Reply-To: <20070625134256.4698.pmuldoon@redhat.com> References: <20070625134256.4698.pmuldoon@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug general/4698] Opening up a core file in the source window causes a backtrace 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/msg00416.txt.bz2 List-Id: ------- Additional Comments From swagiaal at redhat dot com 2007-06-25 15:11 ------- Phil, sounds like your hunch was right; looks like this is caused by failure to create a dwarf object: I added a throw exception in the constructor: Index: frysk-core/frysk/debuginfo/DebugInfo.java =================================================================== RCS file: /cvs/frysk/frysk-core/frysk/debuginfo/DebugInfo.java,v retrieving revision 1.10 diff -u -r1.10 DebugInfo.java --- frysk-core/frysk/debuginfo/DebugInfo.java 14 Jun 2007 03:20:33 -0000 1.10 +++ frysk-core/frysk/debuginfo/DebugInfo.java 25 Jun 2007 15:09:53 -0000 @@ -94,7 +94,9 @@ dwarf = new Dwarf(elf, DwarfCommand.READ, null); } catch (lib.elf.ElfException ignore) - {} + { + throw new RuntimeException(ignore); + } debugInfoEvaluator = new DebugInfoEvaluator[1]; subprogram = new Subprogram[1]; debugInfoEvaluator[0] = new DebugInfoEvaluator (frame); and got the following: java.lang.RuntimeException: lib.elf.ElfFileException: Could not open sleep at frysk.debuginfo.DebugInfo.(FryskGui) at frysk.gui.srcwin.SourceWindow.generateProcStackTrace(FryskGui) at frysk.gui.srcwin.SourceWindow.finishSourceWin(FryskGui) at frysk.gui.srcwin.SourceWindow.(FryskGui) at frysk.gui.srcwin.SourceWindowFactory.createSourceWindow(FryskGui) at frysk.gui.srcwin.SourceWindowFactory.attachToCore(FryskGui) at frysk.gui.srcwin.SourceWindow.examineCoreFile(FryskGui) at frysk.gui.srcwin.SourceWindow$2.actionEvent(FryskGui) at org.gnu.gtk.Action.fireActionEvent(libgtkjava-2.10.so) at org.gnu.gtk.Action.handleActivate(libgtkjava-2.10.so) Caused by: lib.elf.ElfFileException: Could not open sleep at lib.elf.Elf.elf_begin(FryskGui) at lib.elf.Elf.(FryskGui) at frysk.debuginfo.DebugInfo.(FryskGui) ...9 more -- http://sourceware.org/bugzilla/show_bug.cgi?id=4698 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.