SIGSEGV in sane_hpaio_control_option

Bug #490787 reported by Philipp Schlesinger
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gnome Scan
New
Critical
HPLIP
Invalid
Undecided
Unassigned
gnomescan (Ubuntu)
Triaged
High
Unassigned
Lucid
Won't Fix
Undecided
Unassigned
hplip (Ubuntu)
Invalid
Undecided
Unassigned
Lucid
Invalid
Undecided
Unassigned

Bug Description

Since hplip version 3.9.10, when trying to scan via gnome-scan, I get the following SIGSEGV in hplip

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb371db70 (LWP 6503)]
0xb3ca70db in sane_hpaio_control_option (handle=0x825d000, option=10, action=SANE_ACTION_GET_VALUE, pValue=0x0, pInfo=0xb371d1e8) at scan/sane/hpaio.c:2485
2485 scan/sane/hpaio.c: No such file or directory.
 in scan/sane/hpaio.c
(gdb) bt
#0 0xb3ca70db in sane_hpaio_control_option (handle=0x825d000, option=10, action=SANE_ACTION_GET_VALUE, pValue=0x0, pInfo=0xb371d1e8) at scan/sane/hpaio.c:2485
#1 0xb6d6a357 in sane_dll_control_option () from /usr/lib/libsane.so.1
#2 0xb6d68a39 in sane_control_option () from /usr/lib/libsane.so.1
#3 0xb6bc1bd7 in ?? () from /usr/lib/gnome-scan-1.0/libgsane.so
#4 0xb6bc35de in ?? () from /usr/lib/gnome-scan-1.0/libgsane.so
#5 0xb6bc42e9 in ?? () from /usr/lib/gnome-scan-1.0/libgsane.so
#6 0xb775011f in g_thread_create_proxy (data=0x82b6f40) at /build/buildd-glib2.0_2.22.2-2-i386-R8GTDn/glib2.0-2.22.2/glib/gthread.c:635
#7 0xb76d8585 in start_thread () from /lib/i686/cmov/libpthread.so.0
#8 0xb765a2be in clone () from /lib/i686/cmov/libc.so.6
(gdb)

Revision history for this message
Philipp Schlesinger (philipp-sadleder) wrote :

IIs there anything I can do help track down that bug?
Wich addidional information should I provide?

Best regards,

    Philipp Sadleder

Revision history for this message
Naga Samrat Chowdary, Narla (samrat-hplip) wrote :

Please run "hp-check -t" and post the output.

Thank you for reporting with HPLIP,
Naga Samrat

Revision history for this message
Philipp Schlesinger (philipp-sadleder) wrote :
Download full text (8.5 KiB)

$ hp-check -t

HP Linux Imaging and Printing System (ver. 3.9.10)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to
successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper
dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux angelina 2.6.31-1-686 #1 SMP Sun Nov 15 20:39:33 UTC 2009 i686 GNU/Linux

Distribution:
debian unstable

Checking Python version...
OK, version 2.5.4 installed

Checking PyQt 4.x version...
error: NOT FOUND OR FAILED TO LOAD!

Checking for CUPS...
Status: scheduler is running
error: Version: (Not available. CUPS may not be installed or not running.)

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: CUPS image - CUPS image development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for depende...

Read more...

Changed in hplip:
status: New → Confirmed
Changed in hplip:
status: Confirmed → Invalid
Revision history for this message
Naga Samrat Chowdary, Narla (samrat-hplip) wrote :

This is not a bug in HPLIP.
This is happening, because gnome-scan is trying to set values for scan descriptor(s), which is null. This may be because of improper enumerating of device.
gnome-scan needs to enumerate the device to get exact values for each option descriptors Ex: 2=mode, 3=resolution, 5=contrast, 6=compression, etc.

These values for options may vary from device to device.

This is mainly happening, gnome-scan utility trying to set descriptor 10. But descriptor 10 is null. (not assigned to anything).
But it is supposed to assign scan source to descriptor 9.

You can cross verify the same with either "hp-scan" or be using "xsane" utility.
Both these utilities are working fine.

Thanks!
Naga Samrat Chowdary, Narla

Revision history for this message
Philipp Schlesinger (philipp-sadleder) wrote :

Thank you Naga Samrat Chowdary, Narla for commenting on the bug.

Étienne, do you think we can fix that bug for Lucid?

Best regards,

   Philipp

Revision history for this message
Naga Samrat Chowdary, Narla (samrat-hplip) wrote :

gnome-scan need to call sane_hpaio_control_option with "option=9" to set duplex instead of "option=10".
This call is happening from gnome-scan.
sane_hpaio_control_option (handle=0x825d000, option=10, action=SANE_ACTION_GET_VALUE, pValue=0x0, pInfo=0xb371d1e8)

From HPLIP no code change is required. I am not sure about "flegita" code.

Thanks!
Naga Samrat Chowdary, Narla

Changed in hplip (Ubuntu):
status: New → Invalid
Changed in gnome-scan:
status: Unknown → Invalid
Changed in gnome-scan:
importance: Unknown → Critical
status: Invalid → Expired
Revision history for this message
Rolf Leggewie (r0lf) wrote :

This bug has enough information for a developer to start working on it (especially comment 6). Setting to confirmed. I think you may want to consider reporting the problem upstream to get it fixed as fast as possible.

https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-scan

Changed in gnomescan (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Rolf Leggewie (r0lf) wrote :

did a quick grep through gnomescan source to prepare a patch for testing but could not find where the setting referenced in comment 6 is set.

Changed in gnome-scan:
status: Expired → New
Revision history for this message
Rolf Leggewie (r0lf) wrote :

I think http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=583273 is the same but I won't yet set it as upstream ticket

Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in gnomescan (Ubuntu Lucid):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.