Bug 450379 - utrace: step-jump-cont-strict testcase fails
Summary: utrace: step-jump-cont-strict testcase fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 9
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Fedora Extras Quality Assurance
URL: https://www.redhat.com/archives/utrac...
Whiteboard:
Depends On:
Blocks: 450439
TreeView+ depends on / blocked
 
Reported: 2008-06-07 09:28 UTC by Jan Kratochvil
Modified: 2009-05-28 08:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-28 08:20:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan Kratochvil 2008-06-07 09:28:04 UTC
Description of problem:
The current Fedora 9 kernel ptrace behavior does not correspond to the ideal one
as decided on the utrace-devel mailing list.
I am not aware any current practical debugger would be hit by it.

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

How reproducible:
Always.

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

Actual results:
./step-jump-cont-strict: step-jump-cont-strict.c:365: test_singlestep (,
instruction 7): Trap flag expected 1: found 0
1

Expected results:
0

Additional info:
It was fixed by the Roland's patch:
https://www.redhat.com/archives/utrace-devel/2008-April/msg00004.html

but I did not find it in the Fedora kernels so far.

Comment 1 Chuck Ebbert 2009-05-28 08:20:59 UTC
(In reply to comment #1)
> Description of problem:
> The current Fedora 9 kernel ptrace behavior does not correspond to the ideal one
> as decided on the utrace-devel mailing list.
> 

> Additional info:
> It was fixed by the Roland's patch:
> https://www.redhat.com/archives/utrace-devel/2008-April/msg00004.html
> 
> but I did not find it in the Fedora kernels so far.  

That fix is in the current F9 2.6.27 kernel and the test passes on the F10 2.6.27 kernel, which has the same code.


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