Re: Requesting a Hackster.io channel

2023-05-12 Thread Dmitri Shilov
I am new to nuttx, and I spent considerable time exploring existing open projects - hackster.io was quickly struck off my list of resources due to constant badgering to register and a three article limit for non-registered users. DIS Sent from ProtonMail mobile Original Message --

Re: Problem with ps and kthread: Reproducible crash -> corrupted by context switching ?

2023-05-12 Thread Sebastien Lorquet
it seems not to crash with revision 13d823f307, but there is clearly a problem with the command line here. Is the context switch trying to save registers in a place where the argv are stored, because this is not a user task but a kernel thread? I could not find where the SP of new tasks was i

Re: Problem with ps and kthread: Reproducible crash -> corrupted by context switching ?

2023-05-12 Thread Sebastien Lorquet
Some more gdb stuff found that *something* is corrupting the contents of argv, silently. I have used an access watchpoint to catch accesses to argv The first calls are related to the memset that clears the stack frame when the task is created, and I see the correct values. HOWEVER, at some p

Re: Problem with ps and kthread: Reproducible crash

2023-05-12 Thread Sebastien Lorquet
Well it's not the stack, same crash with the stack doubled from 4096 to 8192, BFAR still contains the suspicious 3 from the argv array nsh> ps   PID GROUP PRI POLICY   TYPE    NPX STATE    EVENT SIGMASK STACK    CPU COMMAND     0 0   0 FIFO Kthread N-- Ready 004056