[Bug 545755] Re: system-config-printer.py assert failure: *** glibc detected *** python: realloc(): invalid next size: 0x091d93e0 ***

Bug Watch Updater 545755 at bugs.launchpad.net
Fri Oct 27 06:02:10 UTC 2017


Launchpad has imported 22 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=567386.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2010-02-22T20:04:46+00:00 Edgar wrote:

abrt 1.0.6 detected a crash.

architecture: x86_64
Attached file: backtrace
cmdline: python /usr/share/system-config-printer/applet.py
component: system-config-printer
executable: /usr/bin/python
kernel: 2.6.31.12-174.2.3.fc12.x86_64
package: system-config-printer-1.1.16-13.fc12
rating: 4
reason: Process was terminated by signal 6 (Aborted)
release: Fedora release 12 (Constantine)

How to reproduce
-----
I don't know how to reproduce.
I just printed something and deleted some jobs from the print server queue, and then the printer applet crashes.

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/0

------------------------------------------------------------------------
On 2010-02-22T20:04:48+00:00 Edgar wrote:

Created attachment 395557
File: backtrace

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/1

------------------------------------------------------------------------
On 2010-02-23T10:29:42+00:00 Jiri wrote:

Can you describe how exactly did you deleted those jobs ? Thanks.

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/2

------------------------------------------------------------------------
On 2010-02-23T15:36:19+00:00 Tim wrote:

So the crash was from freeing the list of Connection objects, and it was
most likely caused by some kind of memory scribble.

The only thing I can see wrong in that code is that it assumes the to-
be-dealloc'd Connection object appears in the list.  However, it ought
to.

Anyway, I can harden that (to protect against e.g. bit-errors) by only
removing the object from the list if it appears there in the first
place.  Hopefully that will prevent this kind of problem.

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/3

------------------------------------------------------------------------
On 2010-02-23T16:31:10+00:00 Tim wrote:

Fixed upstream.

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/4

------------------------------------------------------------------------
On 2010-03-08T15:18:00+00:00 Tim wrote:

I've discovered the reason for this, and have confirmed that the
upstream fix is correct.

First, a reproducer:

==>
import signal
import cups

def alarmclock (signum, frame):
    raise KeyboardInterrupt

signal.signal (signal.SIGALRM, alarmclock)
connections = []
while True:
    # Create
    signal.alarm (10)
    connections.append (cups.Connection ())
    signal.alarm (0)
<==

This just keeps creating more and more connections until cupsd stops
accepting them (when it hits its maximum file descriptor count).  At
that point, the program raises an exception and exits.

What happens is that Connection_init() fails *before* the newly-
allocated Connection object is added into the list.  As the
initialization failed, the object is deallocated with
Connection_dealloc(), and of course that assumes the object is in the
list.

So the correct behaviour is to verify that the connection is in the list
before trying to remove it.

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/5

------------------------------------------------------------------------
On 2010-03-08T15:48:01+00:00 Jiri wrote:

*** Bug 571356 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/6

------------------------------------------------------------------------
On 2010-03-08T15:49:29+00:00 Jiri wrote:

*** Bug 570806 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/7

------------------------------------------------------------------------
On 2010-03-10T10:48:13+00:00 Fedora wrote:

system-config-printer-1.1.93-6.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/system-config-printer-1.1.93-6.fc13

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/8

------------------------------------------------------------------------
On 2010-03-11T07:20:10+00:00 Fedora wrote:

system-config-printer-1.1.93-6.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 system-config-printer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.1.93-6.fc13

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/9

------------------------------------------------------------------------
On 2010-03-13T11:25:20+00:00 Fedora wrote:

system-config-printer-1.1.18-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-1.fc12

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/10

------------------------------------------------------------------------
On 2010-03-13T11:27:40+00:00 Fedora wrote:

system-config-printer-1.1.18-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-1.fc11

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/11

------------------------------------------------------------------------
On 2010-03-13T11:28:33+00:00 Tim wrote:

*** Bug 573157 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/12

------------------------------------------------------------------------
On 2010-03-15T08:59:01+00:00 Jiri wrote:

*** Bug 573379 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/13

------------------------------------------------------------------------
On 2010-03-16T00:38:47+00:00 Fedora wrote:

system-config-printer-1.1.18-1.fc11 has been pushed to the Fedora 11 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 system-config-printer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-1.fc11

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/14

------------------------------------------------------------------------
On 2010-03-16T00:52:51+00:00 Fedora wrote:

system-config-printer-1.1.18-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 system-config-printer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-1.fc12

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/15

------------------------------------------------------------------------
On 2010-03-16T23:21:15+00:00 Fedora wrote:

system-config-printer-1.1.93-6.fc13 has been pushed to the Fedora 13
stable repository.  If problems still persist, please make note of it in
this bug report.

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/16

------------------------------------------------------------------------
On 2010-03-18T03:15:15+00:00 Fedora wrote:

system-config-printer-1.1.18-2.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 system-config-printer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-2.fc12

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/17

------------------------------------------------------------------------
On 2010-03-18T03:29:39+00:00 Fedora wrote:

system-config-printer-1.1.18-2.fc11 has been pushed to the Fedora 11 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 system-config-printer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-2.fc11

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/18

------------------------------------------------------------------------
On 2010-03-20T03:39:30+00:00 Fedora wrote:

system-config-printer-1.1.18-2.fc12 has been pushed to the Fedora 12
stable repository.  If problems still persist, please make note of it in
this bug report.

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/19

------------------------------------------------------------------------
On 2010-03-23T02:11:37+00:00 Fedora wrote:

system-config-printer-1.1.18-2.fc11 has been pushed to the Fedora 11
stable repository.  If problems still persist, please make note of it in
this bug report.

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/20

------------------------------------------------------------------------
On 2010-03-29T15:55:13+00:00 Tim wrote:

*** Bug 556686 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/python-
cups/+bug/545755/comments/27


** Changed in: python-cups (Fedora)
       Status: Unknown => Fix Released

** Changed in: python-cups (Fedora)
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-cups in Ubuntu.
https://bugs.launchpad.net/bugs/545755

Title:
  system-config-printer.py assert failure: *** glibc detected ***
  python: realloc(): invalid next size: 0x091d93e0 ***

Status in python-cups package in Ubuntu:
  Fix Released
Status in python-cups package in Fedora:
  Fix Released

Bug description:
  Binary package hint: system-config-printer

  1st. System config printer is able to detect the printer on Windows Vista workstation but unable to make it work.
  2nd. When trying to delete the printer and again try to rediscover again, it suddenly crash.

  ProblemType: Crash
  Architecture: i386
  AssertionMessage: *** glibc detected *** python: realloc(): invalid next size: 0x091d93e0 ***
  CrashCounter: 1
  Date: Wed Mar 24 12:50:53 2010
  DistroRelease: Ubuntu 10.04
  ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
  InterpreterPath: /usr/bin/python2.6
  Lpstat:
   device for efax-printer: ipp://192.168.1.20:631/printers/efax-printer
   device for Epson-Stylus-T10: ipp://192.168.1.3:631/printers/Epson-Stylus-T10
   device for EPSON-Stylus-T11: ipp://192.168.1.8:631/printers/EPSON-Stylus-T11
  MachineType: Intel Corporation Axioo zetta
  Package: system-config-printer-gnome 1.1.17+20100217-0ubuntu2
  PackageArchitecture: all
  Papersize: letter
  ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-17-generic root=UUID=a026dab9-962d-4e12-b3c3-a87582b85eb2 ro quiet splash
  ProcCmdline: python /usr/share/system-config-printer/system-config-printer.py
  ProcEnviron:
   LANG=en_US.utf8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.32-17.26-generic 2.6.32.10+drm33.1
  Signal: 6
  SourcePackage: system-config-printer
  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: system-config-printer.py assert failure: *** glibc detected *** python: realloc(): invalid next size: 0x091d93e0 ***
  Uname: Linux 2.6.32-17-generic i686
  UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video
  dmi.bios.date: 12/03/2007
  dmi.bios.vendor: Phoenix Technologies LTD
  dmi.bios.version: SROSA001.86C.0046.D.0712031435
  dmi.board.name: SANTA ROSA
  dmi.board.vendor: Intel Corporation
  dmi.board.version: Not Applicable
  dmi.chassis.asset.tag: No Asset Tag
  dmi.chassis.type: 1
  dmi.chassis.vendor: No Enclosure
  dmi.chassis.version: N/A
  dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvrSROSA001.86C.0046.D.0712031435:bd12/03/2007:svnIntelCorporation:pnAxioozetta:pvrNotApplicable:rvnIntelCorporation:rnSANTAROSA:rvrNotApplicable:cvnNoEnclosure:ct1:cvrN/A:
  dmi.product.name: Axioo zetta
  dmi.product.version: Not Applicable
  dmi.sys.vendor: Intel Corporation

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-cups/+bug/545755/+subscriptions



More information about the foundations-bugs mailing list