Created attachment 396968 [details, diff] exiv2-0.24-fix_arithmetic_exception.patch There are two "division by zero" or "arithmetic exception" errors in media-gfx/exiv2 that can result in segfault when parsing metadata in .mp4 files. This causes e.g. digikam to fail when importing collections containing such files. Upstream bugs are: http://dev.exiv2.org/issues/1017 http://dev.exiv2.org/issues/999 Upstream revisions are: http://dev.exiv2.org/projects/exiv2/repository/revisions/3537/diff/trunk/src/quicktimevideo.cpp http://dev.exiv2.org/projects/exiv2/repository/revisions/3390/diff/trunk/src/quicktimevideo.cpp The attached patch (derived from those revisions in upstream trunk) fixes those cases and should be applied to current stable ebuild until new version is out.
I hit this bug too, but the patch didn't work for me: I'm still seeing a "Floating point exception" every time I run edi4.4.0-r1. In order to apply the patch I just put it in/etc/portage/patches, and recompiled media-gfx/exiv2 (making sure it is actually applied...) and libkexiv2 (this is probably not needed, though)...am I missing something?
(In reply to manu from comment #1) > I hit this bug too, but the patch didn't work for me: I'm still seeing a > "Floating point exception" every time I run digikam 4.4.0-r1. > > In order to apply the patch I just put it in/etc/portage/patches, and > recompiled media-gfx/exiv2 (making sure it is actually applied...) and > libkexiv2 (this is probably not needed, though)...am I missing something?
(In reply to manu from comment #2) > (In reply to manu from comment #1) > > I hit this bug too, but the patch didn't work for me: I'm still seeing a > > "Floating point exception" every time I run digikam 4.4.0-r1. > > > > In order to apply the patch I just put it in/etc/portage/patches, and > > recompiled media-gfx/exiv2 (making sure it is actually applied...) and > > libkexiv2 (this is probably not needed, though)...am I missing something? Have you tried rebuildg digikam as well?
(In reply to Paolo Pedroni from comment #3) > (In reply to manu from comment #2) > > (In reply to manu from comment #1) > > > I hit this bug too, but the patch didn't work for me: I'm still seeing a > > > "Floating point exception" every time I run digikam 4.4.0-r1. > > > > > > In order to apply the patch I just put it in/etc/portage/patches, and > > > recompiled media-gfx/exiv2 (making sure it is actually applied...) and > > > libkexiv2 (this is probably not needed, though)...am I missing something? > > Have you tried rebuildg digikam as well? Sorry for the delay...I didn't get any notification in my e-mail. I just tried rebuilding digikam and it doesn't make any difference: still crashing when scanning some videos.
Should be fixed by exiv2-0.25, now in tree.