[PATCH] unwind: disable stack trace with multiple personalities
Dmitry V. Levin
ldv at altlinux.org
Mon Jun 9 08:58:31 UTC 2014
On Sun, Jun 08, 2014 at 09:29:23PM -0700, Luca Clementi wrote:
> * unwind.c: disable stack tracing when tracing multiple
> personalities
> ---
> unwind.c | 30 ++++++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/unwind.c b/unwind.c
> index ba7b579..99bfbe9 100644
> --- a/unwind.c
> +++ b/unwind.c
> @@ -104,6 +104,12 @@ unwind_init(void)
> void
> unwind_tcb_init(struct tcb *tcp)
> {
> +#if UPPORTED_PERSONALITIES > 1
> + if (tcp->currpers) {
> + /* disable strack trace */
> + return;
> + }
> +#endif
Firstly, the check itself should be (tcp->currpers != DEFAULT_PERSONALITY).
Secondly, unwind_tcb_init and unwind_tcb_fin should not be changed because
process personality is not necessarily a constant.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140609/1c930b33/attachment.bin>
More information about the Strace-devel
mailing list