gthumb crashes if it doesn't like format/content of XML files in .comments folder

Bug #659318 reported by ADFH on 2010-10-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gthumb (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: gthumb

$ gdb --args gthumb .
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/gthumb...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/gthumb .
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe82b3710 (LWP 13329)]
[New Thread 0x7fffe70df710 (LWP 13330)]
[New Thread 0x7fffe63ea710 (LWP 13331)]
[New Thread 0x7fffe5be9710 (LWP 13332)]
[New Thread 0x7fffe53e8710 (LWP 13333)]
[New Thread 0x7fffe4be7710 (LWP 13334)]
[New Thread 0x7fffe43e6710 (LWP 13335)]
[New Thread 0x7fffe4365710 (LWP 13336)]
[New Thread 0x7fffe42e4710 (LWP 13337)]
[New Thread 0x7fffdff3f710 (LWP 13338)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7843ce8 in comments_load_comment () from /usr/lib/gthumb/libgthumb.so
(gdb)

It appears when certain .xml files are in the .comments subfolder, gthumb will crash.

The attached XML file was not created manually by me, but by some process, possibly in a previous linux install, and was situated in the .comments subdirectory of a folder containing images.

When I emptied the .comments folder, gthumb started without fault.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gthumb 3:2.11.2.1.is.2.10.11-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-25.44-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed Oct 13 02:54:23 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Release Candidate amd64 (20100419.1)
ProcEnviron:
 LANG=en_AU.utf8
 SHELL=/bin/bash
SourcePackage: gthumb
---
Architecture: amd64
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Release Candidate amd64 (20100419.1)
NonfreeKernelModules: nvidia
Package: gthumb 3:2.11.2.1.is.2.10.11-0ubuntu1
PackageArchitecture: amd64
ProcEnviron:
 LANG=en_AU.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-26.47-generic 2.6.32.24+drm33.11
Tags: lucid
Uname: Linux 2.6.32-26-generic x86_64
UserGroups: adm admin audio cdrom dialout libvirtd lpadmin plugdev sambashare vboxusers

ADFH (adfh) wrote :
ADFH (adfh) wrote :

To test further, I took the attached XML file from this report and replaced an XML file I created by adding a comment through gthumb. gthumb segfaulted again.

I removed the XML file from the folder (leaving other XML files in place) and gthumb did not crash.

It therefore does seem that certain XML file contents will cause segfaults. An app shouldn't crash because a file contains unexpected data.

tags: added: apport-collected
description: updated
ADFH (adfh) wrote : Dependencies.txt

apport information

summary: - gthumb crashes upon opening a folder with a .comments subfolder
+ gthumb crashes if it doesn't like format/content of XML files in
+ .comments folder
mjc (mjc-avtechpulse) wrote :

This is fixed upstream - try upgrading to gThumb 2.12.0 or 2.12.1.

http://www.webupd8.org/2010/09/gthumb-2120-stable-has-been-released.html

- Mike

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers