Summary: | devel/qtcreator: segfaults when trying to parse a QML file | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | q5sys <jt> |
Component: | Individual Port(s) | Assignee: | freebsd-kde (group) <kde> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | adridg, marcelbonnet, raul.becker, tcberner, w.schwarzenfeld |
Priority: | --- | Flags: | tcberner:
maintainer-feedback+
|
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
URL: | https://bugreports.qt.io/browse/QTCREATORBUG-20183 |
Description
q5sys
2018-02-26 21:26:17 UTC
Hi there Yes, I can confirm this behaviour. mfg Tobias Interestingly enough in an attempt to dig into this more I manually built qtcreator with "qmake qtcreator.pro CONFIG+=debug && make && make install" and this crash no longer occurs. So the upstream bug reaction is "yeah, whatevs". I have never used qtcreator before, so the instructions to reproduce were slightly mystifying to me. Here's what I did: 1) run qtcreator from command line 2) click *projects* button, then *new project* 3) select *qt quick application - empty* and click *choose* 4) leave all project settings at default; click *next* four times and then *finish* 5) a window appears, briefly, and then it cores out Backtrace is basically the same as already reported: (gdb) bt #0 0x000000081c108d02 in QmlJS::Context::imports () from /usr/local/lib/qtcreator/libQmlJS.so.4 #1 0x000000081c108db0 in QmlJS::Context::lookupType () from /usr/local/lib/qtcreator/libQmlJS.so.4 #2 0x000000081c10930c in QmlJS::Context::lookupReference () from /usr/local/lib/qtcreator/libQmlJS.so.4 #3 0x000000081c094758 in QmlJS::PrototypeIterator::hasNext () A commit references this bug: Author: adridg Date: Fri Apr 13 11:56:51 UTC 2018 New revision: 467236 URL: https://svnweb.freebsd.org/changeset/ports/467236 Log: Massage devel/qtcreator to not crash on opening files. The patch describes itself as a hack. It is. PR: 226224 Reported by: jt@ixsystems.com Approved by: tcberner (mentor, implicit) Changes: head/devel/qtcreator/Makefile head/devel/qtcreator/files/ head/devel/qtcreator/files/patch-src_libs_qmljs_qmljscontext.cpp I didn't want to dig much deeper than qmljscontext, but I suspect there's an underlying problem with memory management. During debug-by-printf I found that there were weird values for *this ending up in Context::imports() -- for objects that were never allocated. Inserting this silly qDebug() stops that. qtcreator still hangs on exit, sometimes. I'm hoping, actually, that this goes away by magic with the next version of qtcreator, in spite of upstream's "meh" attitude. Just informing you that I tried to compile/build qtcreator 4.8 beta as a normal release version (no changes) and this bug has magically disappeared. QML(javascript) designer tool works without issues. (In reply to Raul Becker from comment #6) Thanks for following up on this. In this case I will close this now, and remove the patch with the next update. |