From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4A09645D.4090003@domain.hid> Date: Tue, 12 May 2009 13:58:21 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] gatekeeper/0 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: henning.richter@domain.hid Cc: Xenomai help henning.richter@domain.hid wrote: >> And then tries to access the same room on the stack believing that the >> frame pointer or pc is stored there. Game over. >> >> Modify profile_pc function declaration to add the "notrace" qualifier. >> >> This bug is a red herring, this is a simple effect of enabling the > tracing. > > -- > Gilles. > > Can you give me a hint how to do that or is there sth. to read about? > > Henning Try: diff --git a/arch/x86/include/asm/ptrace.h b/arch/x86/include/asm/ptrace.h index 6d34d95..abfd422 100644 --- a/arch/x86/include/asm/ptrace.h +++ b/arch/x86/include/asm/ptrace.h @@ -134,7 +134,7 @@ struct pt_regs { struct cpuinfo_x86; struct task_struct; -extern unsigned long profile_pc(struct pt_regs *regs); +extern unsigned long notrace profile_pc(struct pt_regs *regs); extern unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs); If that is not enough, add notrace where profile_pc is implemented too. -- Gilles.