[Bug 24193] Winedbg does not work on Ubuntu Maverick (ptrace protection)

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Sep 1 14:35:57 CDT 2010


--- Comment #3 from Eric Pouech <eric.pouech at orange.fr> 2010-09-01 14:35:56 CDT ---
I don't think setting /proc/sys/kernel/yama/ptrace_scope is a viable workaround

let's consider three regular cases of wine usage:
A/ a program crashes, and default fault handler starts winedbg on this process
B/ a program sets its own stack unwinder (likely in a fault handler)
C/ a programmer fires winedbg foo

in all three cases above, the calls to ptrace are made inside wineserver, so,
in all the cases, the unix process (wineserver) which does the calls to ptrace
is the (grand*)-parent of the process being ptraced
as a conclusion, installing Wine on ubuntu should reset ptrace_scope to 0,
which is not acceptable IMO to cover the cases A, B and C (setting ptrace_scope
to 0 could be acceptable in usecase C, for developpers)

so we need a better (finer grain) solution:
- either rearchitecture Wine process management so that wineserver is always a
(grand*)-parent of any wine process (oouch)
- rework the kernel evolution so that an exec can get the ptrace_scope
capability (I assume gdb is likely to ask for the same stuff), and set it to


Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list