importExtension("qt.gui") crashes

Bug #681758 reported by Erno Kuusela on 2010-11-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtscriptgenerator (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: qtscriptgenerator

I got a crash in a third party app trying to use qt.gui from qtscript. it also happens with a minimal test case:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7a9797a in ?? () from /usr/lib/libQtScript.so.4
(gdb) where
#0 0x00007ffff7a9797a in ?? () from /usr/lib/libQtScript.so.4
#1 0x00007ffff7b3170c in ?? () from /usr/lib/libQtScript.so.4
#2 0x00007ffff7b14237 in ?? () from /usr/lib/libQtScript.so.4
#3 0x00007ffff7a66cfb in ?? () from /usr/lib/libQtScript.so.4
#4 0x00007ffff7a67b5c in ?? () from /usr/lib/libQtScript.so.4
#5 0x00007ffff7b1240d in QScriptEngine::newFunction(QScriptValue (*)(QScriptContext*, QScriptEngine*), int) () from /usr/lib/libQtScript.so.4
#6 0x00007fffe6c1351f in qtscript_create_QRadialGradient_class(QScriptEngine*)
    () from /usr/lib/qt4/plugins/script/libqtscript_gui.so.1.0.0
#7 0x00007fffe6a170b8 in com_trolltech_qt_gui_ScriptPlugin::initialize(QString const&, QScriptEngine*) ()
   from /usr/lib/qt4/plugins/script/libqtscript_gui.so.1.0.0
#8 0x00007ffff7b1b303 in QScriptEngine::importExtension(QString const&) ()
   from /usr/lib/libQtScript.so.4
#9 0x0000000000400ae6 in main (argc=1, argv=0x7fffffffe388)
    at qtscripttest.cpp:8

test case source:

// compile: g++ -g -I/usr/include/qt4 -I/usr/include/qt4/Qt{Script,Gui} -o qtscripttest qtscripttest.cpp -lQt{Script,Gui}

#include <QtScript>
#include <QApplication>

int main(int argc, char **argv) {
    QApplication app(argc, argv);
    QScriptEngine qse;
    qse.importExtension("qt.gui");
    return 0;
}

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libqtscript4-gui 0.1.0-3build1
ProcVersionSignature: Ubuntu 2.6.32-25.44-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Nov 26 13:31:30 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: qtscriptgenerator

Erno Kuusela (erno-iki) wrote :
Erno Kuusela (erno-iki) wrote :

Looks like it works in Maverick

Erno Kuusela (erno-iki) wrote :

Previous maverick test was on a i386 vm, but now that I upgraded on amd64 I still get the same crash with the
test case.

tags: added: maverick
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers