Skip to content

[BUG] sim:ostest receives SIGSEGV in kasan_mem_to_shadow when build with CMake #13302

Description

@Jasinsky

Description / Steps to reproduce the issue

Make based build passes ostest, CMake build does not.

cd <nuttx_os_root>
mkdir build && cd build
cmake .. -G Ninja -DBOARD_CONFIG=sim:ostest
ninja
gdb nuttx
gdb > start
gdb > c
Program received signal SIGSEGV, Segmentation fault.
0x0000555555556e71 in kasan_mem_to_shadow (ptr=0x7ffff7afffff, size=1, bit=<error reading variable: Cannot access memory at address 0x7fffff7feff8>) at /home/dan/priv/nuttx/nuttx/mm/kasan/kasan.c:107

On which OS does this issue occur?

[Linux]

What is the version of your OS?

6.8.0-40-generic #40~22.04.3-Ubuntu SMP

NuttX Version

da6ddea (master)

Issue Architecture

[simulator]

Issue Area

[Native port]

Verification

  • I have verified before submitting the report.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: simulatorIssues related to the SIMulatorArea: Native portNative port issuesOS: LinuxIssues related to Linux (building system, etc)Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions