apache / apache/nuttx

when i start nuttx (sim:nsh), it throw a signal which is SIGSEGV

Open
#12,086 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

i want to use cpp stl in nuttx program, so i set
```
140 CONFIG_HAVE_CXX=y
141 CONFIG_HAVE_CXXINITIALIZE=y
142 CONFIG_UCLIBCXX=y
143 CONFIG_LIBSUPCXX=y
144 CONFIG_CXX_STANDARD="gnu++17"
145 CONFIG_CXX_EXCEPTION=y
146 CONFIG_CXX_RTTI=y
```
in meanuconfig

when i start nuttx in gdb, it get me this message

![image](https://github.com/apache/nuttx/assets/98224466/26bf1d75-70e5-4c13-8a9f-af4cbadb4cce)

how should i do to solve it, thank you.

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure by starting NuttX with the sim:nsh entry point under GDB and the listed C++ configuration options. Begin with the SIGSEGV backtrace shown in the report and determine which C++ STL or initialization path triggers it; done means identifying a reproducible cause and documenting the configuration or code change that prevents the crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.