gnome-appearance-properties crashes when the image is not of the expected format

Bug #312931 reported by Stéphane Bortzmeyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-control-center

When one of the images in ~/Images is not of the expected format (in my case, a file with a ".jpg" extension was acually a RDF/XML file), gnome-appearance-properties crashes with a SIGSEGV without any message.

This is extremely bad programming practice!

Here is gnome-appearance-properties ran under strace:

...
rename("/home/emilien/.thumbnails/fail/gnome-thumbnail-factory/79d58759e8c84c84f81b895acabc42ef.png.95WLMU", "/home/emilien/.thumbnails/fail/gnome-thumbnail-factory/79d58759e8c84c84f81b895acabc42ef.png") = 0
stat64("/home/emilien/.thumbnails/fail/gnome-thumbnail-factory", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
open("/home/emilien/Images/duel3.jpg", O_RDONLY|O_LARGEFILE) = 50
fstat64(50, {st_mode=S_IFREG|0644, st_size=3726, ...}) = 0
read(50, "<?xml version=\"1.0\"?>\n<RDF:RDF x"..., 8192) = 3726
read(50, "", 8192) = 0
close(50) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2945, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2945, ...}) = 0
gettimeofday({1230829944, 813640}, NULL) = 0
time(NULL) = 1230829944
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

And here is the beginning of the offending file, duel3.jpg:

<?xml version="1.0"?>
<RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <RDF:Description RDF:about="urn:mimetypes">
    <NC:MIME-types RDF:resource="urn:mimetypes:root"/>
  </RDF:Description>
...

OK, it is not a JPEG (for unknown reasons) but crashing with SIGSEGV is incredibly careless.

Description: Ubuntu 8.04.1
Release: 8.04

gnome-control-center:
  Installed: 1:2.22.1-0ubuntu4.1
  Candidate: 1:2.22.1-0ubuntu4.1
  Version table:
 *** 1:2.22.1-0ubuntu4.1 0
        500 http://fr.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     1:2.22.1-0ubuntu4 0
        500 http://fr.archive.ubuntu.com hardy/main Packages

Daniel T Chen (crimsun)
Changed in gnome-control-center:
importance: Undecided → Medium
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your bug report. Please try to obtain a backtrace http://wiki.ubuntu.com/DebuggingProgramCrash and attach the file to the bug report. This will greatly help us in tracking down your problem.

Changed in gnome-control-center:
assignee: nobody → desktop-bugs
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in gnome-control-center:
status: Incomplete → Invalid
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.