Bug 1418 - A rapidly exec'ing process on attach causes stack trace
Summary: A rapidly exec'ing process on attach causes stack trace
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Andrew Cagney
: 1500 1988 (view as bug list)
Depends on: 1500 1988
Blocks: 1586 1654
  Show dependency treegraph
Reported: 2005-10-04 21:43 UTC by Phil Muldoon
Modified: 2006-12-08 18:57 UTC (History)
1 user (show)

See Also:
Last reconfirmed:

Very Simple Exec bomb (1.12 KB, text/plain)
2005-10-04 21:50 UTC, Phil Muldoon

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Muldoon 2005-10-04 21:43:26 UTC
1) Create a simple exec bomb (a program that execs itself every 1 or so seconds)
2) Attach to that process

Stack trace produced:

Exception in thread "Thread-1" java.lang.RuntimeException:
in state "unattached" did not handle
   at frysk.proc.State.unhandled(java.lang.Object, java.lang.String)
   at frysk.proc.State.unhandled(java.lang.Object, frysk.event.Event)
   at frysk.proc.TaskState.process(frysk.proc.Task, frysk.proc.TaskEvent$Execed)
   at frysk.proc.TaskEvent$Execed.execute()
   at frysk.event.EventLoop.runPending()
   at frysk.event.EventLoop.run()
   at frysk.gui.FryskGui$2.run()
   at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
Comment 1 Phil Muldoon 2005-10-04 21:50:11 UTC
Created attachment 684 [details]
Very Simple Exec bomb
Comment 2 Phil Muldoon 2005-10-05 18:59:00 UTC
It seems that this just occurs at any time. The rapid Exec exposes it more
rapidly than in normal usage. But in the sceanrio where an observer is added to
"normal" process (ie ones that do not magnify troubling behaviour on a larger
scale) these stack traces occur then too.
Comment 3 Phil Muldoon 2005-10-18 20:45:51 UTC
Currently there does not have to be an exec observer attached to the PID for
this to occur now (it occurs just on startup)

Exception in thread "Thread-2" java.lang.RuntimeException:
in state "unattached" did not handle PerformExeced
   at frysk.proc.State.unhandled(java.lang.Object, java.lang.String)
   at frysk.proc.TaskState.processPerformExeced(frysk.proc.Task)
   at frysk.proc.Task$19.execute()
   at frysk.event.EventLoop.runEventLoop(boolean)
   at frysk.event.EventLoop.run()
   at frysk.gui.FryskGui$3.run()
   at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
Comment 4 Andrew Cagney 2005-12-11 16:58:13 UTC
*** Bug 1500 has been marked as a duplicate of this bug. ***
Comment 5 Andrew Cagney 2005-12-11 16:59:29 UTC
*** Bug 1988 has been marked as a duplicate of this bug. ***
Comment 6 Stan Cox 2006-01-31 18:57:33 UTC
The exec observer now works okay.
Changed Proc.java.