Bug 659120

Summary: [abrt] gutenprint-5.2.6-1.fc14: stp_printer_get_defaults: Process /usr/bin/escputil was killed by signal 11 (SIGSEGV)
Product: [Fedora] Fedora Reporter: dobs <webmaster>
Component: gutenprintAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: jpopelka, kklic, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:57b742bf4089ea9ec6b6fc9983b6f1db51d44ecc
Fixed In Version: gutenprint-5.2.6-2.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-03 19:56:51 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
patch none

Description dobs 2010-12-01 23:26:52 UTC
abrt version: 1.1.14
architecture: x86_64
Attached file: backtrace
cmdline: escputil -i -u -r /dev/usb/lp0
component: gutenprint
crash_function: stp_printer_get_defaults
executable: /usr/bin/escputil
kernel: 2.6.35.6-48.fc14.x86_64
package: gutenprint-5.2.6-1.fc14
rating: 4
reason: Process /usr/bin/escputil was killed by signal 11 (SIGSEGV)
release: Fedora release 14 (Laughlin)
time: 1291245954
uid: 500

comment
-----
escputil -i -u -r /dev/usb/lp0 
Escputil version 5.2.6, Copyright (C) 2000-2006 Robert Krawitz
Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l'
This is free software, and you are welcome to redistribute it
under certain conditions; type 'escputil -l' for details.

Unknown printer Stylus C67!
Ошибка сегментирования (core dumped)

How to reproduce
-----
1. chmod 666 /dev/usb/lp0
2. escputil -i -u -r /dev/usb/lp0

Comment 1 dobs 2010-12-01 23:26:55 UTC
Created attachment 464128 [details]
File: backtrace

Comment 2 Jiri Popelka 2010-12-02 11:58:49 UTC
Created attachment 464234 [details]
patch

Seems like null pointer access.

Please try this scratch-build
http://koji.fedoraproject.org/koji/taskinfo?taskID=2638984

Comment 3 dobs 2010-12-03 13:03:08 UTC
[root@wifi tmp]# rpm -U gutenprint-5.2.6-2.fc14.x86_64.rpm gutenprint-cups-5.2.6-2.fc14.x86_64.rpm 
[root@wifi tmp]# ls -lah /dev/usb/lp0 
crw-rw---- 1 root lp 180, 0 Дек  3 14:28 /dev/usb/lp0
[root@wifi tmp]# chmod 666 /dev/usb/lp0
[root@wifi tmp]# ls -lah /dev/usb/lp0 
crw-rw-rw- 1 root lp 180, 0 Дек  3 14:28 /dev/usb/lp0

[dobs@wifi ~]$ escputil -i -u -r /dev/usb/lp0
Escputil version 5.2.6, Copyright (C) 2000-2006 Robert Krawitz
Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l'
This is free software, and you are welcome to redistribute it
under certain conditions; type 'escputil -l' for details.

Cannot open /dev/usb/lp0 read/write: Отказано в доступе
[dobs@wifi ~]$ escputil -i -u -r /dev/usb/lp0
Escputil version 5.2.6, Copyright (C) 2000-2006 Robert Krawitz
Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l'
This is free software, and you are welcome to redistribute it
under certain conditions; type 'escputil -l' for details.

Unknown printer Stylus C67!
           Ink color       Percent remaining
    Черный (K)                      12
  Голубой (C)                      17
Пурпурный (M)                      28
    Желтый (Y)                      27
Ошибка сегментирования (core dumped)


Thanks it works, but in last line have segmentation error, in abrt no info...

Comment 4 Karel Klíč 2010-12-03 13:54:10 UTC
If you want ABRT to catch crashes in unsigned packages (such as scratch builds from koji), you must edit /etc/abrt/abrt.conf so it contains:

OpenGPGCheck = no

Comment 5 dobs 2010-12-06 23:29:25 UTC
Reboot PC help)
[dobs@wifi ~]$ escputil -i -u -r /dev/usb/lp0
Escputil version 5.2.6, Copyright (C) 2000-2006 Robert Krawitz
Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l'
This is free software, and you are welcome to redistribute it
under certain conditions; type 'escputil -l' for details.

Unknown printer Stylus C67!
           Ink color       Percent remaining
    Черный (K)                      12
  Голубой (C)                      17
Пурпурный (M)                      28
    Желтый (Y)                      27
[dobs@wifi ~]$ 



All OK. Thanks :)

Comment 6 Fedora Update System 2010-12-07 10:34:17 UTC
gutenprint-5.2.6-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/gutenprint-5.2.6-2.fc14

Comment 7 Fedora Update System 2010-12-07 10:35:24 UTC
gutenprint-5.2.6-2.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/gutenprint-5.2.6-2.fc13

Comment 8 Fedora Update System 2010-12-07 20:13:40 UTC
gutenprint-5.2.6-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gutenprint'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/gutenprint-5.2.6-2.fc13

Comment 9 Fedora Update System 2011-01-03 19:56:17 UTC
gutenprint-5.2.6-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2011-01-03 19:57:39 UTC
gutenprint-5.2.6-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.