qmlscene crashed with SIGSEGV in QmlIR::QmlUnitGenerator::generate()

Bug #1337221 reported by James Hunt
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtdeclarative-opensource-src (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Running a project I hadn't touched in a while [1] caused the crash. However a basic "hello world" QML file [2] is fine.

[1] - https://github.com/jamesodhunt/qml-noughts-and-crosses
[2] - http://qt-project.org/doc/qt-5/qmlfirststeps.html

ProblemType: Crash
DistroRelease: Ubuntu 14.10
Package: qmlscene 5.3.0-3ubuntu6
ProcVersionSignature: Ubuntu 3.15.0-6.11-generic 3.15.0
Uname: Linux 3.15.0-6-generic x86_64
ApportVersion: 2.14.4-0ubuntu1
Architecture: amd64
CrashCounter: 1
CurrentDesktop: Unity
Date: Thu Jul 3 09:30:26 2014
ExecutablePath: /usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene
InstallationDate: Installed on 2014-04-11 (82 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Daily amd64 (20140409)
ProcCmdline: /usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene -I /home/username/src/qml/qml-noughts-and-crosses -I /usr/bin -I /usr/lib/i386-linux-gnu/qt5/qml /home/username/src/qml/qml-noughts-and-crosses/noughts-and-crosses.qml
SegvAnalysis:
 Segfault happened at: 0x7ff039273c89 <_ZN5QmlIR16QmlUnitGenerator8generateERNS_8DocumentE+41>: mov (%rax),%rax
 PC (0x7ff039273c89) ok
 source "(%rax)" (0x00000000) not located in a known VMA region (needed readable region)!
 destination "%rax" ok
 Stack memory exhausted (SP below stack segment)
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: qtdeclarative-opensource-src
StacktraceTop:
 QmlIR::QmlUnitGenerator::generate(QmlIR::Document&) () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
 ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
 ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
 ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
 ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
Title: qmlscene crashed with SIGSEGV in QmlIR::QmlUnitGenerator::generate()
UpgradeStatus: Upgraded to utopic on 2014-05-08 (55 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sbuild sudo

Revision history for this message
James Hunt (jamesodhunt) wrote :
information type: Private → Public
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 QmlIR::QmlUnitGenerator::generate (this=this@entry=0x7ff005ee6d50, output=...) at compiler/qqmlirbuilder.cpp:1515
 QQmlScriptBlob::dataReceived (this=0x7ff0001386d0, data=...) at qml/qqmltypeloader.cpp:2711
 QQmlDataLoader::setData (this=this@entry=0xf78270, blob=blob@entry=0x7ff0001386d0, d=...) at qml/qqmltypeloader.cpp:1198
 QQmlDataLoader::setData (this=this@entry=0xf78270, blob=blob@entry=0x7ff0001386d0, file=file@entry=0x7ff005ee6fd0) at qml/qqmltypeloader.cpp:1190
 QQmlDataLoader::loadThread (this=this@entry=0xf78270, blob=blob@entry=0x7ff0001386d0) at qml/qqmltypeloader.cpp:1068

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in qtdeclarative-opensource-src (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

I can confirm a crash trying to run qml Game.qml.

Changed in qtdeclarative-opensource-src (Ubuntu):
status: New → Confirmed
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

And also with Qt 5.3.1.

It would be nice if there would be a smaller test case, something to submit to upstream bug reporting tool at: https://bugreports.qt-project.org/

More specifically, if one could make something that doesn't require Ubuntu.Components but still produces the crash, since that may not necessarily be easily available for Qt project developers.

Changed in qtdeclarative-opensource-src (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for qtdeclarative-opensource-src (Ubuntu) because there has been no activity for 60 days.]

Changed in qtdeclarative-opensource-src (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Instead of expiring, this would be a useful bug to keep around since it has a test case. We'd just need a simpler test case to show to the upstream.

Confirmed happening with qtdeclarative-opensource-src 5.3.2-3ubuntu2 in vivid.

Changed in qtdeclarative-opensource-src (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

The game keeps on crashing on startup on Qt 5.4.1 too...

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Wow, works on Ubuntu 16.04 LTS on Qt 5.5.1, finally! :)

Changed in qtdeclarative-opensource-src (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.