ohan@hoppan:~/SRC/f-spot$ mdb /opt/f-spot/lib/f-spot/f-spot.exe /opt/
Mono Debugger
(mdb) r
Starting program: /opt/f-spot/lib/f-spot/f-spot.exe /opt/
Cannot read symbol file `/usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll.mdb': Could not find file "/usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll.mdb".
Cannot read symbol file `/usr/lib/mono/gac/Mono.Addins.Setup/0.4.0.0__0738eb9f132ed756/Mono.Addins.Setup.dll.mdb': Could not find file "/usr/lib/mono/gac/Mono.Addins.Setup/0.4.0.0__0738eb9f132ed756/Mono.Addins.Setup.dll.mdb".
Cannot read symbol file `/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll.mdb': Could not find file "/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll.mdb".
Cannot read symbol file `/usr/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll.mdb': Could not find file "/usr/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll.mdb".
Cannot read symbol file `/usr/lib/mono/gac/Mono.Addins/0.4.0.0__0738eb9f132ed756/Mono.Addins.dll.mdb': Could not find file "/usr/lib/mono/gac/Mono.Addins/0.4.0.0__0738eb9f132ed756/Mono.Addins.dll.mdb".
Cannot read symbol file `/usr/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll.mdb': Could not find file "/usr/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll.mdb".
Cannot read symbol file `/opt/f-spot/lib/f-spot/unique-sharp.dll.mdb': Could not find file "/opt/f-spot/lib/f-spot/unique-sharp.dll.mdb".
Thread @1 stopped at #0: 0xb6f093a8 in FSpot.Driver.Main(string[])+0x70 at /home/johan/SRC/f-spot/src/main.cs:61.
  61 			List<string> uris = new List<string> ();
(mdb) c
Cannot read symbol file `/usr/lib/mono/gac/gconf-sharp/2.24.0.0__35e10195dab3c99f/gconf-sharp.dll.mdb': Could not find file "/usr/lib/mono/gac/gconf-sharp/2.24.0.0__35e10195dab3c99f/gconf-sharp.dll.mdb".
[Info  14:32:31.107] Initializing Mono.Addins
Process #1 created new thread @4.
Thread @4 exited.
Process #1 created new thread @5.
Cannot read symbol file `/usr/lib/mono/gac/gnome-sharp/2.24.0.0__35e10195dab3c99f/gnome-sharp.dll.mdb': Could not find file "/usr/lib/mono/gac/gnome-sharp/2.24.0.0__35e10195dab3c99f/gnome-sharp.dll.mdb".
Cannot read symbol file `/opt/f-spot/lib/f-spot/gtk-sharp-beans.dll.mdb': Could not find file "/opt/f-spot/lib/f-spot/gtk-sharp-beans.dll.mdb".
Cannot read symbol file `/usr/lib/mono/gac/pango-sharp/2.12.0.0__35e10195dab3c99f/pango-sharp.dll.mdb': Could not find file "/usr/lib/mono/gac/pango-sharp/2.12.0.0__35e10195dab3c99f/pango-sharp.dll.mdb".
[Info  14:32:32.224] Hack for gnome-settings-daemon engaged
Cannot read symbol file `/usr/lib/mono/gac/glade-sharp/2.12.0.0__35e10195dab3c99f/glade-sharp.dll.mdb': Could not find file "/usr/lib/mono/gac/glade-sharp/2.12.0.0__35e10195dab3c99f/glade-sharp.dll.mdb".
Process #1 created new thread @6.
Process #1 created new thread @7.
Process #1 created new thread @8.
Thread @6 exited.
Process #1 created new thread @9.
Cannot read symbol file `/opt/f-spot/lib/f-spot/gio-sharp.dll.mdb': Could not find file "/opt/f-spot/lib/f-spot/gio-sharp.dll.mdb".
Cannot read symbol file `/opt/f-spot/lib/f-spot/SemWeb.dll.mdb': Could not find file "/opt/f-spot/lib/f-spot/SemWeb.dll.mdb".
Thread @1 received signal 11 at #0: 0xb31208f3 in FSpot.JpegFile.GetOrientation()+0x43 at /home/johan/SRC/f-spot/src/Imaging/JpegFile.cs:278.
 278 				orientation = (PixbufOrientation)e.ValueAsLong [0];
