patacongo commented on issue #2663:
URL: 
https://github.com/apache/incubator-nuttx/issues/2663#issuecomment-770832369


   > @xiaoxiang781216 I just noticed something similar when trying to create a 
kernel thread off of a call in `sim_bringup()` (I'm add usbhost support via 
libusb). I get a segfault because in `sched_dupfiles` `rtcb->group` is 0 which 
means parent and child are both invalid
   
   This is probably running on the IDLE thread which has no parent and the PID 
for the IDLE thread always zero.  Zero does not mean invalid anywhere except in 
the case of the parent PID here.
   
   The meaning PID of zero is overloaded elsewhere too:  In several POSIX APIs, 
PID == 0 means "this task."  But that is not an issue here.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to