Bug 261319 - Digikam crash at startup with "signal: Illegal instruction" (SIGILL)
Summary: Digikam crash at startup with "signal: Illegal instruction" (SIGILL)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-RedEyes (show other bugs)
Version: 1.6.0
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-26 22:01 UTC by Giovanni Bacci
Modified: 2020-09-12 05:42 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0


Attachments
here's the kcrash generated backtrace (10.42 KB, text/plain)
2010-12-26 23:09 UTC, Giovanni Bacci
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giovanni Bacci 2010-12-26 22:01:33 UTC
Version:           1.6.0 (using KDE 4.5.4) 
OS:                Linux

Every time i try to start digikam, it crashes with "signal: Illegal instruction", as reported by the kcrash application.


Reproducible: Always

Steps to Reproduce:
Just start digikiam

Actual Results:  
crash with signal: illegal instruction


I'm not sure, but i think that's is related to the newest opencv version (2.1) against which kipi-plugins are linked. As reported here:
http://sacripante.wordpress.com/2010/04/02/opencv-2-0-0a-winxp-on-amd/
starting from version 2.0 opencv libraries are compiled with sse2 instructions, producing a code not executable on platform not supporting these extensions, as the athlon-xp i'm currently using.
Comment 1 Michael G. Hansen 2010-12-26 22:52:28 UTC
Hi Giovanni,

thanks for you report! Does KCrash give you any more detailed output, like a backtrace? If so, please also post it here!

Michael
Comment 2 Giovanni Bacci 2010-12-26 23:09:22 UTC
Created attachment 55270 [details]
here's the kcrash generated backtrace
Comment 3 Michael G. Hansen 2010-12-26 23:37:06 UTC
Well, the backtrace is not so useful because there are no debug-symbols applied, but at least we know the crash is in opencv, supporting your theory.

If you want to get digikam to start without having to do a recompile: I think the only plugin that uses OpenCV is the Removed-Red-Eyes plugin. Therefore, you can simply, as root, rename the file: /usr/lib/kde4/kipiplugin_removeredeyes.so 

mv /usr/lib/kde4/kipiplugin_removeredeyes.so /usr/lib/kde4/kipiplugin_removeredeyes.so.disabled

This way, the removedredeyes plugin should not be loaded, hence avoiding the crash for now.

Michael
Comment 4 Giovanni Bacci 2010-12-27 14:23:34 UTC
(In reply to comment #3)
>
> mv /usr/lib/kde4/kipiplugin_removeredeyes.so
> /usr/lib/kde4/kipiplugin_removeredeyes.so.disabled
> 
> This way, the removedredeyes plugin should not be loaded, hence avoiding the
> crash for now.

  i've followed your suggestion and now digikam starts and seems usable.

Thanks for the quick&dirty fix!
G.
Comment 5 Michael G. Hansen 2010-12-27 14:42:01 UTC
Since you get OpenCV from your distribution, you may want to ask them to provide OpenCV packages with optimizations set such that your CPU is supported. Otherwise, there is nothing more we can do about it...

Michael
Comment 6 Giovanni Bacci 2010-12-27 15:13:05 UTC
(In reply to comment #5)
> Since you get OpenCV from your distribution, you may want to ask them to
> provide OpenCV packages with optimizations set such that your CPU is supported.
> Otherwise, there is nothing more we can do about it...

  i've already filed a bug against the package, but i was wondering if a solution was possible for the digikam package, stated the greater possible impact of this problem. But if the only possible solution in the opencv package, i will wait with crossed fingers...

Giovanni
Comment 7 caulier.gilles 2011-11-03 12:44:21 UTC
kipi-plugins 2.2.0 is out since few weeks. Crash still valid with this version ?

Gilles Caulier
Comment 8 caulier.gilles 2011-12-20 10:31:08 UTC
Giovanni,

This file still valid using kipi-plugins 2.4 ?

Gilles Caulier
Comment 9 caulier.gilles 2012-06-22 08:56:14 UTC
Official Kipi-plugins 2.6.0 release is out since few days now :

http://www.digikam.org/drupal/node/656

Please, check if this entry still valid, or update report accordingly.

Thanks in advance.

Gilles Caulier
Comment 10 Christoph Feck 2013-02-23 22:44:27 UTC
No response, and crash is in opencv code.
Comment 11 caulier.gilles 2020-09-12 05:42:19 UTC
Not reproducible with 7.2.0