Bug 5709

Summary: break main only works on first process
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal CC: timoore
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Project(s) to access: ssh public key:
Bug Depends on:    
Bug Blocks: 2246    

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