Bug 6604

Summary: Stepping a two threaded program breaks
Product: frysk Reporter: Sami Wagiaalla <swagiaal>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2246    

Description Sami Wagiaalla 2008-06-06 19:22:25 UTC
I have submitted a test case

  frysk.hpd.TestFhpdThreads

[swagiaal@toner frysk-core]$ ./frysk/bindir/fhpd ./frysk/pkglibdir/funit-2threads
[0.0] Loaded executable file:
/notnfs/swagiaal/frysks.bin/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads
(fhpd) break main
breakpoint 0 deferred
(fhpd) run
running with this command:
/notnfs/swagiaal/frysks.bin/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads
Attached to process 10099
Running process 10099
(fhpd) Breakpoint 0 main 0x400697
next
Task stopped at line 62 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
(fhpd) next
Task stopped at line 62 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
Task stopped at address 0x32a46e4291
(fhpd) next
Task stopped at line 67 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
Task stopped at address 0x32a46e4291
(fhpd) next
Task stopped at line 67 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
Task stopped at line 55 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
(fhpd) Thread 0: 0
next
Task stopped at line 66 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
Task stopped at line 55 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
(fhpd) next
Task stopped at line 67 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
Task stopped at address 0x32a4650f90
(fhpd) Thread 1: 0
next
Task stopped at line 67 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
Task stopped at line 55 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
(fhpd) Thread 0: 1
next
Task stopped at line 66 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
Task stopped at line 55 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
(fhpd) next
Task stopped at line 67 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
Task stopped at address 0x32a4650f90
(fhpd) Thread 1: 1
next
Task stopped at line 67 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
Task stopped at line 55 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
(fhpd) Thread 0: 2
next
Task stopped at line 66 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
Task stopped at line 55 in file
/notnfs/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-2threads.c
(fhpd) java.lang.RuntimeException: not added
   at frysk.proc.live.LinuxPtraceProcState$3.handleDeleteObservation(fhpd)
   at frysk.proc.live.LinuxPtraceProc$15.execute(fhpd)
   at frysk.event.EventLoop.runEventLoop(fhpd)
   at frysk.event.EventLoop.run(fhpd)
   at frysk.bindir.fhpd.main(fhpd)
Thread 1: 2