[Qt-creator] bug: Creator crashes on pro file with an include generated by system()

Ilkka Laukkanen ilkka.laukkanen at sasken.com
Thu Feb 5 15:11:58 CET 2009


to, 2009-02-05 kello 10:13 +0200, Ilkka Laukkanen kirjoitti:
>   include($$system(pkg-config common-package --variable=common-pri))
> 
> With qmake, this works fine. However, Qt Creator gets stuck in a loop
> trying to read that project file. I've created a small test project that
> demonstrates this problem, it uses echo instead of pkg-config but the
> effect is the same. The project is attached.

Here's a patch that deftly tiptoes around the issue and prevents Creator
from trying to parse any project file that isn't a file or a symlink to
a file.




-- 
Best regards,

Ilkka Laukkanen
SW Engineer

Sasken Finland Oy
Hermiankatu 12 B
FI-33720 Tampere
Tel. +358 40 539 3984, fax. +358 3 318 6100
ilkka.laukkanen at sasken.com

www.sasken.com www.sasken.fi
SASKEN BUSINESS DISCLAIMER
-------------------------
This message may contain confidential, proprietary or legally privileged information. In 
case you are not the original intended Recipient of the message, you must not, directly or 
indirectly, use, Disclose, distribute, print, or copy any part of this message and you are 
requested to delete it and inform the sender. Any views expressed in this message are 
those of the individual sender unless otherwise stated. Nothing contained in this message 
shall be construed as an offer or acceptance of any offer by Sasken Communication 
Technologies Limited ("Sasken") unless sent with that express intent and with due 
authority of Sasken. Sasken has taken enough precautions to prevent the spread of 
viruses. However the company accepts no liability for any damage caused by any virus 
transmitted by this email
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-extra-checks-to-pro-file-parsing.patch
Type: text/x-patch
Size: 1143 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090205/178dc966/attachment.bin 


More information about the Qt-creator-old mailing list