anchao opened a new pull request, #2990:
URL: https://github.com/apache/nuttx-apps/pull/2990

   ## Summary
   
   nshlib/builtin: check background task before restore the signal
   
   fix crash if:
   CONFIG_SCHED_WAITPID=n
   CONFIG_SCHED_CHILD_STATUS=y
   
   The old signal will be restored only when sigaction is saved to avoid 
invaild access.
   
   Signed-off-by: chao an <anchao.arc...@bytedance.com>
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   1. build qemu-armv7a/rpserver_ivshmem
   cmake -B build -DBOARD_CONFIG=qemu-armv7a/rpserver_ivshmem -GNinja
   2. enable CONFIG_SCHED_CHILD_STATUS=y
   cmake --build build -t menuconfig
   3. start qemu
   qemu-system-arm -cpu cortex-a7 -nographic -machine virt,highmem=off  -kernel 
build/nuttx -nographic
   4. exec hello and system will hangup
   


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to