Bug 450378 - ptrace: Stepping out of a signal handler runs away
Summary: ptrace: Stepping out of a signal handler runs away
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 9
Hardware: i686
OS: Linux
low
low
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 441406
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-07 09:17 UTC by Jan Kratochvil
Modified: 2008-07-22 22:48 UTC (History)
2 users (show)

Fixed In Version: kernel-2.6.25.9-76.fc9.x86_64
Clone Of:
Environment:
Last Closed: 2008-07-22 22:48:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan Kratochvil 2008-06-07 09:17:02 UTC
+++ This bug was initially created as a clone of Bug #441406 +++

Description of problem:
On repeated PTRACE_SINGLESTEP when a signal gets delivered the signal handler
gets traced but on the `int 0x80' of `__kernel_sigreturn' it starts to
PTRACE_CONT instead.

Version-Release number of selected component (if applicable):
FAILs kernel-2.6.25.4-30.fc9.i686

How reproducible:
Always.

Steps to Reproduce:
wget -O step-through-sigret.c
'http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/step-through-sigret.c?cvsroot=systemtap';
gcc -o step-through-sigret step-through-sigret.c -Wall -ggdb2 -D_GNU_SOURCE;
./step-through-sigret; echo $?

Actual results:
1

Expected results:
0

Comment 1 Jan Kratochvil 2008-07-22 22:48:44 UTC
Thanks, verified as fixed on kernel-2.6.25.9-76.fc9.x86_64.



Note You need to log in before you can comment on or make changes to this bug.