Bug#940317: Re : Bug#940317: hplip: No more printing

2020-08-15 Thread Bernhard Übelacker
Dear Maintainer,
after additionally re-reading the merged bugs I think I
realized that function IsChromeOs searches the line "NAME=...",
but finds the line "PRETTY_NAME=...",
which overflows the variable os_name.

Kind regards,
Bernhard



Bug#940317: Re : Bug#940317: hplip: No more printing

2020-08-15 Thread Bernhard Übelacker
Dear Maintainer,
I was able to reproduce this issue, kind of.

I guess the debian release name stored in /etc/os-release is too long.

Therefore in /usr/lib/cups/filter/hpcups in function IsChromeOs
the local array os_name with length 30 is overwritten by 1 byte.

At least that issue I received when executing the cupsfilter command from
the previous mails, with the ppd created when setting up a printer selecting
the "HP Photosmart c4700 Series, hpcups" driver. (Details in attached file.)

The easiest fix might be to make this array in IsChromeOs e.g. 100 bytes long?

Kind regards,
Bernhard


(rr) reverse-cont
Continuing.

Hardware watchpoint 1: *0xbfb54eac

Old value = -1349680094
New value = -1349680128
IsChromeOs () at common/utils.c:39
39os_name[i]=*ptr;
1: x/i $pc
=> 0x433720 :   mov%dl,0x0(%ebp,%ecx,1)

(rr) bt
#0  IsChromeOs () at common/utils.c:39
#1  0x0041ba91 in HPCupsFilter::startPage (this=, 
cups_header=) at prnt/hpcups/HPCupsFilter.cpp:461
#2  0x0041c98d in HPCupsFilter::processRasterData (this=0x481ce0 , 
cups_raster=) at prnt/hpcups/HPCupsFilter.cpp:655
#3  0x0041cfc1 in HPCupsFilter::StartPrintJob (this=, 
argc=, argv=) at prnt/hpcups/HPCupsFilter.cpp:584
#4  0x0041a0ce in main (argc=6, argv=0xbfb55e34) at 
prnt/hpcups/HPCupsFilter.cpp:56

(rr) print os_name
$2 = "\"Debian GNU/Linux bullseye/sid"
(rr) print i
$3 = 30
(rr) print *ptr
$4 = 34 '"'

# Unstable i386 qemu VM 2020-08-14

apt update
apt dist-uprade


apt install systemd-coredump gdb git fakeroot mc cups printer-driver-hpcups 
hpijs-ppds printer-driver-hpijs hplip cups-filters foomatic-db cups-dbgsym 
cups-filters-dbgsym printer-driver-hpcups-dbgsym

apt build-dep rr


echo 1 > /proc/sys/kernel/perf_event_paranoid





root@debian:~# dpkg -l | grep -i -E 
"ghostscript|cups|foomatic|hpijs|hplip|printer"
ii  cups 2.3.3-2i386
 Common UNIX Printing System(tm) - PPD/driver support, web interface
ii  cups-browsed 1.27.5-2   i386
 OpenPrinting CUPS Filters - cups-browsed
ii  cups-client  2.3.3-2i386
 Common UNIX Printing System(tm) - client programs (SysV)
ii  cups-common  2.3.3-2all 
 Common UNIX Printing System(tm) - common files
ii  cups-core-drivers2.3.3-2i386
 Common UNIX Printing System(tm) - driverless printing
ii  cups-daemon  2.3.3-2i386
 Common UNIX Printing System(tm) - daemon
ii  cups-dbgsym  2.3.3-2i386
 debug symbols for cups
ii  cups-filters 1.27.5-2   i386
 OpenPrinting CUPS Filters - Main Package
ii  cups-filters-core-drivers1.27.5-2   i386
 OpenPrinting CUPS Filters - Driverless printing
ii  cups-ipp-utils   2.3.3-2i386
 Common UNIX Printing System(tm) - IPP developer/admin utilities
ii  cups-ppdc2.3.3-2i386
 Common UNIX Printing System(tm) - PPD manipulation utilities
ii  cups-server-common   2.3.3-2all 
 Common UNIX Printing System(tm) - server common files
ii  foomatic-db  20200527-1 all 
 OpenPrinting printer support - database
ii  foomatic-db-engine   4.0.13-5   i386
 OpenPrinting printer support - programs
rc  foomatic-filters 4.0.17-11  i386
 OpenPrinting printer support - filters
ii  ghostscript  9.52~dfsg-1i386
 interpreter for the PostScript language and for PDF
ii  hplip-data   3.20.5+dfsg0-3 all 
 HP Linux Printing and Imaging - data files
ii  ipp-usb  0.9.10-2   i386
 Daemon for IPP over USB printer support
ii  libcups2:i3862.3.3-2i386
 Common UNIX Printing System(tm) - Core library
ii  libcupsfilters1:i386 1.27.5-2   i386
 OpenPrinting CUPS Filters - Shared library
ii  libcupsimage2:i386   2.3.3-2i386
 Common UNIX Printing System(tm) - Raster image library
ii  libfontembed1:i386   1.27.5-2   i386
 OpenPrinting CUPS Filters - Font Embed Shared library
ii  libgutenprint-common 5.3.3-4all 
 support files for the Gutenprint printer driver library
ii  libgutenprint9   5.3.3-4i386
 runtime for 

Bug#940317: Re : Bug#940317: hplip: No more printing

2019-09-19 Thread nicolas . patrois
Le 19/09/2019 09:18:20, Didier 'OdyX' Raboud a écrit :

> I have fixed the detection of the Ghostscript version (as well as
> other minor bugs) in the 3.19.8+dfsg0-2 version, uploaded just now.

> Could you test this version and report back?

Nothing changes, the jobs enter the queue then immediately, they are said done 
(but not actually printed).
They are stuck in the queue but can’t be paused, just relaunched (that does not 
print either).
I removed the printers in the hplip toolbox then reinstalled them.
The 4700 refuses to install in USB (it’s connected this way) bacause hplip does 
not find a ppd.
It’s installed via network (a ppd is found) but there is no communication with 
it (red cross in hplip, device communication error).
The 5500 is connected via the network, a ppd is found but no printing is 
possible (the jobs are stuck).

I can scan with the 5500 with gnome-scan for example.

nicolas patrois : pts noir asocial
-- 
RÉALISME

M : Qu'est-ce qu'il nous faudrait pour qu'on nous considère comme des humains ? 
Un cerveau plus gros ?
P : Non... Une carte bleue suffirait...



Bug#940317: Re : Bug#940317: hplip: No more printing

2019-09-17 Thread Brian Potkin
tags 940317 - moreinfo
reassign 940317 printer-driver-hpcups
merge 940317 932246
thanks



On Mon 16 Sep 2019 at 21:05:45 +0200, nicolas.patr...@gmail.com wrote:

> In fact I have four ppd files (three for the 5534, one for the 4780).
> HP_ENVY_5530_series_AFD037_.ppd in 5830_1_* files.
> HP_ENVY_5530_series_AFD037_.ppd.O in 5830_2_* files.
> HP-ENVY-5530-series.ppd in 5830_3_* files.
> HP-Photosmart-C4700-series.ppd in 4700_* files.

Thanks for the logs. Two of them show

  *** stack smashing detected ***:  terminated
  ERROR: hpcups (PID 25874) crashed on signal 6

The message appears to be from gcc (it is in its source code), but I
haven't any idea where to go with this. You should be able to get the
5534 printing using driverless printing. See the wiki.

Cheers,

Brian.