Bug 289729 - krita is incompatible with the latest version of llvm on opensuse
Summary: krita is incompatible with the latest version of llvm on opensuse
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-24 11:12 UTC by Halla Rempt
Modified: 2012-02-11 10:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Halla Rempt 2011-12-24 11:12:12 UTC
Application: krita (2.4 Beta 5)
KDE Platform Version: 4.7.2 (4.7.2) "release 5"
Qt Version: 4.7.4
Operating System: Linux 3.1.0-1.2-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
OpenSUSE packages llvm 3.0, which is supported by the latest hg version of opengtl. However, running Krita with that version of opengtl causes the attached crashy.

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
[KCrash Handler]
#6  0x00007fd5a3563948 in GTLCore::VirtualMachine::registerModule (this=0xbea7f0, mp=0xbae980) at /home/boud/kde/src/opengtl/OpenGTL/GTLCore/VirtualMachine_p.cpp:116
#7  0x00007fd5a19660b0 in OpenCTL::Module::compile (this=0xbae7a0) at /home/boud/kde/src/opengtl/OpenCTL/OpenCTL/Module.cpp:159
#8  0x00007fd5a1978a41 in OpenCTL::Compiler::importModule (this=0x7fff4f5350d0, name=...) at /home/boud/kde/src/opengtl/OpenCTL/OpenCTL/compiler/Compiler.cpp:228
#9  0x00007fd5a1978009 in OpenCTL::Compiler::compile (this=0x7fff4f5350d0, _isStandardLibrary=false, sourceCode=..., moduleName=..., moduleData=0xba79f0, _module=0xba7930) at /home/boud/kde/src/opengtl/OpenCTL/OpenCTL/compiler/Compiler.cpp:171
#10 0x00007fd5a1966052 in OpenCTL::Module::compile (this=0xb97a70) at /home/boud/kde/src/opengtl/OpenCTL/OpenCTL/Module.cpp:152
#11 0x00007fd5a1bb1638 in KoCtlColorProfile::Private::loadFromSource (this=0xb7ee90, self=0xb961f0) at /home/boud/kde/src/calligra/krita/plugins/colorspaces/ctlcs/KoCtlColorProfile.cpp:330
#12 0x00007fd5a1bb1d09 in KoCtlColorProfile::load (this=0xb961f0) at /home/boud/kde/src/calligra/krita/plugins/colorspaces/ctlcs/KoCtlColorProfile.cpp:293
#13 0x00007fd5a1bc0faf in CTLCSPlugin::CTLCSPlugin (this=<optimized out>, parent=<optimized out>) at /home/boud/kde/src/calligra/krita/plugins/colorspaces/ctlcs/ctl_cs_plugin.cpp:104
#14 0x00007fd5a1bc2d3c in KPluginFactory::createInstance<CTLCSPlugin, QObject> (parentWidget=<optimized out>, parent=<optimized out>, args=...) at /usr/include/kpluginfactory.h:477
#15 0x00007fd5b90075f1 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib64/libkdecore.so.5
#16 0x00007fd5bc82b8f7 in create<QObject> (parent=0x96fe50, this=0xb7cff0, args=..., keyword=..., parentWidget=0x0) at /usr/include/kpluginfactory.h:531
#17 createInstance<QObject> (error=0x7fff4f535ff0, args=..., parent=0x96fe50, parentWidget=0x0, this=0xb7dbb0) at /usr/include/kservice.h:557
#18 createInstance<QObject> (error=0x7fff4f535ff0, args=..., parent=0x96fe50, this=<optimized out>) at /usr/include/kservice.h:534
#19 KoPluginLoader::load (this=<optimized out>, serviceType=<optimized out>, versionString=<optimized out>, config=...) at /home/boud/kde/src/calligra/libs/koplugin/KoPluginLoader.cpp:120
#20 0x00007fd5bca8df40 in KoColorSpaceRegistry::init (this=0xb04f10) at /home/boud/kde/src/calligra/libs/pigment/KoColorSpaceRegistry.cpp:106
#21 0x00007fd5bca8ec48 in KoColorSpaceRegistry::instance () at /home/boud/kde/src/calligra/libs/pigment/KoColorSpaceRegistry.cpp:72
#22 0x00007fd5bca7291d in KoColor::KoColor (this=0x7fd5a22e2308) at /home/boud/kde/src/calligra/libs/pigment/KoColor.cpp:51
#23 0x00007fd5a2067a89 in __static_initialization_and_destruction_0 (__initialize_p=<optimized out>, __priority=<optimized out>) at /home/boud/kde/src/calligra/krita/plugins/paintops/libpaintop/kis_color_source.cpp:29
#24 _GLOBAL__sub_I_kis_color_source.cpp(void) () at /home/boud/kde/src/calligra/krita/plugins/paintops/libpaintop/kis_color_source.cpp:272
#25 0x00007fd5a20c3c56 in __do_global_ctors_aux () from /home/boud/kde/inst/lib64/libkritalibpaintop.so.9
#26 0x00007fd5a205ce4b in _init () from /home/boud/kde/inst/lib64/libkritalibpaintop.so.9
#27 0x00007fd5a22ee2f8 in ?? () from /home/boud/kde/inst/lib64/kde4/kritachalkpaintop.so
#28 0x00007fd5c0bb1dc4 in call_init () from /lib64/ld-linux-x86-64.so.2
#29 0x00007fd5c0bb1ef6 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#30 0x00007fd5c0bb5f43 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#31 0x00007fd5c0bb1c36 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#32 0x00007fd5c0bb57ca in _dl_open () from /lib64/ld-linux-x86-64.so.2
#33 0x00007fd5b79eef26 in dlopen_doit () from /lib64/libdl.so.2
#34 0x00007fd5c0bb1c36 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#35 0x00007fd5b79ef4cf in _dlerror_run () from /lib64/libdl.so.2
#36 0x00007fd5b79eefc1 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
#37 0x00007fd5c061c0ab in ?? () from /usr/lib64/libQtCore.so.4
#38 0x00007fd5c06174a5 in ?? () from /usr/lib64/libQtCore.so.4
#39 0x00007fd5b9008a48 in KPluginLoader::load() () from /usr/lib64/libkdecore.so.5
#40 0x00007fd5b9008d19 in KPluginLoader::factory() () from /usr/lib64/libkdecore.so.5
#41 0x00007fd5bc82b8b2 in createInstance<QObject> (error=0x7fff4f537140, args=..., parent=0x96fe50, parentWidget=0x0, this=0xae4ca0) at /usr/include/kservice.h:555
#42 createInstance<QObject> (error=0x7fff4f537140, args=..., parent=0x96fe50, this=<optimized out>) at /usr/include/kservice.h:534
#43 KoPluginLoader::load (this=<optimized out>, serviceType=<optimized out>, versionString=<optimized out>, config=...) at /home/boud/kde/src/calligra/libs/koplugin/KoPluginLoader.cpp:120
#44 0x00007fd5bf799102 in KisPaintOpRegistry::instance () at /home/boud/kde/src/calligra/krita/image/brushengine/kis_paintop_registry.cc:63
#45 0x00007fd5bfe1ed7e in KisFactory2::componentData () at /home/boud/kde/src/calligra/krita/ui/kis_factory2.cc:120
#46 0x00007fd5bfe1f5ca in KisFactory2::KisFactory2 (this=0x809c40, parent=0x0) at /home/boud/kde/src/calligra/krita/ui/kis_factory2.cc:64
#47 0x00007fd5aaceeb8f in qt_plugin_instance () at /home/boud/kde/src/calligra/krita/krita_part_init.cc:24
#48 0x00007fd5b9008da0 in KPluginLoader::factory() () from /usr/lib64/libkdecore.so.5
#49 0x00007fd5bf387dfb in createInstance<KoDocument> (error=0x7fff4f537850, args=..., parent=0x0, parentWidget=0x0, this=0x8d75f0) at /usr/include/kservice.h:555
#50 createInstance<KoDocument> (error=0x7fff4f537850, args=..., parent=0x0, this=<optimized out>) at /usr/include/kservice.h:534
#51 KoDocumentEntry::createDoc (this=0x7fff4f537ab0, errorMsg=0x7fff4f537ba0, parent=0x0) at /home/boud/kde/src/calligra/libs/main/KoDocumentEntry.cpp:58
#52 0x00007fd5bf371d9e in KoApplication::start (this=<optimized out>) at /home/boud/kde/src/calligra/libs/main/KoApplication.cpp:189
#53 0x00007fd5c0961ce8 in kdemain (argc=<optimized out>, argv=<optimized out>) at /home/boud/kde/src/calligra/krita/main.cc:63
#54 0x00007fd5b7e2b23d in __libc_start_main () from /lib64/libc.so.6
#55 0x0000000000400911 in _start () at ../sysdeps/x86_64/elf/start.S:113

