Skip to contentSkip to conversation

ptrace(2) single-stepping into signal handlers

PATCH John Blackwood 1 participant 1 message Jun 4, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 23 lines

Subject: Re: [PATCH] ptrace(2) single-stepping into signal handlers
From: Andrew Morton <[email protected]>
Date: Fri, 3 Jun 2005 16:31:29 -0700
To: Daniel Jacobowitz <[email protected]>
CC: [email protected]

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

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?

Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

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?

Quoted 7 lines

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.