Menu

#14 Setting breakpoints in the kernel debugger causes segfaults

closed-fixed
5
2000-09-25
2000-09-02
Jeff Dike
No

The problem seems to be worst if those breakpoints have conditions or commands attached to them, but I've seen ungarnished breakpoints have problems. The most common thing is for the process running to segfault.

Discussion

  • Jeff Dike

    Jeff Dike - 2000-09-25
    • status: open --> closed-fixed
     
  • Jeff Dike

    Jeff Dike - 2000-09-25

    This was caused by do_syscall accidentally saving registers in the thread structure when the SIGTRAP it was looking at was caused by a breakpoint rather than a system call. That state was restored instead of the real process state when the system call exited, causing all sorts of problems.
    The fix is in CVS and in http://sourceforge.net/patch/?func=detailpatch&patch_id=101646&group_id=429

     

Log in to post a comment.