DawnLiu66 commented on PR #21916:
URL: https://github.com/apache/nuttx/pull/21916#issuecomment-6980261627

   The `sim-01` and `risc-v-05` failures were caused by this PR.
   `ltp_interfaces_pthread_attr_setstacksize_4_1` and
   `ltp_interfaces_pthread_attr_setstack_6_1` compute
   `PTHREAD_STACK_MIN - sysconf(_SC_PAGE_SIZE)`. With the 4096 fallback this
   underflows on `citest` (`CONFIG_PTHREAD_STACK_MIN=2048`) and 
`posix_memalign()`
   fails with `ENOMEM`; reproduced locally on `sim:citest`.
   
   I dropped the `sysconf(_SC_PAGESIZE)` change and kept only the page-aligned
   anonymous allocation, which still matches `getpagesize()`. Both LTP cases 
pass
   locally on `sim:citest` now. The PR title and description are updated.
   


-- 
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]

Reply via email to