Thread @9 exited.
(mdb) bt
(*) #0: 0xb31208f3 in FSpot.JpegFile.GetOrientation()+0x43 at /home/johan/SRC/f-spot/src/Imaging/JpegFile.cs:278
    #1: 0xb31208a5 in FSpot.ImageFile.get_Orientation()+0x15 at /home/johan/SRC/f-spot/src/Imaging/ImageFile.cs:109
    #2: 0xb3118716 in FSpot.Loaders.GdkImageLoader.Load(Hyena.SafeUri)+0x1be at /home/johan/SRC/f-spot/src/Loaders/GdkImageLoader.cs:45
    #3: 0xb3115a56 in FSpot.Widgets.PhotoImageView.Load(Hyena.SafeUri)+0x18e at /home/johan/SRC/f-spot/src/PhotoImageView.cs:180
    #4: 0xb3115393 in FSpot.Widgets.PhotoImageView.HandlePhotoItemChanged(object, FSpot.BrowsablePointerChangedEventArgs)+0x393 at /home/johan/SRC/f-spot/src/PhotoImageView.cs:313
    #5: 0xb313beb8 in <(wrapper delegate-invoke) System.EventHandler`1<FSpot.BrowsablePointerChangedEventArgs>:invoke_void__this___object_BrowsablePointerChangedEventArgs (object,FSpot.BrowsablePointerChangedEventArgs)>+0xa0 at 21
    #6: 0xb312f777 in FSpot.BrowsablePointer.SetIndex(int, FSpot.IBrowsableItemChanges)+0xa7 at /home/johan/SRC/f-spot/src/Core/BrowsablePointer.cs:119
    #7: 0xb313a99f in FSpot.BrowsablePointer.HandleCollectionChanged(FSpot.IBrowsableCollection)+0x7f at /home/johan/SRC/f-spot/src/Core/BrowsablePointer.cs:139
    #8: 0xb313a8e2 in <(wrapper delegate-invoke) FSpot.IBrowsableCollectionChangedHandler:invoke_void__this___IBrowsableCollection (FSpot.IBrowsableCollection)>+0x52 at 36
    #9: 0xb313a914 in <(wrapper delegate-invoke) FSpot.IBrowsableCollectionChangedHandler:invoke_void__this___IBrowsableCollection (FSpot.IBrowsableCollection)>+0x84 at 20
    #10: 0xb31b8cd2 in FSpot.PhotoQuery.RequestReload()+0x302 at /home/johan/SRC/f-spot/src/PhotoQuery.cs:285
    #11: 0xb313a500 in FSpot.PhotoQuery.set_OrderByTime(FSpot.Query.OrderByTime)+0x30 at /home/johan/SRC/f-spot/src/PhotoQuery.cs:244
    #12: 0xb313a228 in FSpot.PhotoQuery.set_TimeOrderAsc(bool)+0x78 at /home/johan/SRC/f-spot/src/PhotoQuery.cs:252
    #13: 0xb3304c44 in FSpot.MainWindow.LoadPreference(string)+0x7ec at /home/johan/SRC/f-spot/src/MainWindow.cs:2436
    #14: 0xb3dbacd6 in FSpot.MainWindow..ctor(Db)+0x39a6 at /home/johan/SRC/f-spot/src/MainWindow.cs:502
    #15: 0xb3db6806 in FSpot.App.get_Organizer()+0x4e at /home/johan/SRC/f-spot/src/Core/App.cs:41
    #16: 0xb55e7f07 in FSpot.App.HandleOrganize()+0x47 at /home/johan/SRC/f-spot/src/Core/App.cs:214
    #17: 0xb55e7e9f in FSpot.App.Organize()+0x3f at /home/johan/SRC/f-spot/src/Core/App.cs:84
    #18: 0xb6f0a7f7 in FSpot.Driver.Main(string[])+0x14bf at /home/johan/SRC/f-spot/src/main.cs:239
(mdb) list
 277 				DirectoryEntry e = ExifHeader.Directory.Lookup (TagId.Orientation);
 278 				orientation = (PixbufOrientation)e.ValueAsLong [0];
 279 			} catch {
 280 				System.Console.WriteLine ("error checking orientation");
 281 			}
 282 #else						     
 283 Console.WriteLine (">>>");
 284 			Exif.ExifEntry e = this.ExifData.GetContents (Exif.Ifd.Zero).Lookup (Exif.Tag.Orientation);
 285 Console.WriteLine ("<<<");
 286 			
 287 			if (e != null) {
 288 				ushort [] value = e.GetDataUShort ();
 289 				orientation = (PixbufOrientation) value [0];
 290 			}
 291 #endif			
 292 			if (orientation < PixbufOrientation.TopLeft || orientation > PixbufOrientation.LeftBottom)
 293 				orientation = PixbufOrientation.TopLeft;
 294 
 295 			return orientation;
 296 		}
(mdb) p e
(FSpot.Tiff.DirectoryEntry) null
(mdb) p orientation

