Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shikoumuzi opened this issue Apr 7, 2024 · 3 comments
Open

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

shikoumuzi opened this issue Apr 7, 2024 · 3 comments

Comments

@shikoumuzi
Copy link

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

how should i do to solve it, thank you.

@acassis
Copy link
Contributor

acassis commented Apr 8, 2024

@masayuki2009 @xiaoxiang781216 any idea?

@xiaoxiang781216
Copy link
Contributor

please try the stock sim:libcxxtest first.

@shikoumuzi
Copy link
Author

please try the stock sim:libcxxtest first.

i did that, but when i use 'make distclean' it still going to have this problem.
However, a while ago, I compared the configuration of cxxtest and nsh and found that need to turn on an optimization level at least -O1 in menuconfig, and then it work properly.
thank you for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants