Bug 5331 - CodeObserved child gets SIGTRAP after fork.
Summary: CodeObserved child gets SIGTRAP after fork.
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
Depends on:
Blocks: 2229
  Show dependency treegraph
Reported: 2007-11-15 15:33 UTC by Petr Machata
Modified: 2008-04-22 18:17 UTC (History)
0 users

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Petr Machata 2007-11-15 15:33:37 UTC
Will commit test case in a minute.
Comment 1 Petr Machata 2007-11-15 16:19:09 UTC
test case in 5f6f1885590d461c102fe24fee06a4917398a21c
Comment 2 Mark Wielaard 2008-04-22 18:17:45 UTC
commit 8a89c5014642554b0d94e146e6aa4fc7147e0015
Author: Mark Wielaard <mwielaard@redhat.com>
Date:   Tue Apr 22 18:34:11 2008 +0200

    Reset breakpoints on fork. Fixes bug #5331.
    2008-04-22  Mark Wielaard  <mwielaard@redhat.com>
           * Breakpoint.java (reset): Make package private.
           (cloneForProc): New method.
           * BreakpointAddresses.java (cloneForProc): New method.
           (clearAllBreakpoints): New method.
           * LinuxPtraceProc.java (LinuxPtraceProc(Task,ProcessIdentifier)):
           Set breakpoints through forkingProc.breakpoints.cloneForProc().
           (breakpoints): Make package private.
           * LinuxPtraceTask.java (LinuxPtraceTask(LinuxPtraceTask,
           LinuxPtraceProc,TaskAttachedObserverXXX)): Set currentISA.
           * LinuxPtraceTaskState.java
           (StartMainTask.wantToDetach.handleAttach): Clear breakpoints.
           (StartMainTask.wantToDetach.StoppedEvent): Likewise.
           * TestTaskObserverCode.java (testCodeOverFork): Resolve bug #5331.