adding or preferences crash

Bug #43416 reported by Dave Love
16
Affects Status Importance Assigned to Milestone
gnome-cups-manager (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: gnome-cups-manager

This is with current Dapper using gutenprint (with
an Epson DX3800 attached). It's a regression
from the last time I tried it with earlier Dapper
packages.

If I use Add Printer, I get a popup saying
`Reading printer database' and then a crash
notification from gnome-cups-add. I'll attach the
backtrace.

When the printer is installed directly with cups,
selecting its properties produces a crash
notification from `gnome-printer-view'.

Revision history for this message
Dave Love (fx-gnu) wrote : backtrace

Here's the backtrace from gnome-cups-add

Revision history for this message
Timo Kosig (tiomo) wrote :

I'm also getting those errors so i changed the status of this bug to confirmed. Please take note that i've also got a installed Epson DX Printer but i don't think that might be the cause for our troubles here. If i can be of any assistance please let me know by e-mail.

Changed in gnome-cups-manager:
status: Unconfirmed → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

It does not crash here, so it must be something printer specific. Can you please try to get a backtrace with debugging information as described on https://wiki.ubuntu.com/DebuggingProgramCrash ?

Thank you!

Changed in gnome-cups-manager:
status: Confirmed → Needs Info
Revision history for this message
peter (peter-campbell) wrote :

I am seeing the same behaviour: crash of gnome-cups-add at "reading the printer database" message.

attached is the backtrace after following the procedure in the wiki. hope this helps.

Revision history for this message
Dave Love (fx-gnu) wrote : Re: [Bug 43416] Re: adding or preferences crash

Martin Pitt <email address hidden> writes:

> It does not crash here, so it must be something printer specific.

I don't see how, since it happens with no printer attached after
purging everything that looked relevant and then re-installing.

> Can
> you please try to get a backtrace with debugging information as
> described on https://wiki.ubuntu.com/DebuggingProgramCrash ?

I'll see what I can do, though I'm not very enthusiastic about what I
suspect that involves for gnome stuff.

Revision history for this message
Dave Love (fx-gnu) wrote :

OK, it turns out not to be as bad to build as I feared.

This fixes the segv due to ppd_filename not containing a slash (though
basename is only used in the commented-out following printf). It's
from a Debian or Ubuntu patch that's not mentioned in changelog.

Revision history for this message
peter (peter-campbell) wrote : Re: [Bug 43416] Re: [Bug 43416] Re: adding or preferences crash

On Mon, 2006-05-15 at 12:41 +0000, Dave Love wrote:
> OK, it turns out not to be as bad to build as I feared.
>
> This fixes the segv due to ppd_filename not containing a slash (though
> basename is only used in the commented-out following printf). It's
> from a Debian or Ubuntu patch that's not mentioned in changelog.

I sure am glad you read gdb because it's all G(r)eek to me ;)

Revision history for this message
Dave Love (fx-gnu) wrote :

I wrote:

> This fixes the segv due to ppd_filename not containing a slash

Sigh. Launchpad has stripped the patch from my mail. I'll upload it
separately.

Revision history for this message
Dave Love (fx-gnu) wrote : missing patch

This is what I tried to mail before.

Revision history for this message
Dave Love (fx-gnu) wrote :

peter <email address hidden> writes:

> I sure am glad you read gdb because it's all G(r)eek to me ;)

For what it's worth, I debugged it before seeing your backtrace.

[What the debugging instructions don't tell you is how you might guess
which package is the relevant one to rebuild in case the crash is due
to a library, which is potentially non-trivial.]

Revision history for this message
peter (peter-campbell) wrote : Re: [Bug 43416] Re: adding or preferences crash

On Mon, 2006-05-15 at 16:35 +0000, Dave Love wrote:
> ** Attachment added: "missing patch"

Right on. How might this be applied, or might there be a fresh binary
package forthcoming ?

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks, Dave!

Changed in gnome-cups-manager:
assignee: nobody → pitti
status: Needs Info → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

 gnome-cups-manager (0.31-1.1ubuntu9) dapper; urgency=low
 .
   * debian/patches/gutenprint_driver_name.diff: Do not crash if a PPD file
     name does not contain a '/'. Thanks to Dave Love for debugging this and
     the patch. Closes: LP#43416

Changed in gnome-cups-manager:
status: In Progress → Fix Released
Revision history for this message
peter (peter-campbell) wrote :

This has fixed the reported behaviour for me. Thanks.

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.