Network deadlock and priority inheritance.

2022-05-13 Thread Fotis Panagiotopoulos
Hello! I am facing various issues with networking in NuttX, including a nasty deadlock. I tried to track down this deadlock, and it seems that it is related to g_netlock. I am not sure yet what is the sequence that leads to this. I have CONFIG_PRIORITY_INHERITANCE enabled. However, I see that SE

Re: Network deadlock and priority inheritance.

2022-05-13 Thread Nathan Hartman
On Fri, May 13, 2022 at 6:43 AM Fotis Panagiotopoulos wrote: > > Hello! > > I am facing various issues with networking in NuttX, including a nasty > deadlock. > > I tried to track down this deadlock, and it seems that it is related to > g_netlock. > I am not sure yet what is the sequence that lead

Re: Network deadlock and priority inheritance.

2022-05-16 Thread Fotis Panagiotopoulos
Hi Nathan, you are right, changing this flag disables the priority inheritance, in contrast to what I thought initially. Thus, the bug manifests itself only when the semaphore has priority inheritance enabled. I would suspect an issue with the priority inheritance mechanism, and not network itse