Reported using DrKonqi
Comment 1 Cyrille Berger 2012-01-14 07:36:17 UTC
Git commit acbd862178d608382108e1250ae57f12f884680c by Cyrille Berger.
Committed on 14/01/2012 at 08:34.
Pushed by berger into branch 'master'.

introduce a gtl giant lock to make sure to avoid threading issues.

Possible fix for those bugs:
Related: bug 289279

M  +1    -0    krita/image/CMakeLists.txt
A  +33   -0    krita/image/kis_gtl_lock.cpp     [License: GPL (v2+)]
A  +42   -0    krita/image/kis_gtl_lock.h     [License: GPL (v2+)]
M  +1    -1    krita/plugins/colorspaces/ctlcs/CMakeLists.txt
M  +5    -0    krita/plugins/colorspaces/ctlcs/KoCtlColorConversionTransformation.cpp
M  +2    -0    krita/plugins/colorspaces/ctlcs/KoCtlColorProfile.cpp
M  +2    -0    krita/plugins/colorspaces/ctlcs/KoCtlColorTransformationFactory.cpp
M  +3    -0    krita/plugins/colorspaces/ctlcs/KoCtlCompositeOp.cpp
M  +2    -1    krita/plugins/extensions/shiva/shivafilter.cpp
M  +2    -0    krita/plugins/extensions/shiva/shivagenerator.cpp

http://commits.kde.org/calligra/acbd862178d608382108e1250ae57f12f884680c
Comment 2 Halla Rempt 2012-02-11 10:43:15 UTC
This is fixed, yay, yay and yay!