chirping78 commented on PR #15985: URL: https://github.com/apache/nuttx/pull/15985#issuecomment-2732248819
@sdc-g I have found a way to reproduce. Here it is: 1. With latest master code, change `apps/examples/hello/hello_main.c`, replace it with the progrom in your PR summary 2. change `esp32s3-devkit:tickless` config, enable `CONFIG_EXAMPLES_HELLO` 3. change `arch/xtensa/src/esp32s3/esp32s3_tickless.c` to make `esp32s3_setup_irq` request level2 interrupt. There is a patch [here](https://github.com/apache/nuttx/pull/14672#issuecomment-2558786070) 4. change `arch/xtensa/src/common/xtensa_vectors.S`, comment out the `break 1, 4` in `_double_exception_vector` That's all. With these changes, the system will have a level2 interrupt, and new thread is created frequently. Now build `esp32s3-devkit:tickless` config and flash the board. Run hello will trigger this error: ```` ******** Test Start ******** xtensa_panic: Unhandled Exception 2 task: hello dump_assert_info: Current Version: NuttX 12.8.0 b1bab5c7837-dirty Mar 18 2025 17:01:37 xtensa dump_assert_info: Assertion failed panic: at file: :0 task: hello process: hello 0x42022d5c up_dump_register: PC: 4202b27c PS: 00050030 ```` The PC here is `pthread_start`, this is what I said ***If window rotation related instruction is executed, error will arise*** Revert your this PR, then everything is OK. ```` nsh> hello Start TimeSliceThread ******** Test Start ******** Test Thread Test Thread Test Thread Test Thread Test Thread ```` You can revert and apply your this PR back and forth to see the effect, until you are convinced your this PR is harmful. -- 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