Bug 312031 - utrace: /proc/<pid>/maps not always accessible when receiving PTRACE_EVENT_EXIT
Summary: utrace: /proc/<pid>/maps not always accessible when receiving PTRACE_EVENT_EXIT
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 6
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 285761
Blocks: 427887
TreeView+ depends on / blocked
 
Reported: 2007-09-29 00:26 UTC by Jan Kratochvil
Modified: 2008-02-08 04:24 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-02-08 04:24:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Testcase. (3.33 KB, text/plain)
2007-09-29 00:26 UTC, Jan Kratochvil
no flags Details

Description Jan Kratochvil 2007-09-29 00:26:24 UTC
+++ This bug was initially created as a clone of Bug #285761 +++

Backport of the Rawhide Bug for FC-6.

Description of problem:
I trace a process using ptrace and the PTRACE_O_TRACEEXIT option. When I get
the PTRACE_EVENT_EXIT notification for the process I examine its memory
mappings by reading /proc/<pid>/maps. This works on vanilla Linux kernels.

On the Fedora kernel this works if the process exited normally, but if it was
killed by a signal I get EACCES when trying to open /proc/<pid>/maps.

I guess this is undocumented behaviour, but it would be good to know if I
should expect a fix or work around the problem somehow.

I am running the x86_64 version of the kernel on a Core 2 T7200.


Version-Release number of selected component (if applicable):
kernel-2.6.22.7-57.fc6.x86_64


How reproducible:
Every time.


Steps to Reproduce:
1. Compile and run the attached test case.


Actual results:
Test case fails to open /proc/<pid>/maps.


Expected results:
Test case prints the contents of /proc/<pid>/maps.

Comment 1 Jan Kratochvil 2007-09-29 00:26:24 UTC
Created attachment 211161 [details]
Testcase.

Comment 2 Jon Stanley 2008-01-08 01:51:55 UTC
(This is a mass-update to all current FC6 kernel bugs in NEW state)

Hello,

I'm reviewing this bug list as part of the kernel bug triage project, an attempt
to isolate current bugs in the Fedora kernel.

http://fedoraproject.org/wiki/KernelBugTriage

I am CC'ing myself to this bug, however this version of Fedora is no longer
maintained.

Please attempt to reproduce this bug with a current version of Fedora (presently
Fedora 8). If the bug no longer exists, please close the bug or I'll do so in a
few days if there is no further information lodged.

Thanks for using Fedora!

Comment 3 Jon Stanley 2008-02-08 04:24:39 UTC
Per the previous comment in this bug, I am closing it as INSUFFICIENT_DATA,
since no information has been lodged for over 30 days.

Please re-open this bug or file a new one if you can provide the requested data,
and thanks for filing the original report!


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