TimJTi commented on issue #12629: URL: https://github.com/apache/nuttx/issues/12629#issuecomment-2214235470
I am pretty sure this is the correct backtrace (call stack): group_initialize@0x20019554 (/home/tim/designs/nuttx/nuttx/sched/group/group_create.c:124) ``` group_initialize@0x20019554 (/home/tim/designs/nuttx/nuttx/sched/group/group_create.c:124) nxtask_init@0x20016a90 (/home/tim/designs/nuttx/nuttx/sched/task/task_init.c:114) nxtask_spawn_create@0x20017a70 (/home/tim/designs/nuttx/nuttx/sched/task/task_spawn.c:106) nxtask_spawn_exec@0x20017be0 (/home/tim/designs/nuttx/nuttx/sched/task/task_spawn.c:222) task_spawn@0x20017c8c (/home/tim/designs/nuttx/nuttx/sched/task/task_spawn.c:319) nx_start_application@0x20012ebc (/home/tim/designs/nuttx/nuttx/sched/init/nx_bringup.c:348) nx_start_task@0x20012f20 (/home/tim/designs/nuttx/nuttx/sched/init/nx_bringup.c:403) nxtask_start@0x20017900 (/home/tim/designs/nuttx/nuttx/sched/task/task_start.c:109) ??@0x00000000 (Unknown Source:0) ``` In group_initialize it is not seen as a kernel thread, so: `group = &tcb->group;` and the group is set as 0. I just tried changing the config to start nsh rather than my app directly: if I then start my app from nsh it behaves, with getpid() still returning a pid of 0 (i.e. it is not the pid number that's the issue but something else probably) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
