Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 441406 - ptrace: Stepping out of a signal handler runs away
ptrace: Stepping out of a signal handler runs away
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
i686 Linux
low Severity low
: ---
: ---
Assigned To: Roland McGrath
Fedora Extras Quality Assurance
Depends On:
Blocks: 173278 450378
  Show dependency treegraph
Reported: 2008-04-07 17:16 EDT by Jan Kratochvil
Modified: 2008-07-22 18:50 EDT (History)
2 users (show)

See Also:
Fixed In Version: kernel-
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-07-22 18:50:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Sourceware 6044 None None None Never

  None (edit)
Description Jan Kratochvil 2008-04-07 17:16:56 EDT
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-
FAILs kernel-
FAILs kernel-2.6.25-0.195.rc8.git1.fc9.i686 patched by
PASSes kernel-
PASSes kernel-2.6.20-1.2933.fc6.i686 (as reported by mwielaard)

How reproducible:

Steps to Reproduce:
wget -O step-through-sigret.c
gcc -o step-through-sigret step-through-sigret.c -Wall -ggdb2 -D_GNU_SOURCE;
./step-through-sigret; echo $?

Actual results:

Expected results:

Additional info:
Comment 1 Mark Wielaard 2008-04-08 05:17:00 EDT
See also:

From Wenji Huang
"Verified that the test couldn't pass on > 2.6.20 i686 kernel [...]
 But passed on >= 2.6.22 (vanilla, x86_64) and 2.6.25 (utrace patched, x86_64)"

So it seems to not be utrace specific, but an upstream ptrace/signal bug since
2.6.21 on x86 only.
Comment 2 Jan Kratochvil 2008-04-09 13:53:05 EDT
->ptrace as the Bug is not utrace-related:
Comment 3 Julien Tane 2008-05-30 12:53:39 EDT
I have the same problem on Fedora 9 with gcc :  gcc-4.3.0-8.i386,
glibc-headers-2.8-3.i386 (same version of glibc of course)
I downloaded the script given above and I also obtain 

instead of:

This is probably related to my difficulties starting user-mode-linux kernels
from: <http://user-mode-linux.sourceforge.net/> or

Comment 4 Jan Kratochvil 2008-07-22 18:50:04 EDT
Thanks, verified as fixed on kernel-

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