gscan2pdf crashed with SIGSEGV in clamp_value()

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

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
 PATH=(custom, no user)
 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
 ?? () from /usr/lib/x86_64-linux-gnu/sane/
 sane_pixma_control_option () from /usr/lib/x86_64-linux-gnu/sane/
 XS_Sane__Device_set_option () from /usr/lib/perl5/auto/Sane/
 ?? ()
 ?? ()
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:

So I am reassigning this.

 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