brcupsconfig3 assert failure: *** stack smashing detected ***: /usr/Brother/cupswrapper/brcupsconfig3 terminated

Bug #438356 reported by isbel
242
This bug affects 24 people
Affects Status Importance Assigned to Milestone
brother-cups-wrapper-laser (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: brother-cups-wrapper-laser

Printing some pages from a large Djvu document takes a long time. Printer Brother HL2030 via a printer server.

ProblemType: Crash
Architecture: i386
AssertionMessage: *** stack smashing detected ***: /usr/Brother/cupswrapper/brcupsconfig3 terminated
Date: Mon Sep 28 21:27:01 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/Brother/cupswrapper/brcupsconfig3
Package: brother-cups-wrapper-laser 2.0.1-2-0ubuntu5
ProcCmdline: /usr/Brother/cupswrapper/brcupsconfig3 HL2030 /etc/cups/ppd/HL2030.ppd 0 PageSize=A4\ BrMediaType=PLAIN\ Resolution=600dpi\ number-up-layout=lrtb\ Sleep=PrinterDefault\ number-up=2\ TonerSaveMode=On\ InputSlot=TRAY1\ job-uuid=urn:uuid:a600b227-796e-337f-4429-2927592dae65\ job-originating-host-name=localhost
ProcEnviron:
 PATH=(custom, no user)
 LANG=sv_SE.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
Signal: 6
SourcePackage: brother-cups-wrapper-laser
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
 __fortify_fail () from /lib/tls/i686/cmov/libc.so.6
Title: brcupsconfig3 assert failure: *** stack smashing detected ***: /usr/Brother/cupswrapper/brcupsconfig3 terminated
Uname: Linux 2.6.31-11-generic i686
UserGroups:

Revision history for this message
isbel (isbel-l) 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,
*__GI___fortify_fail (

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt (retraced)
Changed in brother-cups-wrapper-laser (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
visibility: private → public
Revision history for this message
Brian J. Murrell (brian-interlinx) wrote :

And so... Any resolution to this?

I guess this will teach us all not to buy hardware that does not provide source for or otherwise open drivers and/or specifications.

I will NEVER, EVER buy another Brother product again so long as they continue to not provide open drivers. And I will advise friends and colleagues to never buy Brother products.

Revision history for this message
mbrudka (mbrudka) wrote :

Brian,

I observed the same bug for my HL-2030, when my Ubuntu run out of disk space in /tmp. After some disk cleaning, the printer started working perfectly. HTH.

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

What did you do when this happened? Are you able to reproduce it with newer versions of Ubuntu?

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Ah, I see there are duplicate bugs from Ubuntu 11.04, so it seems this bug is still present.

tags: added: natty
Revision history for this message
Vlad (servervd) wrote : Re: [Bug 438356] Re: brcupsconfig3 assert failure: *** stack smashing detected ***: /usr/Brother/cupswrapper/brcupsconfig3 terminated

It happened long time ago and at that time I had from somewhere installed my printer that doesn't have specific driver just general Brother HL-2030 and my pritner is Brother HL-2035. Don't remember where did I get that driver either. Had something to do with OpenOffice at that time and this problem occurred couple of times but nothing serious and I didn't loose any data. All it required was to restart OpenOffice and everything was ok. Didn't get this error for a while so I guess it's all sorted.

________________________________
From: Marius Kotsbak <email address hidden>
To: <email address hidden>
Sent: Wednesday, May 25, 2011 11:59 AM
Subject: [Bug 438356] Re: brcupsconfig3 assert failure: *** stack smashing detected ***: /usr/Brother/cupswrapper/brcupsconfig3 terminated

What did you do when this happened? Are you able to reproduce it with
newer versions of Ubuntu?

--
You received this bug notification because you are a direct subscriber
of a duplicate bug (542065).
https://bugs.launchpad.net/bugs/438356

Title:
  brcupsconfig3 assert failure: *** stack smashing detected ***:
  /usr/Brother/cupswrapper/brcupsconfig3 terminated

Status in “brother-cups-wrapper-laser” package in Ubuntu:
  New

Bug description:
  Binary package hint: brother-cups-wrapper-laser

  Printing some pages from a large Djvu document takes a long time.
  Printer Brother HL2030 via a printer server.

  ProblemType: Crash
  Architecture: i386
  AssertionMessage: *** stack smashing detected ***: /usr/Brother/cupswrapper/brcupsconfig3 terminated
  Date: Mon Sep 28 21:27:01 2009
  DistroRelease: Ubuntu 9.10
  ExecutablePath: /usr/Brother/cupswrapper/brcupsconfig3
  Package: brother-cups-wrapper-laser 2.0.1-2-0ubuntu5
  ProcCmdline: /usr/Brother/cupswrapper/brcupsconfig3 HL2030 /etc/cups/ppd/HL2030.ppd 0 PageSize=A4\ BrMediaType=PLAIN\ Resolution=600dpi\ number-up-layout=lrtb\ Sleep=PrinterDefault\ number-up=2\ TonerSaveMode=On\ InputSlot=TRAY1\ job-uuid=urn:uuid:a600b227-796e-337f-4429-2927592dae65\ job-originating-host-name=localhost
  ProcEnviron:
   PATH=(custom, no user)
   LANG=sv_SE.UTF-8
  ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
  Signal: 6
  SourcePackage: brother-cups-wrapper-laser
  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
   __fortify_fail () from /lib/tls/i686/cmov/libc.so.6
  Title: brcupsconfig3 assert failure: *** stack smashing detected ***: /usr/Brother/cupswrapper/brcupsconfig3 terminated
  Uname: Linux 2.6.31-11-generic i686
  UserGroups:

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/ubuntu/+source/brother-cups-wrapper-laser/+bug/438356/+subscribe

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in brother-cups-wrapper-laser (Ubuntu):
status: New → Confirmed
tags: added: precise
Revision history for this message
Jan Willamowius (jan-willamowius) wrote :

brcupsconfig3 is crashing because it uses a very small buffer when anaylsing the command line parameters and it doesn't check the size of the command line it copies into this buffer.

The attached patch makes the buffer larger and makes sure it doesn't copy more bytes than the buffer can hold.

This fixes the crash I had on my machine, but the code is full of buffers with static sizes and no size checks...

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix for brcupsconfig3" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Jan Willamowius (jan-willamowius) wrote :

This bug is still present in Ubuntu 20.04, 6 years after I submit a patch. Wow!

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.