Bug 600242 - [abrt] crash Sane::Start aParams.bytes_per_line is 0
Summary: [abrt] crash Sane::Start aParams.bytes_per_line is 0
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: openoffice.org
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:12c0d9af68a6c94e01a6a407a70...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-04 09:08 UTC by redchernobil
Modified: 2010-06-04 13:21 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-06-04 13:21:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (247.22 KB, text/plain)
2010-06-04 09:09 UTC, redchernobil
no flags Details


Links
System ID Private Priority Status Summary Last Updated
OpenOffice.org 112119 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.