I cant reproduce it right now. But it reminds me of an issue, I once had.
Lets first clarify some assumptions:
1) this crash happens in your app?
2) It happens right when you start the app, press F9?
If so:
- The IDE debugger uses an internal breakpoint, right at the entry of the app. This is needed (or maybe was, with older gdb) to correctly initialize some stuff.
- Windows, upon hitting a breakpoint creates a thread in the debugged app
- The RTL reacts to the creation of the thread.
And here is the problem, the rtl in INITTHREAD, does some stuff for STDOUT. For that it needs the widestring manager.
But the thread is created, before the main thread had a chance to init the widestring manager. And hence INITTHREAD crashes.
If that is what happens in your case:
You can go to the debugger options (Tools > Options). In the property grid find the option "InternalStartBreak".
Change its value gdsbMain should be good.
In the rare case that your app loads a library that also exports a main symbol, this may cause issues (again may also depend on the gdb version). You would notice such problems as breakpoints - that were set before you pressed run - would not work. If they do, then all is fine.
----------------
If your issue is different, it will require a deeper look.