That is an "empty form", exactly the way you get it, if you do project -> new project -> application? (and run as it is / empty)
If yes, see below.
If NO: provide an example (and ignore below)
And only if run in the IDE? Assuming that means under the debugger...
Though you might simple not notice the sigsegv, outside the debugger should it happen while closing the app.
Under Windows:
I have seen such errors, caused by 3rd party products (any other software on your computer) which registers shell-handlers (windows explorer - handler for certain file types), or install system wide dll (like antivirus may do). Those dll may behave different under gdb, and they may be loaded with your app, even if you do not use them.
That leads to the question: Which OS? (and 32/64bit?)
Exact version of Lazarus, FPC and gdb?
If it is only under the debugger, create a log:
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session