[apport] system-config-printer.py crashed with SIGSEGV in free() //trying to print test page on my Canon i560

Bug #103878 reported by Merdyn
12
Affects Status Importance Assigned to Milestone
python-cups (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: system-config-printer

i have Canon i560 (in Japan known as PIXUS 560i) i have installed the printer with packages converted from a rpm package by alien version 8.64. - bjfiltercups v. 2.4-1, bjfilterpixus560i v. 2.4-1 from Canon. the printer seems to be installed, but it doesn't print anything...

ProblemType: Crash
Architecture: i386
Date: Fri Apr 6 22:41:54 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
InterpreterPath: /usr/bin/python2.5
Package: system-config-printer 0.7.62-0ubuntu1
PackageArchitecture: all
ProcCmdline: python /usr/share/system-config-printer/system-config-printer.py
ProcCwd: /home/merdyn
ProcEnviron:
 LANGUAGE=pl_PL:pl:en_GB:en
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: system-config-printer
StacktraceTop:
 free () from /lib/tls/i686/cmov/libc.so.6
 _ippFreeAttr () from /usr/lib/libcups.so.2
 ippDelete () from /usr/lib/libcups.so.2
 ?? () from /usr/lib/python2.5/site-packages/cups.so
 ?? ()
Uname: Linux ubuntu 2.6.20-14-386 #2 Mon Apr 2 20:34:35 UTC 2007 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin plugdev scanner video

Revision history for this message
Merdyn (merdyn) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:free () from /lib/tls/i686/cmov/libc.so.6
_ippFreeAttr (attr=0x8a1fa20) at ipp.c:2509
ippDelete (ipp=0x8a37868) at ipp.c:746
Connection_printTestPage (self=0x8304170, args=0x83ea1cc) at cupsconnection.c:2017
PyEval_EvalFrameEx (f=0x8a1f10c, throwflag=0) at ../Python/ceval.c:3564

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Changed in system-config-printer:
importance: Undecided → Medium
Revision history for this message
Tim Waugh (twaugh) wrote :

Please run the following command (it's all one line):

PYCUPS_DEBUG=1 python -c 'import cups; cups.Connection().printTestPage("Canon_i560_USB_1")'

What output do you get?

Revision history for this message
oxobfe (atucker) wrote :

I'm having a similar problem and I feel like I'm getting so close. I just upgraded my Xubuntu distro from Dapper to Edgy last night with a surprisingly smooth transition despite what I saw in Bug #68027. One of the main reasons for doing so was due to the pain I had getting CUPS to work and reading that a print config was added. Still, I tried to print a test page from the utility and the bug report popped up. I didn't submit right away cause I wanted to look into it some more. Is it necessary to see this report? If so, is it stored anywhere? Sorry, still new to this and I couldn't find a Help/FAQ.

Anyhow, I tried the above Python one-liner and first got a segfault which created a new unrelated bug report. I just upgraded Python and got the following:

PYCUPS_DEBUG=1 python -c 'import cups; cups.Connection().printTestPage("HL1440")'
-> Connection_init()
<- Connection_init() = 0

I don't know what to make of this, but if it helps to know my system at all, I'm using a Toshiba Satellite 2805-S603 connected to a Brother HL-1440 by USB.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

First of all, apport assigned this bug to the wrong package. The C code in the stack trace is from the Python bindings for CUPS, package python-cups. system-config-printer is pure python and therefore a platform-independent package, no C at all. pitti, can you look into this? I have moved the bug to python-cups now.

Second, I tried the Python one-liner, too, and it sends a job to my printer and gives no errors:

till@till-laptop:~/ubuntu/cupsys13$ PYCUPS_DEBUG=1 python -c 'import cups; cups.Connection().printTestPage("HP_LaserJet_3390")'
-> Connection_init()
httpConnectEncrypt(...)
<- Connection_init() = 0
httpClose()
till@till-laptop:~/ubuntu/cupsys13$

Perhaps this bug got already fixed in the upstream python-cups package.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, have you an idea whether this got already fixed in upstream python-cups?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Merdyn, can you try again with Gutsy (if you do not want to install it, use a live CD)?

Changed in python-cups:
status: New → Incomplete
Revision history for this message
Tim Waugh (twaugh) wrote :

No idea. I was expecting the output from comment #6, with httpConnectEncrypt(...) -- I cannot account for that line not showing in the output in comment #5.

Revision history for this message
Merdyn (merdyn) wrote :

I have tried gutsy gibbon tribe 4 live session - and now my printer works just fine. It wasn't installed automagically - I had to use "Add printer". Printer was recognized as Canon i560, and after few clicks I could print a somewhat changed (from previous version of ubuntu) test page. I haven't tested printing photos and I don't know what all the advanced "settings" or "properties" (in printer properties) mean.
OK, my printer (Canon i560) seems to work properly with gutsy gibbon. Thanks for suggestion, Till.
PS. I haven't use linux for some time, and in the meantime changed motherboard and processor to AMD64 architecture.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Works in Gutsy

Changed in python-cups:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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