Bug 6721 - fhpd crashes when running debugee
Summary: fhpd crashes when running debugee
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-04 14:46 UTC by Tom Tromey
Modified: 2008-10-21 21:40 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2008-07-04 14:46:49 UTC
 
Comment 1 Tom Tromey 2008-07-04 14:48:05 UTC
fhpd crashes when running a debugee.
My test case is :fhpd /path/to/cc1; then "run".

opsy. fhpd ~/gnu/Trunk/install/libexec/gcc/i686-pc-linux-gnu/4.4.0/cc1
[0.0] Loaded executable file:
/home/tromey/gnu/Trunk/install/libexec/gcc/i686-pc-linux-gnu/4.4.0/cc1
(fhpd) run
Exception in thread "main" inua.eio.BufferUnderflowException
   at inua.eio.ByteBuffer.get(fhpd)
   at frysk.stack.LibunwindAddressSpace.accessMem(fhpd)
   at lib.unwind.UnwindX86.step(fhpd)
   at lib.unwind.Cursor.step(fhpd)
   at lib.unwind.Cursor.unwind(fhpd)
   at frysk.stack.LibunwindFrame.unwind(fhpd)
   at frysk.stack.Frame.getOuter(fhpd)
   at frysk.debuginfo.DebugInfoFrame.unwind(fhpd)
   at frysk.stack.Frame.getOuter(fhpd)
   at frysk.debuginfo.DebugInfoFrame.getOuterDebugInfoFrame(fhpd)
   at frysk.debuginfo.DebugInfoStackFactory.createVirtualStackTrace(fhpd)
   at frysk.hpd.CLI$SteppingObserver.update(fhpd)
   at java.util.Observable.notifyObservers(libgcj.so.8rh)
   at frysk.stepping.SteppingEngine$SteppingObserver.updateExecuted(fhpd)
   at frysk.proc.live.LinuxPtraceProc$14.add(fhpd)
   at frysk.proc.live.LinuxPtraceTaskState$BlockedSignal.handleAddObservation(fhpd)
   at frysk.proc.live.LinuxPtraceTask.handleAddObservation(fhpd)
   at frysk.proc.live.TaskObservation.handleAdd(fhpd)
   at frysk.proc.live.LinuxPtraceProcState$3.handleAddObservation(fhpd)
   at frysk.proc.live.LinuxPtraceProc.handleAddObservation(fhpd)
   at frysk.proc.live.LinuxPtraceProc$14.execute(fhpd)
   at frysk.event.EventLoop.runEventLoop(fhpd)
   at frysk.event.EventLoop.run(fhpd)
   at frysk.bindir.fhpd.main(fhpd)
Comment 2 Andrew Cagney 2008-07-04 16:25:22 UTC
This fixes one think-o; but I can't reproduce locally.

commit 6a0ea520d3eaebb371820f312c3bb40666c60265
Author: Andrew Cagney <cagney@redhat.com>
Date:   Fri Jul 4 11:24:41 2008 -0400

    frysk-sys/inua/ChangeLog
    2008-07-04  Andrew Cagney  <cagney@redhat.com>
    
        * eio/ByteBuffer.java: Throw InternalException.
        * eio/BufferUnderflowException.java: Extend UserException.