Bug 5709 - break main only works on first process
Summary: break main only works on first process
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: 2246
  Show dependency treegraph
 
Reported: 2008-02-01 21:57 UTC by Andrew Cagney
Modified: 2008-02-01 21:57 UTC (History)
1 user (show)

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 Andrew Cagney 2008-02-01 21:57:20 UTC
Consider

cagney@localhost$ ./frysk/bindir/fhpd # ./frysk/pkglibdir/funit-stack-inlined
(fhpd) load ./frysk/pkglibdir/funit-stack-inlined
Loaded executable file: ./frysk/pkglibdir/funit-stack-inlined
(fhpd) load ./frysk/pkglibdir/funit-stack-inlined
Loaded executable file: ./frysk/pkglibdir/funit-stack-inlined
(fhpd) break main
breakpoint 1 deferredbreakpoint 0 deferred
(fhpd) run
Attached to process 29227
Error: requestDeleteInstructionObserver
starting/running with this command:
/home/scratch/frysk/git/native/frysk-core/./frysk/pkglibdir/funit-stack-inlined 
Running process 29227
Breakpoint 0 main
Breakpoint 1 main
Attached to process 29228
starting/running with this command:
/home/scratch/frysk/git/native/frysk-core/./frysk/pkglibdir/funit-stack-inlined 
Running process 29227
Running process 29228
(fhpd) Breakpoint 0 main
Breakpoint 1 main
Task 29227 is terminating from signal SIGSEGV(11)
Exception in thread "Thread-1" java.lang.NullPointerException
   at frysk.proc.live.LinuxPtraceTask.sendStepInstruction(fhpd)
   at frysk.proc.live.LinuxPtraceTaskState$Running.sendContinue(fhpd)
   at frysk.proc.live.LinuxPtraceTaskState$Running.handleTerminatingEvent(fhpd)
   at frysk.proc.live.LinuxPtraceTask.processTerminatingEvent(fhpd)
   at frysk.proc.live.LinuxWaitBuilder.exitEvent(fhpd)
   at frysk.sys.Wait.wait(fhpd)
   at frysk.sys.Wait.waitAll(fhpd)
   at frysk.event.WaitEventLoop.block(fhpd)
   at frysk.event.EventLoop.runEventLoop(fhpd)
   at frysk.event.EventLoop.run(fhpd)

notice how only the first process stopped at main