YWHKKX commented on PR #19704:
URL: https://github.com/apache/nuttx/pull/19704#issuecomment-5213294218
Thanks @linguini1.
Concrete test setup
-------------------
* Host: WSL2, Ubuntu 24.04, x86_64
* Toolchain: gcc 13 + gcc-multilib
* Repos: nuttx + nuttx-apps (side by side)
* Configure:
./tools/configure.sh -a ../nuttx-apps sim:<local-defconfig>
(local sim defconfig enables at least:
CONFIG_SIM_M32=y,
CONFIG_MM_KASAN=y,
CONFIG_MM_KASAN_INSTRUMENT_ALL=y,
CONFIG_PSEUDOFS_FILE=y,
and a small init-time test app)
* Build/run:
$ make -j$(nproc)
$ ./nuttx
The init-time test opens a pseudofile, seeks to a large offset,
then writes a small buffer.
Runtime logs
------------
Before this PR:
open: OK
lseek: OK
write: Segmentation fault
exit status: 139
After this PR:
open: OK
lseek: OK
write returned -1 errno=12
(-ENOMEM, no crash)
--
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]