Bug 608047

Summary: [abrt] crash in xsane-0.997-3.fc12: strncpy: Process /usr/bin/xsane was killed by signal 11 (SIGSEGV)
Product: [Fedora] Fedora Reporter: John Villegas <villegas.john>
Component: xsaneAssignee: Nils Philippsen <nphilipp>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard: abrt_hash:cfb4bc14b19468bfd5fa126ee297d8791c5fbd95
Fixed In Version: gimp-2.6.9-4.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-01 18:56:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace none

Description John Villegas 2010-06-25 14:07:25 UTC
abrt 1.1.1 detected a crash.

architecture: i686
Attached file: backtrace
cmdline: xsane
component: xsane
crash_function: strncpy
executable: /usr/bin/xsane
global_uuid: cfb4bc14b19468bfd5fa126ee297d8791c5fbd95
kernel: 2.6.33.5-124.fc13.i686
package: xsane-0.997-3.fc12
rating: 4
reason: Process /usr/bin/xsane was killed by signal 11 (SIGSEGV)
release: Fedora release 13 (Goddard)

How to reproduce
-----
1.run xsane
2.scan document
3.save document

Comment 1 John Villegas 2010-06-25 14:07:26 UTC
Created attachment 426889 [details]
File: backtrace

Comment 2 Nils Philippsen 2010-06-25 14:26:14 UTC
Seems like no output filename was selected which caused the crash here:

--- 8< --- src/xsane-back-gtk.c:1503 ---
    chooser_filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(filechooser));
    strncpy(filename, chooser_filename, max_len - 1);
--- >8 ---------------------------------

gtk_file_chooser_get_filename() may return NULL "if no file is selected, or the selected file can't be represented with a local filename", but strncpy crashes on that.

Comment 3 Fedora Update System 2010-06-28 16:50:33 UTC
gimp-2.6.9-3.fc13,xsane-0.997-7.fc13,gegl-0.1.2-3.fc13,babl-0.1.2-4.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/gimp-2.6.9-3.fc13,xsane-0.997-7.fc13,gegl-0.1.2-3.fc13,babl-0.1.2-4.fc13

Comment 4 Fedora Update System 2010-06-28 23:37:23 UTC
gegl-0.1.2-3.fc13, babl-0.1.2-4.fc13, gimp-2.6.9-3.fc13, xsane-0.997-7.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gegl babl gimp xsane'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/gimp-2.6.9-3.fc13,xsane-0.997-7.fc13,gegl-0.1.2-3.fc13,babl-0.1.2-4.fc13

Comment 5 Fedora Update System 2010-06-30 15:08:07 UTC
gimp-2.6.9-4.fc13, xsane-0.997-8.fc13, gegl-0.1.2-3.fc13, babl-0.1.2-4.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gimp xsane gegl babl'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/gimp-2.6.9-4.fc13,xsane-0.997-8.fc13,gegl-0.1.2-3.fc13,babl-0.1.2-4.fc13

Comment 6 Fedora Update System 2010-07-01 18:56:17 UTC
gimp-2.6.9-4.fc13, xsane-0.997-8.fc13, gegl-0.1.2-3.fc13, babl-0.1.2-4.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.