Net::CUPS getDestination crashes with invalid pointer

Bug #452062 reported by Alexis Bienvenüe
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libnet-cups-perl (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: libnet-cups-perl

Crash with

perl -e 'use Net::CUPS;$cups=Net::CUPS->new();$cups->getDestination();'

$ lsb_release -rd
Description: Ubuntu karmic (development branch)
Release: 9.10

$apt-cache policy libnet-cups-perl
libnet-cups-perl:
  Installé : 0.59-1build1
  Candidat : 0.59-1build1
 Table de version :
 *** 0.59-1build1 0
        500 http://fr.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

ProblemType: Crash
Architecture: i386
AssertionMessage: *** glibc detected *** perl: free(): invalid pointer: 0x08e05dbc ***
CrashCounter: 1
Date: Thu Oct 15 12:43:55 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/perl
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Alpha i386 (20091013)
Package: perl-base 5.10.0-24ubuntu4
ProcCmdline: perl -e use\ Net::CUPS;$cups=Net::CUPS->new();$cups->getDestination();
ProcEnviron:
 SHELL=/bin/bash
 LANG=fr_FR.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.46-generic
Signal: 6
SourcePackage: perl
StacktraceTop:
 __kernel_vsyscall ()
 raise () from /lib/tls/i686/cmov/libc.so.6
 abort () from /lib/tls/i686/cmov/libc.so.6
 ?? () from /lib/tls/i686/cmov/libc.so.6
 ?? () from /lib/tls/i686/cmov/libc.so.6
Title: perl assert failure: *** glibc detected *** perl: free(): invalid pointer: 0x08e05dbc ***
Uname: Linux 2.6.31-14-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
XsessionErrors:
 (gnome-settings-daemon:2006): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:2006): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:2059): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:2070): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Revision history for this message
Alexis Bienvenüe (alexis.bienvenue) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt (retraced)

StacktraceTop:__kernel_vsyscall ()
*__GI_raise (sig=6)
*__GI_abort () at abort.c:92
__libc_message (do_abort=2,
malloc_printerr (action=<value optimized out>,

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt (retraced)
Changed in libnet-cups-perl (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
visibility: private → public
Revision history for this message
gregor herrmann (gregoa) wrote :

From upstream Changes:

0.60 Thu Jul 30 08:28:18 2009
        - Graham Jenkins <email address hidden> reported additional issues
          with the cleanup in the DESTROY method. Tweaked it to avoid
          double free issues.

The diff between 0.59 and 0.60 shows a change in this function (NETCUPS_freeDestination) which appears in the stacktrace:
http://search.cpan.org/diff?from=Net-CUPS-0.59&to=Net-CUPS-0.60

Debian has 0.60 in testing and unstable.

Revision history for this message
Alexis Bienvenüe (alexis.bienvenue) wrote :

I tried 0.60-1 (i386) from debian on my karmic box, and the command does not crash with this version.

Thanks,
Alexis Bienvenue.

PS: no problem with this command on another ubuntu 9.04 installation with libnet-cups-perl 0.59-1, though...

Revision history for this message
dino99 (9d9) wrote :

This version is outdated and no more supported

Changed in libnet-cups-perl (Ubuntu):
status: New → Invalid
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.