[Pkg-kde-extras] Bug#814051: tiffcomposite.cpp:749:...: Assertion `mn_' failed.

2016-05-15 Thread Norbert Preining
Package: libexiv2-14
Followup-For: Bug #814051

This bug is fixed in svn 3889 and 3890 in upstream svn, 9 months ago


I have prepared a NMU that will fix this bug and plan to upload it
to the DELAYED-7 queue.

Attached is the debdiff.

All the best

Norbert


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-rc7+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libexiv2-14 depends on:
ii  libc6   2.22-9
ii  libexpat1   2.1.1-1
ii  libgcc1 1:6.1.1-3
ii  libstdc++6  6.1.1-3
ii  zlib1g  1:1.2.8.dfsg-2+b1

libexiv2-14 recommends no packages.

Versions of packages libexiv2-14 suggests:
ii  exiv2  0.25-2.2

-- no debconf information
diff -Nru exiv2-0.25/debian/changelog exiv2-0.25/debian/changelog
--- exiv2-0.25/debian/changelog	2015-10-08 15:42:37.0 +0900
+++ exiv2-0.25/debian/changelog	2016-05-15 21:23:46.0 +0900
@@ -1,3 +1,10 @@
+exiv2 (0.25-2.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix crashes on Casio images files (upstream cherry pick) (Closes: #814051)
+
+ -- Norbert Preining   Sun, 15 May 2016 21:23:34 +0900
+
 exiv2 (0.25-2.1) unstable; urgency=medium
 
   * Non-maintainer upload
diff -Nru exiv2-0.25/debian/patches/series exiv2-0.25/debian/patches/series
--- exiv2-0.25/debian/patches/series	2015-08-06 19:37:59.0 +0900
+++ exiv2-0.25/debian/patches/series	2016-05-15 21:03:46.0 +0900
@@ -1 +1,2 @@
 libtool_update.diff
+upstream-fix-casio-crash
diff -Nru exiv2-0.25/debian/patches/upstream-fix-casio-crash exiv2-0.25/debian/patches/upstream-fix-casio-crash
--- exiv2-0.25/debian/patches/upstream-fix-casio-crash	1970-01-01 09:00:00.0 +0900
+++ exiv2-0.25/debian/patches/upstream-fix-casio-crash	2016-05-15 21:07:37.0 +0900
@@ -0,0 +1,18 @@
+upstream svn 3889 and 3890 to prevent crashing on cimg
+---
+ src/makernote.cpp |4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+--- exiv2-0.25.orig/src/makernote.cpp
 exiv2-0.25/src/makernote.cpp
+@@ -79,7 +79,9 @@
+ { "-",  olympusId,   0,  newOlympusMn2   },
+ { "-",  olympus2Id,  0,  newOlympus2Mn2  },
+ { "-",  pentaxId,0,  newPentaxMn2},
+-{ "-",  pentaxDngId, 0,  newPentaxDngMn2 }
++{ "-",  pentaxDngId, 0,  newPentaxDngMn2 },
++	{ "-",  casioId, 0,  newIfdMn2   },
++	{ "-",  casio2Id,0,  newCasio2Mn2}
+ };
+ 
+ bool TiffMnRegistry::operator==(const std::string& key) const
___
pkg-kde-extras mailing list
pkg-kde-extras@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-kde-extras

[Pkg-kde-extras] Bug#814051: tiffcomposite.cpp:749:...: Assertion `mn_' failed.

2016-03-05 Thread G. Milde
Package: libexiv2-14
Version: 0.25-2.1
Followup-For: Bug #814051

Dear Maintainer,

adding to the report by Vaclav:

I encountered a similar error after editing images with digikam (rotating,
adding tags, ...).
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726231

It seems to be an instance of http://dev.exiv2.org/issues/1106

  Crash in exiv2 due to assertion when setting rating on jpg with a
  Casio makernote

which also features in http://redmine.darktable.org/issues/10864 and
http://dev.exiv2.org/issues/1146



To answer the question: "Vaclav, is there something unusual about that jpeg
file? What make and model of camera did it come from?"

Here, it concerns images from a Casio EX-Z750


The issue seems to be soved upstream.

Any chance to get this as a patch in 0.25 or do we have to wait for 0.26?


Thanks,
Günter


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libexiv2-14 depends on:
ii  libc6   2.21-9
ii  libexpat1   2.1.0-7
ii  libgcc1 1:5.3.1-8
ii  libstdc++6  5.3.1-8
ii  zlib1g  1:1.2.8.dfsg-2+b1

libexiv2-14 recommends no packages.

Versions of packages libexiv2-14 suggests:
ii  exiv2  0.25-2.1

-- no debconf information

___
pkg-kde-extras mailing list
pkg-kde-extras@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-kde-extras

[Pkg-kde-extras] Bug#814051: tiffcomposite.cpp:749:...: Assertion `mn_' failed.

2016-02-07 Thread Vaclav Ovsik
Package: libexiv2-14
Version: 0.25-2.1
Severity: normal

Dear Maintainer,
I have a problem to geotag my jpeg photos. This task I did with the Viking[1]
already some time ago. Viking aborts now. Also gpscorrelate[2] aborts with the
same error:

  (gdb) run
  Starting program: /usr/bin/gpscorrelate -v -g 20160201.gpx 
2016.02.01-14.20.40.jpg
  EXIF-GPS Photo matching program.
  Daniel Foote, 2005.
  
  Reading GPS Data...
  
  Correlate: 
  gpscorrelate: tiffcomposite.cpp:749: virtual Exiv2::Internal::TiffComponent* 
Exiv2::Internal::TiffMnEntry::doAddPath(uint16_t, Exiv2::Internal::TiffPath&, 
Exiv2::Internal::TiffComponent*, Exiv2::Internal::TiffComponent::AutoPtr): 
Assertion `mn_' failed.
  
  Program received signal SIGABRT, Aborted.
  0x7697b507 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/unix/sysv/linux/raise.c:55
  55../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
  

There is a back-trace:
  #0  0x7697b507 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/unix/sysv/linux/raise.c:55
  #1  0x7697c8da in __GI_abort () at abort.c:89
  #2  0x7697459d in __assert_fail_base (fmt=0x76ab16b8 "%s%s%s:%u: 
%s%sAssertion `%s' failed.\n%n", 
  assertion=assertion@entry=0x77784604 "mn_", 
file=file@entry=0x77784512 "tiffcomposite.cpp", line=line@entry=749, 
  function=function@entry=0x77784f00 
 > >&, 
Exiv2::Internal::TiffComponent*, 
std::auto_ptr)::__PRETTY_FUNCTION__> "virtual 
Exiv2::Internal::TiffComponent* 
Exiv2::Internal::TiffMnEntry::doAddPath(uint16_t, Exiv2::Internal::TiffPath&, 
Exiv2::Internal::TiffComponent*, Exiv2::Internal::TiffComponent::AutoPtr)") at 
assert.c:92
  #3  0x76974652 in __GI___assert_fail 
