gscan2pdf crashed with SIGSEGV in clamp_value()

Bug #1165713 reported by Dirk Lehmann on 2013-04-07
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gscan2pdf (Ubuntu)
Medium
Unassigned
sane-backends (Ubuntu)
Undecided
Unassigned

Bug Description

I have changed the options for scanning and then crashed gscan2pdf complete.

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: gscan2pdf 1.0.4-5
ProcVersionSignature: Ubuntu 3.8.0-16.26-generic 3.8.5
Uname: Linux 3.8.0-16-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu5
Architecture: amd64
Date: Sun Apr 7 12:23:16 2013
ExecutablePath: /usr/bin/gscan2pdf
InstallationDate: Installed on 2011-07-08 (639 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
InterpreterPath: /usr/bin/perl
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: /usr/bin/perl /usr/bin/gscan2pdf
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0x7f45c3e96bf3: mov (%r11,%rsi,4),%r8d
 PC (0x7f45c3e96bf3) ok
 source "(%r11,%rsi,4)" (0x7f45e254e000) in non-readable VMA region: 0x7f45e254e000-0x7f45e254f000 ---p None
 destination "%r8d" ok
 Stack memory exhausted (SP below stack segment)
SegvReason: reading VMA None
Signal: 11
SourcePackage: gscan2pdf
StacktraceTop:
 ?? () from /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1
 sane_pixma_control_option () from /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1
 XS_Sane__Device_set_option () from /usr/lib/perl5/auto/Sane/Sane.so
 ?? ()
 ?? ()
Title: gscan2pdf crashed with SIGSEGV in sane_pixma_control_option()
UpgradeStatus: Upgraded to raring on 2013-04-06 (0 days ago)
UserGroups: adm admin audio cdrom dialout lpadmin netdev plugdev sambashare

Dirk Lehmann (dlehmann69) wrote :
information type: Private → Public

I appreciate that gscan2pdf crashed, but the stacktrace shows it was taken down by the sane-backend:

libsane-pixma.so.1

So I am reassigning this.

StacktraceTop:
 clamp_value (ss=ss@entry=0x7f45d00675f0, n=n@entry=8, v=v@entry=0x7f45e254ca9c, info=info@entry=0x7f45e254ca1c) at pixma.c:309
 control_option (info=0x7f45e254ca0c, v=0x7f45e254ca9c, a=SANE_ACTION_SET_VALUE, n=8, ss=0x7f45d00675f0) at pixma.c:613
 sane_pixma_control_option (h=<optimized out>, n=8, a=SANE_ACTION_SET_VALUE, v=0x7f45e254ca9c, i=<optimized out>) at pixma.c:1419
 XS_Sane__Device_set_option (my_perl=<optimized out>, cv=<optimized out>) at Sane.xs:223
 ?? ()

Changed in gscan2pdf (Ubuntu):
importance: Undecided → Medium
summary: - gscan2pdf crashed with SIGSEGV in sane_pixma_control_option()
+ gscan2pdf crashed with SIGSEGV in clamp_value()
tags: removed: need-amd64-retrace

Evidently, the crash occurs when setting a particular option on the scan dialog window.

If you start gscan2pdf from the command line with the --log=log option, then in Edit/Preferences, switch to the scanimage frontend, you will be able to set the same option on the scan dialog window - but I assume that scanimage will crash when you try to scan.

The log file created by gscan2pdf will show the scanimage call that crashed, and the SANE people might be more helpful with a stacktrace from scanimage, as it is their utility - as well as their pixma backend.

Changed in gscan2pdf (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers