Bug 5795 - Problem killing multi-threaded tasks
Summary: Problem killing multi-threaded tasks
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 2246 5500 5501
  Show dependency treegraph
 
Reported: 2008-02-26 16:19 UTC by Rick Moseley
Modified: 2008-04-03 20:46 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 Rick Moseley 2008-02-26 16:19:18 UTC
When using the test suite when a multi-threaded task is killed with the "kill"
command a backtrace is generated.  I can duplicate this every time with the
following command sequence:

(fhpd) load ../pkglibdir/funit-threads-looper
Loaded executable file: ../pkglibdir/funit-threads-looper
(fhpd) run
Attached to process 10410
starting/running with this command:
/home/rmoseley/frysk-git3/build/frysk-core/frysk/bindir/../pkglibdir/funit-threads-looper

Running process 10410
(fhpd) run
Killing process 9259 that was created from
/home/rmoseley/frysk-git3/build/frysk-core/frysk/pkglibdir/funit-threads-looper
Loaded executable file:
/home/rmoseley/frysk-git3/build/frysk-core/frysk/pkglibdir/funit-threads-looper
Exception in thread "main" java.lang.RuntimeException:
{frysk.proc.live.LinuxPtraceTask@2fa6f055,pid=9259,tid=9260,state=StartClonedTask.blockedOffspring}
in state "StartClonedTask.blockedOffspring" did not handle handleTerminatedEvent
   at frysk.proc.live.State.unhandled(State.java:67)
   at
frysk.proc.live.LinuxPtraceTaskState.handleTerminatedEvent(LinuxPtraceTaskState.java:73)
   at
frysk.proc.live.LinuxPtraceTask.processTerminatedEvent(LinuxPtraceTask.java:230)
   at frysk.proc.live.LinuxWaitBuilder.terminated(LinuxWaitBuilder.java:200)
   at frysk.sys.Wait.wait(Wait.cxx:586)
   at frysk.sys.Wait.wait(Wait.java:125)
   at frysk.event.WaitEventLoop.block(WaitEventLoop.java:87)
   at frysk.event.EventLoop.runEventLoop(EventLoop.java:377)
   at frysk.event.EventLoop.run(EventLoop.java:487)
   at frysk.bindir.fhpd.main(fhpd.java:197)
Comment 1 Rick Moseley 2008-04-03 20:46:30 UTC
Seems to be fixed in HEAD.