#14 Setting breakpoints in the kernel debugger causes segfaults

Jeff Dike

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.


  • 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.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks