yamt commented on pull request #5283:
URL: https://github.com/apache/incubator-nuttx/pull/5283#issuecomment-1018170293
FYI, sim:cxxtest with a few debug options enabled fails like the following.
```
nuttx was compiled with optimization - stepping may behave oddly; variables
may not be available.
Process 85832 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=1, address=0xffffffffffffffe8)
frame #0: 0x0000000100011fc6 nuttx`std::ios_base::ios_base() [inlined]
std::ios_base::Init::Init(this=<unavailable>) at ios.cpp:96:4 [opt]
93 #ifdef __UCLIBCXX_SUPPORT_CERR__
94 _cerr_filebuf.fp = stderr;
95 _cerr_filebuf.openedFor = ios_base::out;
-> 96 cerr.mformat |= ios_base::unitbuf;
97 #endif
98 #ifdef __UCLIBCXX_SUPPORT_CLOG__
99 _clog_filebuf.fp = stderr;
Target 0: (nuttx) stopped.
(lldb)
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=1, address=0xffffffffffffffe8)
* frame #0: 0x0000000100011fc6 nuttx`std::ios_base::ios_base() [inlined]
std::ios_base::Init::Init(this=<unavailable>) at ios.cpp:96:4 [opt]
frame #1: 0x0000000100011f78 nuttx`std::ios_base::ios_base() [inlined]
std::ios_base::Init::Init(this=<unavailable>) at ios.cpp:87:36 [opt]
frame #2: 0x0000000100011f78
nuttx`std::ios_base::ios_base(this=<unavailable>) at ios:158:5 [opt]
frame #3: 0x000000010001d96c nuttx`_GLOBAL__sub_I_ios.cpp [inlined]
std::basic_ios<char, std::char_traits<char> >::basic_ios(this=<unavailable>,
sb=0x0000000100024fc0) at ios:345:24 [opt]
frame #4: 0x000000010001d960 nuttx`_GLOBAL__sub_I_ios.cpp [inlined]
std::basic_ostream<char, std::char_traits<char>
>::basic_ostream(this=<unavailable>, sb=0x0000000100024fc0) at ostream:57:6
[opt]
frame #5: 0x000000010001d960 nuttx`_GLOBAL__sub_I_ios.cpp [inlined]
__cxx_global_var_init.4 at ios.cpp:62:22 [opt]
frame #6: 0x000000010001d960 nuttx`_GLOBAL__sub_I_ios.cpp at ios.cpp:0
[opt]
frame #7: 0x00000001000032e5 nuttx`macho_call_saved_init_funcs + 101
frame #8: 0x00000001000099f2 nuttx`cxx_initialize at
cxx_initialize_macho.c:56:7 [opt]
frame #9: 0x00000001000099ce
nuttx`nxtask_startup(entrypt=(nuttx`::cxxtest_main(int, char **) at
cxxtest_main.cxx:218), argc=1, argv=0x0000000101001540) at task_startup.c:64:3
[opt]
frame #10: 0x00000001000076e6 nuttx`nxtask_start at task_start.c:130:7
[opt]
(lldb)
(lldb) p cerr
warning: `this' is not accessible (substituting 0)
(std::ostream) $0 = {
std::basic_ios<char, std::char_traits<char> > = {
std::ios_base = (mLocale = std::locale @ 0x0000600001525960, mformat =
0, mstate = '\0', mmode = '\0', mdir = '\0', mprecision = 0, mwidth = 0, mInit
= std::ios_base::Init @ 0x0000600001525978)
fill_char = '\0'
mtied = nullptr
mstreambuf = nullptr
throw_mask = '\0'
}
}
(lldb)
```
--
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]