Bug 3872 - {frysk.proc.LinuxPtraceTask@394a229d,pid=17918,tid=17918,state=detaching} in state "detaching" did not handle handleTrappedEvent
Summary: {frysk.proc.LinuxPtraceTask@394a229d,pid=17918,tid=17918,state=detaching} in ...
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: 3346
  Show dependency treegraph
 
Reported: 2007-01-15 19:11 UTC by Mike Cvet
Modified: 2008-05-05 12:23 UTC (History)
1 user (show)

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


Attachments
Test program (1.35 KB, application/octet-stream)
2007-01-15 19:17 UTC, Mike Cvet
Details
Source Window button patch (429 bytes, application/octet-stream)
2007-01-15 19:25 UTC, Mike Cvet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Cvet 2007-01-15 19:11:04 UTC
Here's the story:

public Action updateHit (Task task, long address)
    {
      if (address != this.address)
        {
          System.out.println("Hit wrong address!");
          return Action.CONTINUE;
        }
      else
        {
          cleanUpBreakPoint(task);
          task.requestDeleteCodeObserver(this, address);
        }

      triggered++;
      return Action.CONTINUE;
    }


If "task.requestDeleteCodeObserver(this, address);" is removed, then the 
following core state error does not occur.


{frysk.proc.LinuxPtraceTask@394a229d,pid=17918,tid=17918,state=detaching} in 
state "detaching" did not handle handleTrappedEvent

frysk.proc.State.unhandled(FryskGui)
frysk.proc.TaskState.handleTrappedEvent(FryskGui)
frysk.proc.Task.processTrappedEvent(FryskGui)
frysk.proc.LinuxPtraceHost$PollWaitOnSigChld$5.stopped(FryskGui)
frysk.sys.Wait.waitAllNoHang(FryskGui)
frysk.proc.LinuxPtraceHost$PollWaitOnSigChld.execute(FryskGui)
frysk.event.EventLoop.runEventLoop(FryskGui)
frysk.event.EventLoop.run(FryskGui)
frysk.gui.Gui$3.run(FryskGui)
java.lang.Thread.run(libgcj.so.7rh)
Comment 1 Mark Wielaard 2007-01-15 19:14:23 UTC
Do you have full source code for this test, so I can easily try to reproduce this?

This does say what is happening: state "detaching" did not handle handleTrappedEvent
Should not be that hard to fix I hope.
Comment 2 Mike Cvet 2007-01-15 19:17:18 UTC
Created attachment 1495 [details]
Test program
Comment 3 Mike Cvet 2007-01-15 19:25:13 UTC
Created attachment 1496 [details]
Source Window button patch

Apply this patch to enable the "Step over" button in the SourceWindow.

When running on the test program above, line step through foo() until the call
to jump() is highlighted; and then click "step over" which should cause the
error above.
Comment 4 Mike Cvet 2007-01-15 19:25:58 UTC
Oh, and the code that the blurb in the original comment is taken from is in 
frysk-core/frysk/rt/RunState.java