MainframeReboot commented on issue #12356:
URL: https://github.com/apache/nuttx/issues/12356#issuecomment-2123800666

   > Hi @MainframeReboot: The RISC-V Exception looks interesting:
   > 
   > ```yaml
   > EXCEPTION: Instruction page fault. 
   > MCAUSE: 0x0C 
   > EPC: 0x00 
   > MTVAL: 0x00
   > Segmentation fault in PID 4: /bin/init
   > ```
   > 
   > EPC says that the NSH Shell is trying to execute the code at Address 0 and 
failing? This is very odd. It's possible that the Stack Size is too small (8KB):
   > 
   > ```yaml
   > binfmt_dumpmodule:                                                         
                                                   
   > stacksize: 8192
   > ```
   > 
   > Could you increase the Stack Size to 64KB? ("Default task_spawn Stack 
Size" and "Thread Local Storage")
   > 
   > https://lupyuen.github.io/articles/quickjs#nuttx-stack-is-full-of-quickjs
   > 
   > It's also possible that Full Linking of NSH Shell messed up the code 
addresses.
   > 
   > I wonder why NuttX doesn't show the full Crash Dump, it might show us the 
code that's trying to execute Address 0. Hmmm...
   
   Thanks for the suggestion, I will give this a try and let you know the 
result. One thing I am noticing right away is that `CONFIG_TLS_ALIGNED` is not 
enabled at all in this config so `CONFIG_TLS_LOG2_MAXSTACK` also does not 
exist. I will enable this and retry before attempting the other increases.


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