[Development] qt_message_fatal() in Linux

Thiago Macieira thiago.macieira at intel.com
Tue Nov 21 22:42:50 CET 2017


On terça-feira, 21 de novembro de 2017 13:42:25 PST Thiago Macieira wrote:
> On terça-feira, 21 de novembro de 2017 12:54:47 PST andrea via Development
> 
> wrote:
> > but in doing so I realised that in Linux the function
> > 
> > static void qt_message_fatal(QtMsgType, const QMessageLogContext &context,
> > const QString &message)
> > 
> > in qlogging.cpp:1686 is just a call to
> > 
> > std::abort().
> > 
> > In VisualStudio in Debug it prints the error message.
> > 
> > Since we are about to call abort, why not just print the message to stderr
> > in all cases?
> 
> What message?
> 
> > It makes a big difference if the crash says something about the reason
> > behind it. Especially for people without a debugger.


-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list