shotwell crashed with SIGSEGV in Exiv2::DataValue::toLong()

Bug #651002 reported by ketan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gexiv2
Fix Released
Unknown
gexiv2 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: shotwell

I was importing my photos from fspot

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: shotwell 0.7.2-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Wed Sep 29 15:05:35 2010
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/shotwell
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427.1)
ProcCmdline: shotwell
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0x31dc11 <_ZNK5Exiv29DataValue6toLongEl+17>: movzbl (%edx,%eax,1),%eax
 PC (0x0031dc11) ok
 source "(%edx,%eax,1)" (0x00000000) not located in a known VMA region (needed readable region)!
 destination "%eax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: shotwell
StacktraceTop:
 Exiv2::DataValue::toLong(long) const () from /usr/lib/libexiv2.so.6
 gexiv2_metadata_get_exif_tag_long () from /usr/lib/libgexiv2.so.0
 gexiv2_metadata_get_tag_long () from /usr/lib/libgexiv2.so.0
 photo_metadata_get_long ()
 photo_metadata_get_iso ()
Title: shotwell crashed with SIGSEGV in Exiv2::DataValue::toLong()
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
ketan (ketantada) wrote :
Revision history for this message
Jim Nelson (yorba-jim) wrote :

This bug is related to http://trac.yorba.org/ticket/2514.

It's possible in Exiv2 to have an empty metadata tag. If it's accessed for its value, the library segfaults. The fix for the ticket I just mentioned was a quick patch for the reporter's specific problem and not a general solution.

Last night I committed a patch to our repository that implements a general solution (which is ticket http://trac.yorba.org/ticket/2551). If you want to try it, check it out and build and install it:

svn co svn://svn.yorba.org/gexiv2/trunk gexiv2

If not, the fix should be released in gexiv2 0.3.0.

Changed in gexiv2:
status: Unknown → Fix Released
Omer Akram (om26er)
affects: shotwell (Ubuntu) → gexiv2 (Ubuntu)
Changed in gexiv2 (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Jim Nelson (yorba-jim) wrote :

This is available in gexiv2 0.2.2.

Changed in gexiv2 (Ubuntu):
status: Triaged → Fix Committed
Jim Nelson (yorba-jim)
Changed in gexiv2 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.