Bug 6604 - Stepping a two threaded program breaks
Summary: Stepping a two threaded program breaks
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-06-06 19:22 UTC by Sami Wagiaalla
Modified: 2008-06-06 19:22 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 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