Bug 6591

Summary: frysk.bindir.TestFstep due to disassembler errors
Product: frysk Reporter: Sami Wagiaalla <swagiaal>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal CC: hunt
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 3364    

Description Sami Wagiaalla 2008-06-04 19:25:50 UTC
1) testFirstStep(frysk.bindir.TestFstep)frysk.expunit.EndOfFileException:
end-of-file; expecting:  <<^\[\d+\]\t0x8048a30\t>>; buffer <<Exception in thread
"main" lib.dwfl.ElfException: no disassember available
   at lib.dwfl.Disassembler.disassemble_instructions(fstep)
   at lib.dwfl.Disassembler.disassembleInstructions(fstep)
   at frysk.bindir.fstep.updateExecuted(fstep)
   at frysk.proc.live.LinuxPtraceProc$14.add(fstep)
   at frysk.proc.live.LinuxPtraceTaskState$BlockedSignal.handleAddObservation(fstep)
   at frysk.proc.live.LinuxPtraceTask.handleAddObservation(fstep)
   at frysk.proc.live.TaskObservation.handleAdd(fstep)
   at frysk.proc.live.LinuxPtraceProcState$3.handleAddObservation(fstep)
   at frysk.proc.live.LinuxPtraceProc.handleAddObservation(fstep)
   at frysk.proc.live.LinuxPtraceProc$14.execute(fstep)
   at frysk.event.EventLoop.runEventLoop(fstep)
   at frysk.event.EventLoop.run(fstep)
   at frysk.util.ProcRunUtil.start(fstep)
   at frysk.bindir.fstep.main(fstep)
>>
   at frysk.expunit.Child.expectMilliseconds(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.bindir.TestFstep.testFirstStep(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)
2)
testFstepAcceptsPIDArgument(frysk.bindir.TestFstep)frysk.expunit.EndOfFileException:
end-of-file; expecting:  <<19841>>; buffer <<Exception in thread "main"
java.lang.NullPointerException
   at lib.dwfl.Disassembler.disassembleInstructions(fstep)
   at frysk.bindir.fstep.updateExecuted(fstep)
   at frysk.proc.live.LinuxPtraceProc$14.add(fstep)
   at frysk.proc.live.LinuxPtraceTaskState$Running.handleStoppedEvent(fstep)
   at frysk.proc.live.LinuxPtraceTask.processStoppedEvent(fstep)
   at frysk.proc.live.LinuxWaitBuilder.stopped(fstep)
   at frysk.sys.Wait.wait(fstep)
   at frysk.sys.Wait.wait(fstep)
   at frysk.event.WaitEventLoop.block(fstep)
   at frysk.event.EventLoop.runEventLoop(fstep)
   at frysk.event.EventLoop.run(fstep)
   at frysk.util.ProcRunUtil.start(fstep)
   at frysk.bindir.fstep.main(fstep)
>>
   at frysk.expunit.Child.expectMilliseconds(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.bindir.TestFstep.testFstepAcceptsPIDArgument(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)
Comment 1 Rick Moseley 2008-06-13 18:15:37 UTC
Hmmmm, I think I am seeing the same thing when both the GUI and the command
line.  From the Gui when I try to open a core file I get this:

java.lang.NullPointerException
   at lib.dwfl.Disassembler.disassembleInstructions(Disassembler.java:61)
   at frysk.gui.srcwin.SourceBuffer.disassembleFrame(SourceBuffer.java:856)
   at frysk.gui.srcwin.SourceWindow.populateStackBrowser(SourceWindow.java:652)
   at frysk.gui.srcwin.SourceWindow.finishSourceWin(SourceWindow.java:550)
   at frysk.gui.srcwin.SourceWindow.<init>(SourceWindow.java:472)
   at
frysk.gui.srcwin.SourceWindowFactory.createSourceWindow(SourceWindowFactory.java:135)
   at
frysk.gui.srcwin.SourceWindowFactory.attachToCore(SourceWindowFactory.java:151)
   at frysk.gui.srcwin.SourceWindow.examineCoreFile(SourceWindow.java:1645)
   at frysk.gui.srcwin.SourceWindow.access$31(SourceWindow.java:1644)
   at frysk.gui.srcwin.SourceWindow$4.actionEvent(SourceWindow.java:1041)
   at org.gnu.gtk.Action.fireActionEvent(libgtkjava-2.8.so)
   at org.gnu.gtk.Action.handleActivate(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.gtk_main(libgtkjava-2.8.so)
   at frysk.gui.Gui.gui(Gui.java:231)
   at frysk.gui.FryskGui.main(FryskGui.java:58)


and from the commandline I get:

 ./fhpd
(fhpd) load bash
[0.0] Loaded executable file: /bin/bash
(fhpd) info debuginfo
/bin/bash /usr/lib/debug/bin/bash.debug

(fhpd) disassemble
[0.0]
Dump of assembler code for function: [unknown]
Internal Error: java.lang.NullPointerException
   at lib.dwfl.Disassembler.disassembleInstructions(Disassembler.java:61)
   at lib.dwfl.Disassembler.disassembleInstructionsStartEnd(Disassembler.java:70)
   at frysk.hpd.DisassembleCommand.interpret(DisassembleCommand.java:163)
   at frysk.hpd.ParameterizedCommand.interpret(ParameterizedCommand.java:147)
   at frysk.hpd.MultiLevelCommand.interpret(MultiLevelCommand.java:144)
   at frysk.hpd.CLI.execCommand(CLI.java:289)
   at frysk.bindir.fhpd$CommandLine.run(fhpd.java:150)