Re: [PATCH] ptrace(2) single-stepping into signal handlers

From: John Blackwood
Date: Sat Jun 04 2005 - 08:04:32 EST


> Subject: Re: [PATCH] ptrace(2) single-stepping into signal handlers
> From: Andrew Morton <akpm@xxxxxxxx>
> Date: Fri, 3 Jun 2005 16:31:29 -0700
> To: Daniel Jacobowitz <dan@xxxxxxxxxx>
> CC: john.blackwood@xxxxxxxx
>
> >>> >
> >>> > Hi Dan,
> >>> >
> >>> > I observed this behavior in a 2.6.11.10 kernel. The code in 2.6.11.11
> >>> > looks the same in this area... this is the i386 code that I am speaking of.
> >>> >
> >>> > I guess that 'some time ago' is more recent than that?
> >>> >
> >>> >
> >>> > If so, then please excuse me... and it's great that this is fixed.
> >
> >>
> >> I'm not sure of the timeline, but could you check that in a current
> >> 2.6.12 GIT snapshot?
> >>
>
>
> 2.6.12-rc5 should be sufficient.
>
> ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.12-rc5.tar.bz2
>
> or, even better, the above plus:
>
> ftp://ftp.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.12-rc5-git8.bz2

Andrew and Dan,

Yes, I tried the above combination, and the stuck-in-single-step mode
after continuing out of the signal handler is indeed FIXED.

Some additional code was added to the i386 version of handle_signal()
(even before the git8 additions) so that the TF flag is now cleared and
the task no longer stops when it comes out of the signal handler and
returns back to the original execution stream.

Thanks.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/