Bug 572775
Summary: | SIGSEGV in fileno on call to ppdOpen(NULL, ) running /usr/bin/hp-toolbox | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ken Dubrick <ken> | ||||||
Component: | hplip | Assignee: | Tim Waugh <twaugh> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 12 | CC: | dmalcolm, ivazqueznet, james.antill, jonathansteffan, jpopelka, twaugh | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i686 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | abrt_hash:fc49dd40c14be448d90f18edd78e16fdadf706e8 | ||||||||
Fixed In Version: | hplip-3.10.5-1.fc12 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2010-07-27 02:44:40 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
Ken Dubrick
2010-03-12 00:14:22 UTC
Created attachment 399511 [details]
File: backtrace
Thank you for reporting this bug. How reproducible is this problem? If you run the program from a terminal, is an error message printed? What is the output of running the following command? rpm -q hplip-gui cups-libs hplip-libs Looking at the backtrace, it looks like the problem occurred in the program's single thread in fileno with a NULL pointer. It looks like the openPPD was somehow called with a NULL file, and this led to the SIGSEGV. Reassigning component from "python" to "hplip"; hopefully the hplip maintainer will be able to figure this out further or reassign as necessary. If you need to track down exactly what is happening in the Python code, it may be possible to use this Fedora 13 feature: https://fedoraproject.org/wiki/Features/EasierPythonDebugging by copying this file: http://fedorapeople.org/gitweb?p=dmalcolm/public_git/libpython.git;a=blob;f=libpython.py;hb=HEAD to: /usr/lib/debug/usr/lib/libpython2.6.so.1.0.debug-gdb.py (assuming a 32-bit box like the one in this report) and regenerating the backtrace. Note: this is segfaulting in the HPLIP Python extension for cups, not from pycups in system-config-printer-libs. Created attachment 400861 [details]
suggested patch
This should (I don't know how to reproduce) prevent hplip from crashing.
Here's a really easy way to trigger this:
$ python
>>> import cupsext
>>> cupsext.openPPD ('')
Basically any argument will work as long as it isn't a real queue name.
Reported upstream. Not sure whether they want the interface to return None there or raise an exception. hplip-3.10.5-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/hplip-3.10.5-1.fc13 hplip-3.10.5-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/hplip-3.10.5-1.fc12 hplip-3.10.5-1.fc12 has been pushed to the Fedora 12 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 hplip'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/hplip-3.10.5-1.fc12 hplip-3.10.5-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. hplip-3.10.5-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |