Bug 600242

Summary: [abrt] crash Sane::Start aParams.bytes_per_line is 0
Product: [Fedora] Fedora Reporter: redchernobil
Component: openoffice.orgAssignee: Caolan McNamara <caolanm>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: caolanm, nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:12c0d9af68a6c94e01a6a407a701420b61b6fca8
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-04 13:21:50 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 redchernobil 2010-06-04 09:08:02 UTC
abrt 1.0.9 detected a crash.

architecture: x86_64
Attached file: backtrace
cmdline: /usr/lib64/openoffice.org3/program/swriter.bin -writer
comment: volevo usare lo scanner di openoffice ma non ha funzionato e l'applicazione open office si e' chiusa senza preavviso
component: openoffice.org
crash_function: Sane::Start
executable: /usr/lib64/openoffice.org3/program/swriter.bin
global_uuid: 12c0d9af68a6c94e01a6a407a701420b61b6fca8
kernel: 2.6.32.12-115.fc12.x86_64
package: openoffice.org-writer-1:3.1.1-19.28.fc12
rating: 4
reason: Process /usr/lib64/openoffice.org3/program/swriter.bin was killed by signal 8 (SIGFPE)
release: Fedora release 12 (Constantine)

Comment 1 redchernobil 2010-06-04 09:09:48 UTC
Created attachment 421171 [details]
File: backtrace

Comment 2 Caolan McNamara 2010-06-04 09:27:15 UTC
That line would be
UINT32 nHeight = (UINT32) (nFrameLength / aParams.bytes_per_line);
so with a FPE aParams.bytes_per_line must be 0

Comment 3 Caolan McNamara 2010-06-04 13:21:50 UTC
I have to assume that sane_get_parameters failed, because we're not checking the result and that that's why we go on to crash. Its possible of course that sane_get_parameters succeeded and bytes_per_line was explicitly set to 0, more unlikely though. Submitted a patch upstream that would avoid a crash either way.

caolanm->redchernobil: 
What's the output of
$ sane-find-scanner

on the off chance that there's something wrong sane for that scanner.