[Qt-creator] To all git master users: clean your plugins directory [Was: Re: seg fault on startup]
Daniel Molkentin
daniel.molkentin at nokia.com
Fri Jan 22 14:42:00 CET 2010
Hi,
this is caused by a recent renaming of Plugin: the JS and the Qml Editor
merged into one. make sure you remove the old QmlEditor.pluginspec and
JSEditor.pluginspec files from lib/qtcreator/plugins/Nokia.
If this is still not enought and you are using git, git clean -dxf will
make sure all non-checked-in files are gone (warning, that includes own
local files and you will require a rebuild. The crash inside Qt is
caused by subsequent binary incompatible changes that these stale
plugins do not know about.
Cheers,
Daniel
On 1/22/2010 8:39 AM, ext Brian McGillion wrote:
> Hi,
>
> The segmentation fault is encountered when starting QtCreator but looks
> like it originates from the Qt lib so I mailed both lists. I have built
> the latest Creator from git against the Qt 4.6.1 lib that was released
> the other day. My system is x86 Ubuntu 9.10. Any help on this would be
> great.
>
> Brian
>
>
> GNU gdb 6.8-debian
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show
> copying"
> and "show warranty" for details.
> This GDB was configured as "i486-linux-gnu"...
> (gdb) run
> Starting program: /bin/qtcreator.bin
> [Thread debugging using libthread_db enabled]
> [New Thread 0xb779ab50 (LWP 10039)]
>
> ** (<unknown>:10039): CRITICAL **: atk_object_set_name: assertion
> `name != NULL' failed
> [New Thread 0xb7588b70 (LWP 10042)]
> [Thread 0xb7588b70 (LWP 10042) exited]
> [New Thread 0xb7588b70 (LWP 10044)]
> [New Thread 0xb5506b70 (LWP 10045)]
> [New Thread 0xb4bd5b70 (LWP 10046)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb779ab50 (LWP 10039)]
> 0x0804d0c2 in QBasicAtomicInt::deref (this=0x1a59e5c)
> at /usr/local/Trolltech/Qt-4.6.1/include/QtCore/qatomic_i386.h:132
> 132 : "memory");
> (gdb) bt
> #0 0x0804d0c2 in QBasicAtomicInt::deref (this=0x1a59e5c)
> at /usr/local/Trolltech/Qt-4.6.1/include/QtCore/qatomic_i386.h:132
> #1 0x01a4d1e9 in QHash<QString, Core::MimeMapEntry>::detach_helper (
> this=0x1ad5948)
> at /usr/local/Trolltech/Qt-4.6.1/include/QtCore/qhash.h:582
> #2 0x01a4c54f in QHash<QString, Core::MimeMapEntry>::detach
> (this=0x1ad5948)
> at /usr/local/Trolltech/Qt-4.6.1/include/QtCore/qhash.h:299
> #3 0x01a4b397 in QHash<QString, Core::MimeMapEntry>::insert
> (this=0x1ad5948,
> akey=@0xbfebca4c, avalue=@0xbfebca10)
> at /usr/local/Trolltech/Qt-4.6.1/include/QtCore/qhash.h:749
> #4 0x01a48694 in Core::MimeDatabasePrivate::addMimeType
> (this=0x1ad5948, mt=
> {m_d = {d = 0x9d89610}})
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:919
> #5 0x01a4a249 in Core::Internal::MimeTypeParser::process
> (this=0xbfebcc54,
> t=@0xbfebcba4)
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:877
> #6 0x01a47da6 in Core::Internal::BaseMimeTypeParser::parse
> (this=0xbfebcc54,
> dev=0xbfebcc98, fileName=@0xbfebcdc0, errorMessage=0xbfebce20)
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:760
> #7 0x01a482ac in Core::MimeDatabasePrivate::addMimeTypes
> (this=0x1ad5948,
> device=0xbfebcc98, fileName=@0xbfebcdc0, errorMessage=0xbfebce20)
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:886
> #8 0x01a48436 in Core::MimeDatabasePrivate::addMimeTypes
> (this=0x1ad5948,
> fileName=@0xbfebcdc0, errorMessage=0xbfebce20)
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:896
> #9 0x01a49663 in Core::MimeDatabase::addMimeTypes (this=0x98d2e78,
> fileName=@0xbfebcdc0, errorMessage=0xbfebce20)
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:1136
> #10 0x01e77c18 in QmlEditor::Internal::QmlEditorPlugin::initialize (
> this=0x99bd270, error_message=0xbfebce20)
> at ../../../../src/plugins/qmleditor/qmleditorplugin.cpp:90
> #11 0x0075d151 in
> ExtensionSystem::Internal::PluginSpecPrivate::initializePlugin
> (this=0x983eca0)
> at ../../../../src/libs/extensionsystem/pluginspec.cpp:829
> #12 0x007556dc in
> ExtensionSystem::Internal::PluginManagerPrivate::loadPlugin (
> this=0x982ce60, spec=0x9834270,
> destState=ExtensionSystem::PluginSpec::Initialized)
> at ../../../../src/libs/extensionsystem/pluginmanager.cpp:762
> #13 0x007546b0 in
> ExtensionSystem::Internal::PluginManagerPrivate::loadPlugins
> (this=0x982ce60)
> at ../../../../src/libs/extensionsystem/pluginmanager.cpp:667
> #14 0x00752120 in ExtensionSystem::PluginManager::loadPlugins
> (this=0xbfebcfec)
> at ../../../../src/libs/extensionsystem/pluginmanager.cpp:246
> #15 0x08051259 in main (argc=1, argv=0xbfebd2d4)
> at ../../../src/app/main.cpp:280
> (gdb) info frame 0
> Stack frame at 0xbfebc960:
> eip = 0x804d0c2 in QBasicAtomicInt::deref()
> (/usr/local/Trolltech/Qt-4.6.1/include/QtCore/qatomic_i386.h:132);
> saved eip 0x1a4d1e9
> called by frame at 0xbfebc9a0
> source language c++.
> Arglist at 0xbfebc958, args: this=0x1a59e5c
> Locals at 0xbfebc958, Previous frame's sp is 0xbfebc960
> Saved registers:
> ebp at 0xbfebc958, eip at 0xbfebc95c
>
> (gdb) thread apply all bt
>
> Thread 5 (Thread 0xb4bd5b70 (LWP 10046)):
> #0 0x00d9e832 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
> #1 0x00119e15 in pthread_cond_wait@@GLIBC_2.3.2 ()
> from /lib/tls/i686/cmov/libpthread.so.0
> #2 0xb5800d87 in ?? ()
> from /usr/local/Trolltech/Qt-4.6.1/lib/libQtWebKit.so.4
> #3 0xb5800dd1 in ?? ()
> from /usr/local/Trolltech/Qt-4.6.1/lib/libQtWebKit.so.4
> #4 0x0011580e in start_thread (arg=0xb4bd5b70) at pthread_create.c:300
> #5 0x00a6a8de in clone ()
> at ../sysdeps/unix/sysv/linux/i386/clone.S:130
>
> Thread 4 (Thread 0xb5506b70 (LWP 10045)):
> #0 0x00d9e832 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
> #1 0x00119e15 in pthread_cond_wait@@GLIBC_2.3.2 ()
> from /lib/tls/i686/cmov/libpthread.so.0
> #2 0x02142457 in QTWTF::TCMalloc_PageHeap::scavengerThread
> (this=0x221a3a0)
> at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
> #3 0x021424a1 in QTWTF::TCMalloc_PageHeap::runScavengerThread (
> context=0x221a3a0)
> at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
> #4 0x0011580e in start_thread (arg=0xb5506b70) at pthread_create.c:300
> #5 0x00a6a8de in clone ()
> at ../sysdeps/unix/sysv/linux/i386/clone.S:130
> Current language: auto; currently c
>
> Thread 3 (Thread 0xb7588b70 (LWP 10044)):
> #0 0x00d9e832 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
> #1 0x00a34a76 in nanosleep () from /lib/tls/i686/cmov/libc.so.6
> #2 0x00a643cc in usleep (useconds=1000)
> at ../sysdeps/unix/sysv/linux/usleep.c:33
> #3 0x027f52c8 in ne7ssh::selectThread (initData=0x2d9d68c)
>
> at /home/brian/code/ccpp/qt-creator/src/libs/3rdparty/net7ssh/src/ne7ssh.cpp:268
> #4 0x0011580e in start_thread (arg=0xb7588b70) at pthread_create.c:300
> #5 0x00a6a8de in clone ()
> at ../sysdeps/unix/sysv/linux/i386/clone.S:130
>
> Thread 1 (Thread 0xb779ab50 (LWP 10039)):
> #0 0x0804d0c2 in QBasicAtomicInt::deref (this=0x1a59e5c)
> at /usr/local/Trolltech/Qt-4.6.1/include/QtCore/qatomic_i386.h:132
> #1 0x01a4d1e9 in QHash<QString, Core::MimeMapEntry>::detach_helper (
> this=0x1ad5948)
> at /usr/local/Trolltech/Qt-4.6.1/include/QtCore/qhash.h:582
> #2 0x01a4c54f in QHash<QString, Core::MimeMapEntry>::detach
> (this=0x1ad5948)
> at /usr/local/Trolltech/Qt-4.6.1/include/QtCore/qhash.h:299
> #3 0x01a4b397 in QHash<QString, Core::MimeMapEntry>::insert
> (this=0x1ad5948,
> akey=@0xbfebca4c, avalue=@0xbfebca10)
> at /usr/local/Trolltech/Qt-4.6.1/include/QtCore/qhash.h:749
> #4 0x01a48694 in Core::MimeDatabasePrivate::addMimeType
> (this=0x1ad5948, mt=
> {m_d = {d = 0x9d89610}})
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:919
> #5 0x01a4a249 in Core::Internal::MimeTypeParser::process
> (this=0xbfebcc54,
> t=@0xbfebcba4)
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:877
> #6 0x01a47da6 in Core::Internal::BaseMimeTypeParser::parse
> (this=0xbfebcc54,
> dev=0xbfebcc98, fileName=@0xbfebcdc0, errorMessage=0xbfebce20)
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:760
> #7 0x01a482ac in Core::MimeDatabasePrivate::addMimeTypes
> (this=0x1ad5948,
> device=0xbfebcc98, fileName=@0xbfebcdc0, errorMessage=0xbfebce20)
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:886
> ---Type<return> to continue, or q<return> to quit---
> #8 0x01a48436 in Core::MimeDatabasePrivate::addMimeTypes
> (this=0x1ad5948,
> fileName=@0xbfebcdc0, errorMessage=0xbfebce20)
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:896
> #9 0x01a49663 in Core::MimeDatabase::addMimeTypes (this=0x98d2e78,
> fileName=@0xbfebcdc0, errorMessage=0xbfebce20)
> at ../../../../src/plugins/coreplugin/mimedatabase.cpp:1136
> #10 0x01e77c18 in QmlEditor::Internal::QmlEditorPlugin::initialize (
> this=0x99bd270, error_message=0xbfebce20)
> at ../../../../src/plugins/qmleditor/qmleditorplugin.cpp:90
> #11 0x0075d151 in
> ExtensionSystem::Internal::PluginSpecPrivate::initializePlugin
> (this=0x983eca0)
> at ../../../../src/libs/extensionsystem/pluginspec.cpp:829
> #12 0x007556dc in
> ExtensionSystem::Internal::PluginManagerPrivate::loadPlugin (
> this=0x982ce60, spec=0x9834270,
> destState=ExtensionSystem::PluginSpec::Initialized)
> at ../../../../src/libs/extensionsystem/pluginmanager.cpp:762
> #13 0x007546b0 in
> ExtensionSystem::Internal::PluginManagerPrivate::loadPlugins
> (this=0x982ce60)
> at ../../../../src/libs/extensionsystem/pluginmanager.cpp:667
> #14 0x00752120 in ExtensionSystem::PluginManager::loadPlugins
> (this=0xbfebcfec)
> at ../../../../src/libs/extensionsystem/pluginmanager.cpp:246
> #15 0x08051259 in main (argc=1, argv=0xbfebd2d4)
> at ../../../src/app/main.cpp:280
> Current language: auto; currently c++
>
--
Daniel Molkentin, Software Engineer,
Nokia, Qt Development Frameworks
website: http://qt.nokia.com
Rudower Chaussee 13, DE-12489 Berlin
Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
More information about the Qt-creator-old
mailing list