(assertion=assertion@entry=0x77784604 "mn_", 
  file=file@entry=0x77784512 "tiffcomposite.cpp", line=line@entry=749, 
  function=function@entry=0x77784f00 
 > >&, 
Exiv2::Internal::TiffComponent*, 
std::auto_ptr)::__PRETTY_FUNCTION__> "virtual 
Exiv2::Internal::TiffComponent* 
Exiv2::Internal::TiffMnEntry::doAddPath(uint16_t, Exiv2::Internal::TiffPath&, 
Exiv2::Internal::TiffComponent*, Exiv2::Internal::TiffComponent::AutoPtr)") at 
assert.c:101
  #4  0x776c2a6e in Exiv2::Internal::TiffMnEntry::doAddPath 
(this=0x557eead0, tag=, 
  tiffPath=std::stack wrapping: std::deque with 2 elements = {...}, 
pRoot=, object=...) at tiffcomposite.cpp:749
  #5  0x776bd1c2 in Exiv2::Internal::TiffComponent::addPath 
(this=, tag=tag@entry=2, 
  tiffPath=std::stack wrapping: std::deque with 2 elements = {...}, 
pRoot=pRoot@entry=0x557da7e0, object=...)
  at tiffcomposite.cpp:634
  #6  0x776bdc57 in Exiv2::Internal::TiffDirectory::doAddPath 
(this=0x557ed940, tag=, 
  tiffPath=std::stack wrapping: std::deque with 2 elements = {...}, 
pRoot=0x557da7e0, object=...) at tiffcomposite.cpp:694
  #7  0x776bd1c2 in Exiv2::Internal::TiffComponent::addPath 
(this=, tag=tag@entry=2, 
  tiffPath=std::stack wrapping: std::deque with 2 elements = {...}, 
pRoot=pRoot@entry=0x557da7e0, object=...)
  at tiffcomposite.cpp:634
  #8  0x776c270b in Exiv2::Internal::TiffSubIfd::doAddPath 
(this=0x557edd10, tag=, 
  tiffPath=std::stack wrapping: std::deque with 2 elements = {...}, 
pRoot=0x557da7e0, object=...) at tiffcomposite.cpp:729
  #9  0x776bd1c2 in Exiv2::Internal::TiffComponent::addPath 
(this=, tag=tag@entry=2, 
  tiffPath=std::stack wrapping: std::deque with 2 elements = {...}, 
pRoot=pRoot@entry=0x557da7e0, object=...)
  at tiffcomposite.cpp:634
  #10 0x776bdc57 in Exiv2::Internal::TiffDirectory::doAddPath 
(this=0x557da7e0, tag=, 
  tiffPath=std::stack wrapping: std::deque with 2 elements = {...}, 
pRoot=0x557da7e0, object=...) at tiffcomposite.cpp:694
  #11 0x776bd1c2 in Exiv2::Internal::TiffComponent::addPath 
(this=this@entry=0x557da7e0, tag=, 
  tiffPath=std::stack wrapping: std::deque with 2 elements = {...}, 
pRoot=pRoot@entry=0x557da7e0, object=...)
  at tiffcomposite.cpp:634
  #12 0x776daeec in Exiv2::Internal::TiffEncoder::add 
(this=this@entry=0x7fffc940, 
  pRootDir=pRootDir@entry=0x557da7e0, 
pSourceDir=pSourceDir@entry=0x557bfbb0, root=root@entry=131072)
  at tiffvisitor.cpp:1094
  #13 0x776c908d in Exiv2::Internal::TiffParserWorker::encode (io=..., 
pData=pData@entry=0x5577e7a0 "MM", 
  size=size@entry=19260, exifData=..., iptcData=..., xmpData=..., 
root=131072, 
  findEncoderFct=0x776c5ab0 
, std::allocator > const&, unsigned int, 
Exiv2::Internal::IfdId)>, pHeader=0x557bf9c0, pOffsetWriter=0x0)
  at tiffimage.cpp:2164
  #14 0x7765a6f6 in Exiv2::ExifParser::encode (blob=std::vector of 
length 0, capacity 0, pData=0x5577e7a0 "MM", 
  size=19260, byteOrder=Exiv2::bigEndian, exifData=...) at exif.cpp:719
  #15 0x7767522f in Exiv2::JpegBase::doWriteMetadata 
(this=this@ent