masayuki2009 commented on PR #10380:
URL: https://github.com/apache/nuttx/pull/10380#issuecomment-1720562650
>Instead, I test in sim:elf with CONFIG_DEBUG_ASSERTIONS=y, It works well.
>
>Can you show more details to help reproduce in sim:elf?
```
$ git diff
diff --git a/boards/sim/sim/sim/configs/elf/defconfig
b/boards/sim/sim/sim/configs/elf/defconfig
index 999b22a726..6916613390 100644
--- a/boards/sim/sim/sim/configs/elf/defconfig
+++ b/boards/sim/sim/sim/configs/elf/defconfig
@@ -17,6 +17,8 @@ CONFIG_BOARDCTL_ROMDISK=y
CONFIG_BOARD_LOOPSPERMSEC=0
CONFIG_BOOT_RUNFROMEXTSRAM=y
CONFIG_BUILTIN=y
+CONFIG_DEBUG_ASSERTIONS=y
+CONFIG_DEBUG_FEATURES=y
CONFIG_DEBUG_SYMBOLS=y
CONFIG_DEV_LOOP=y
CONFIG_DEV_ZERO=y
@@ -39,6 +41,7 @@ CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_LIBC_ENVPATH=y
CONFIG_LIBC_MAX_EXITFUNS=1
CONFIG_LIBC_STRERROR=y
+CONFIG_NDEBUG=y
CONFIG_NSH_ARCHINIT=y
CONFIG_NSH_BUILTIN_APPS=y
CONFIG_NSH_FILE_APPS=y
...
$ ./nuttx
NuttShell (NSH) NuttX-12.0.0
MOTD: username=admin password=Administrator
nsh> elf
Initial memory usage: 1332408
elf_main: Registering romdisk at /dev/ram6
Memory Usage after romdisk_register:
Before: 1332408 After: 1332536 Change: 128
elf_main: Mounting ROMFS filesystem at target=/mnt/romfs with
source=/dev/ram6
Memory Usage after mount:
Before: 1332536 After: 1333272 Change: 736
testheader:
****************************************************************************
* Executing errno
****************************************************************************
Memory Usage after exec:
Before: 1333272 After: 1403160 Change: 69888
elf_main: Wait a bit for test completion
Hello, World on stderr
We failed to open "aflav-sautga-ay!" errno is 2
Hello, World on stdout
nsh>
Memory Usage after program execution:
Before: 1403160 After: 1401848 Change: -1312
testheader:
****************************************************************************
* Executing hello
****************************************************************************
_assert: Current Version: NuttX 12.0.0 0beba027e7-dirty Sep 15 2023
13:21:27 sim
_assert: Assertion failed : at file: group/group_exitinfo.c:85 task: elf
0x55732de8e247
Getting ready to say "Hello, world"
Hello, world!
It has been said.
...
```
--
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]