Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-19 Thread Holger Brunck
On 19/08/16 15:44, Christophe Leroy wrote: >>> >>> I just tried it on an 885 and on an 8323, it work properly on both targets. >>> >>> You can see below the Debug Option that are active on my 8323 target. >>> >> >> >> thanks for trying it. >> >> Could you completely disable FTRACE? As it also works

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-19 Thread Christophe Leroy
Le 19/08/2016 à 13:14, Holger Brunck a écrit : On 19/08/16 13:03, Christophe Leroy wrote: Le 17/08/2016 à 17:27, Holger Brunck a écrit : On 16/08/16 19:27, christophe leroy wrote: Le 15/08/2016 à 18:19, Dave Hansen a écrit : On 08/15/2016 07:35 AM, Holger Brunck wrote: I tried this but

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-19 Thread Holger Brunck
On 19/08/16 13:03, Christophe Leroy wrote: > > > Le 17/08/2016 à 17:27, Holger Brunck a écrit : >> On 16/08/16 19:27, christophe leroy wrote: >>> >>> >>> Le 15/08/2016 à 18:19, Dave Hansen a écrit : On 08/15/2016 07:35 AM, Holger Brunck wrote: > I tried this but unfortunately the error o

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-19 Thread Christophe Leroy
Le 17/08/2016 à 17:27, Holger Brunck a écrit : On 16/08/16 19:27, christophe leroy wrote: Le 15/08/2016 à 18:19, Dave Hansen a écrit : On 08/15/2016 07:35 AM, Holger Brunck wrote: I tried this but unfortunately the error only occurs while remote debugging. Locally with gdb everything works

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-18 Thread Christophe Leroy
Le 17/08/2016 à 17:27, Holger Brunck a écrit : On 16/08/16 19:27, christophe leroy wrote: Le 15/08/2016 à 18:19, Dave Hansen a écrit : On 08/15/2016 07:35 AM, Holger Brunck wrote: I tried this but unfortunately the error only occurs while remote debugging. Locally with gdb everything works

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-17 Thread Holger Brunck
On 16/08/16 19:27, christophe leroy wrote: > > > Le 15/08/2016 à 18:19, Dave Hansen a écrit : >> On 08/15/2016 07:35 AM, Holger Brunck wrote: >>> I tried this but unfortunately the error only occurs while remote debugging. >>> Locally with gdb everything works fine. BTW we double-checked with a 8

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-17 Thread Holger Brunck
On 17/08/16 00:13, Benjamin Herrenschmidt wrote: > On Mon, 2016-08-15 at 09:19 -0700, Dave Hansen wrote: >> >> Wow, thanks for all the debugging here! > > Yup, thanks, that's really odd... I wonder if one of those > structures is accessed beyond it's boundary, either the sigset > or the thread s

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-17 Thread Holger Brunck
On 15/08/16 18:19, Dave Hansen wrote: > On 08/15/2016 07:35 AM, Holger Brunck wrote: >> I tried this but unfortunately the error only occurs while remote debugging. >> Locally with gdb everything works fine. BTW we double-checked with a 85xx ppc >> target which is also 32-bit and it ends up with th

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-17 Thread Christophe Leroy
Le 16/08/2016 à 19:36, Dave Hansen a écrit : On 08/16/2016 10:27 AM, christophe leroy wrote: If I debug a very small app, it gets stuck quickly after the app has stopped: indeed, the console seems ok but as soon as I try to execute something simple, like a ps or top, it get stuck. The target sti

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-16 Thread Benjamin Herrenschmidt
On Mon, 2016-08-15 at 09:19 -0700, Dave Hansen wrote: >  > Wow, thanks for all the debugging here! Yup, thanks, that's really odd... I wonder if one of those structures is accessed beyond it's boundary, either the sigset or the thread struct, causing corruption of neighbouring fields in task struc

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-16 Thread Dave Hansen
On 08/16/2016 10:27 AM, christophe leroy wrote: > If I debug a very small app, it gets stuck quickly after the app has > stopped: indeed, the console seems ok but as soon as I try to execute > something simple, like a ps or top, it get stuck. The target still > responds to pings, but nothing else.

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-16 Thread christophe leroy
Le 15/08/2016 à 18:19, Dave Hansen a écrit : On 08/15/2016 07:35 AM, Holger Brunck wrote: I tried this but unfortunately the error only occurs while remote debugging. Locally with gdb everything works fine. BTW we double-checked with a 85xx ppc target which is also 32-bit and it ends up with t

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-15 Thread Dave Hansen
On 08/15/2016 07:35 AM, Holger Brunck wrote: > I tried this but unfortunately the error only occurs while remote debugging. > Locally with gdb everything works fine. BTW we double-checked with a 85xx ppc > target which is also 32-bit and it ends up with the same behaviour. > > I was also investiga

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-15 Thread Holger Brunck
On 12/08/16 18:09, Dave Hansen wrote: > On 08/12/2016 08:47 AM, Holger Brunck wrote: >> On 12/08/16 17:14, Dave Hansen wrote: >>> On 08/12/2016 07:50 AM, Holger Brunck wrote: When I try to debug our multithreaded userspace application with gdb I get stuck when trying to single step code.

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-12 Thread Dave Hansen
On 08/12/2016 08:47 AM, Holger Brunck wrote: > On 12/08/16 17:14, Dave Hansen wrote: >> On 08/12/2016 07:50 AM, Holger Brunck wrote: >>> When I try to debug our multithreaded userspace application with gdb I get >>> stuck when trying to single step code. >> >> Can you clarify "stuck"? Like the in

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-12 Thread Holger Brunck
Thanks for the quick answer! On 12/08/16 17:14, Dave Hansen wrote: > On 08/12/2016 07:50 AM, Holger Brunck wrote: >> When I try to debug our multithreaded userspace application with gdb I get >> stuck when trying to single step code. > > Can you clarify "stuck"? Like the instructions don't adva

Re: debug problems on ppc 83xx target due to changed struct task_struct

2016-08-12 Thread Dave Hansen
On 08/12/2016 07:50 AM, Holger Brunck wrote: > When I try to debug our multithreaded userspace application with gdb I get > stuck when trying to single step code. Can you clarify "stuck"? Like the instructions don't advance? Have you been able to find a root cause for this? > Does anyone have