wangchdo commented on PR #3174: URL: https://github.com/apache/nuttx-apps/pull/3174#issuecomment-3268564953
> I did two quick tests on a sim:ostest: > > 1. Builds and works with no `CONFIG_SCHED_EVENTS`, but I guess nxevent is not tested here?: > > ``` > $ grep CONFIG_SCHED_EVENTS .config > $ ./nuttx > (..) > End of test memory usage: > VARIABLE BEFORE AFTER > ======== ======== ======== > arena 3effff8 3effff8 > ordblks 8 6 > mxordblk 3e43780 3e74f98 > uordblks 55ca8 88660 > fordblks 3eaa350 3e77998 > > user_main: scheduler lock test > sched_lock: Starting lowpri_thread at 97 > sched_lock: Set lowpri_thread priority to 97 > sched_lock: Starting highpri_thread at 98 > sched_lock: Set highpri_thread priority to 98 > sched_lock: Waiting... > sched_lock: PASSED No pre-emption occurred while scheduler was locked. > sched_lock: Starting lowpri_thread at 97 > sched_lock: Set lowpri_thread priority to 97 > sched_lock: Starting highpri_thread at 98 > sched_lock: Set highpri_thread priority to 98 > sched_lock: Waiting... > sched_lock: PASSED No pre-emption occurred while scheduler was locked. > sched_lock: Finished > > End of test memory usage: > VARIABLE BEFORE AFTER > ======== ======== ======== > arena 3effff8 3effff8 > ordblks 6 7 > mxordblk 3e74f98 3e95fa8 > uordblks 88660 55ca8 > fordblks 3e77998 3eaa350 > > Final memory usage: > VARIABLE BEFORE AFTER > ======== ======== ======== > arena 3effff8 3effff8 > ordblks 1 7 > mxordblk 3ebb1e8 3e95fa8 > uordblks 44e10 55ca8 > fordblks 3ebb1e8 3eaa350 > user_main: Exiting > ostest_main: Exiting with status 0 > ``` > > 2. Builds with `CONFIG_SCHED_EVENTS`, but seems to fail: > > ``` > End of test memory usage: > VARIABLE BEFORE AFTER > ======== ======== ======== > arena 3effff8 3effff8 > ordblks 8 6 > mxordblk 3e43780 3e74f98 > uordblks 55a48 88400 > fordblks 3eaa5b0 3e77bf8 > > user_main: scheduler lock test > sched_lock: Starting lowpri_thread at 97 > sched_lock: Set lowpri_thread priority to 97 > sched_lock: Starting highpri_thread at 98 > sched_lock: Set highpri_thread priority to 98 > sched_lock: Waiting... > sched_lock: PASSED No pre-emption occurred while scheduler was locked. > sched_lock: Starting lowpri_thread at 97 > sched_lock: Set lowpri_thread priority to 97 > sched_lock: Starting highpri_thread at 98 > sched_lock: Set highpri_thread priority to 98 > sched_lock: Waiting... > sched_lock: PASSED No pre-emption occurred while scheduler was locked. > sched_lock: Finished > > End of test memory usage: > VARIABLE BEFORE AFTER > ======== ======== ======== > arena 3effff8 3effff8 > ordblks 6 7 > mxordblk 3e74f98 3e95fa8 > uordblks 88400 55a48 > fordblks 3e77bf8 3eaa5b0 > > user_main: nxevent test > dump_assert_info: Current Version: NuttX 10.4.0 149a4ed99e Sep 8 2025 23:56:50 sim > dump_assert_info: Assertion failed : at file: event/event_wait.c:150 task: ostest process: ostest 0x40035110 > ostest_main: Exiting with status 256 > ``` > > Can anyone plase confirm? Are any updates on the nuttx part necessary? > > NUTTX: > > ``` > $ git log --format=oneline -5 > 149a4ed99eeaf38c70257cc79aca25e64c256f37 (HEAD -> master, origin/master, origin/HEAD) build(deps): bump actions/setup-python from 5 to 6 > e8a74c927da261359d2d3be78076dabd6d4bb2fa build(deps): bump actions/github-script from 7 to 8 > 40690a99513d4b58138a69fe2b98494617174a8e arch/sim/sim_canchar.c: fix CAN flags decoding for message > 77f427ae5ea073d41091977d9f26108cb22fcc93 boards/arm/imxrt: CMake added teensy-4.x board > 67eb2bfd2942b7d5ce7d036d2f68538fef4ce75e arch/sim/can: add loopback support for CAN character dev > ``` > > APPS: > > ``` > $ git log --format=oneline -5 > 70129a5195dc55d904e5438b5ecdb63983278af3 (HEAD, wangchdo/add_nxevent_clear_tests) testing/ostest: add nxevent_clear() test cases > 6bcb34798246ebbbd6f1b4a1cfd9c9995d3534e1 (wangchdo/master, origin/master, origin/HEAD) system/ntpc: update ntpc messages > ac08faa2b8b3b10709d3243e3bb0f2ff0cfd189f (master) codespell: add codespell configuration > 18823c8b3258eb3f7861766d3872b799895fd798 bluetooth/nimble: update to the latest master > 61e82925dc8dd8e9cb9544ef8b0b0f218a6d68c7 (origin/releases/12.11) examples/i2schar: Implement loopback mode check > ``` Hi @cederom yes, this is a bug not related to my added tests, this bug is fixed by my [PR 16990 ](https://github.com/apache/nuttx/pull/16990) -- 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]
