Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-13713

Crash in ProfileEvaluator::expandEnvVars

    XMLWordPrintable

Details

    • Bug
    • Resolution: Moved
    • P1: Critical
    • None
    • Qt Creator 3.4.0-beta1
    • None

    Description

      When loading a certain session containing two .pro files, QtC master (e822d5705f4a) crashes for me:

      0	findChar	qstring.cpp	675	0x5a28f400	
      1	QString::indexOf	qstring.cpp	2953	0x5a28fc9c	
      2	QMakeGlobals::expandEnvVars	qmakeglobals.cpp	277	0x594d5ab8	
      3	ProFileEvaluator::values	profileevaluator.cpp	79	0x594eaf0c	
      4	QmakeProjectManager::QmakeProFileNode::evaluate	qmakenodes.cpp	1897	0x589b34ae	
      5	QmakeProjectManager::QmakeProFileNode::asyncEvaluate	qmakenodes.cpp	2001	0x589aebd3	
      6	QtConcurrent::StoredInterfaceMemberFunctionCall1<QmakeProjectManager::Internal::EvalResult *,void (__thiscall QmakeProjectManager::QmakeProFileNode::*)(QFutureInterface<QmakeProjectManager::Internal::EvalResult *> &,QmakeProjectManager::In	runextensions.h	140	0x589ba994	
      7	QThreadPoolThread::run	Qt5Core		0x5a236d15	
      8	QThreadPrivate::start	qthread_win.cpp	346	0x5a239534	
      9	_beginthreadex	MSVCR120		0x6571c01d	
      10	_endthreadex	MSVCR120		0x6571c001	
      11	BaseThreadInitThunk	KERNEL32		0x7768338a	
      12	__RtlUserThreadStart	ntdll_77d90000		0x77dc9f72	
      13	_RtlUserThreadStart	ntdll_77d90000		0x77dc9f45	
      

      It seems the QString generated by ProString::toQString(), and then passed into expandEnvVars() is corrupted.

      This is an MSVC 2013 release build with forced debug information.

      Attachments

        Issue Links

          Activity

            People

              jbornema Joerg Bornemann
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: