program stops at "QAüülication a(argc, *argv[])
Unsolved
General and Desktop
-
Rebooted PC (Debian)
Updated Qt
Created program skeleton by "Create project"
Started compilation: no errors
Started Project & Debug -> program stops at "QApplication a(argc, *argv[])
Older programs which ran properly, before, also stop there.
I am perplexed and clueless??? -
-
@rhnulm said in program stops at "QAüülication a(argc, *argv[]):
Started Project & Debug -> program stops at "QApplication a(argc, *argv[])
What exactly does "stops at" mean, what do you see?
Does this also happen if run directly in
gdb
without Creator?And how does it behave if run directly, no debugger/IDE?
Also reboot after updating Qt :)
-
I have
- a brandnew installation of debian 11
- a brandnew installation of qt creator (qt 6.5), nothing else installed, so far, exept the Qt preconditions
- a brandnew widget project (using "create project")
- I do not pass any cmdline arguments (exept the command itself arg[0])
- I start the program using the debugger
- still it stops at the "QApplication a(argc, *argv[]) with the abort signal SIGABRT
-
New behavior:
after re-booting- started QtCreator
- clicked create project
- selected Qt Widget Application
- clicked 'continue' 5 times
-selected 'Desktop Qt 6.5.0 GCC 64bit' - clicked 'finish' => Skeleton was created
- clicked 'Start Project & Debug'
Program stopped 'SIGABRT' but now in "qglobal.cpp" here (see end of function):
void qAbort()
{
#ifdef Q_OS_WIN
// std::abort() in the MSVC runtime will call _exit(3) if the abort
// behavior is _WRITE_ABORT_MSG - see also _set_abort_behavior(). This is
// the default for a debug-mode build of the runtime. Worse, MinGW's
// std::abort() implementation (in msvcrt.dll) is basically a call to
// _exit(3) too. Unfortunately, _exit() and _Exit() do run the static
// destructors of objects in DLLs, a violation of the C++ standard (see
// [support.start.term]). So we bypass std::abort() and directly
// terminate the application.
if defined(Q_CC_MSVC)
if (IsProcessorFeaturePresent(PF_FASTFAIL_AVAILABLE)) __fastfail(FAST_FAIL_FATAL_APP_EXIT);
else
RaiseFailFastException(nullptr, nullptr, 0);
endif
// Fallback TerminateProcess(GetCurrentProcess(), STATUS_FATAL_APP_EXIT); // Tell the compiler the application has stopped. Q_UNREACHABLE_IMPL();
#else // !Q_OS_WIN
==> std::abort(); <==
#endif
}