The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 23:14:35

Altoid
Member
Registered: 2017-05-07
Posts: 2,149  

CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Hello:

There was a large package upgrade thuis morning, CUPS packages among them.
As I was doing some clean up under the [Manage Job] page, attempting anything related to that (which need to connect to [localhost:631]) crashes the server.

It can be restarted via the etrminal with [service cups restart] and it seems that once restarted I can print, but any job management will crash the server again.

$ uname -a
Linux devuan 6.1.0-57-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.192-3 (2026-11-26) x86_64 GNU/Linux
$ 

Here is what [dmesg] prints out:

[ 2751.531262] cupsd[16317]: segfault at 0 ip 000055a2aa74376d sp 00007ffc4e7f1870 error 4 in cupsd[55a2aa73e000+4c000] likely on CPU 2 (core 2, socket 0)
[ 2751.531305] Code: 28 e8 37 b1 ff ff 49 89 c4 48 85 c0 0f 84 f3 00 00 00 48 8d 35 03 72 04 00 4c 89 e7 e8 2c ab ff ff 85 c0 75 1d 45 84 ed 74 18 <49> 8b 3f 48 8d b4 24 20 01 00 00 e8 bb c1 ff ff 85 c0 0f 84 36 fb

[segfault] and [CPU 2 (core 2, socket 0)]? Seems serious.

Q:
What would be the best/most reliable way to roll back to the previous version of CUPS?
It was working perfectly well and would happily keep it in my daedalus install.

Thanks in advance.

Best,

A.

Offline

#2 Today 10:43:44

fsmithred
Administrator
Registered: 2016-11-25
Posts: 3,028  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

In daedalus:
If you have the deb12u9 packages in /var/cache/apt/archives you can switch to that directory and run

dpkg --force-downgrade -i cups*2.4.2-3+deb12u9*.deb libcups2_2.4.2-3+deb12u9*.deb
service restart cups

If you don't have the packages in cache, you can get them here: https://ftp.debian.org/debian/pool/main/c/cups/

Offline

#3 Today 12:02:03

Altoid
Member
Registered: 2017-05-07
Posts: 2,149  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Hello:

Thank you for the fast reply.
Much appreciated.

In daedalus:
If you have the deb12u9 packages in /var/cache/apt/archives you can switch to that directory and run ...
If you don't have the packages in cache, you can get them here: https://ftp.debian.org/debian/pool/main/c/cups/

It seems that a crash can be caused by bad queue data, a stuck job or corrupted cache, which is where the jobs data is stored.
That data can be found in [/var/spool/cups/] and [/var/cache/cups/].

Makes sense: the crash happened when I attempted to delete an old job.

So I stopped the CUPS server and deleted all the files in [/var/spool/cups/] and all [*.cache] files from [/var/cache/cups/].
This cleaned up all printing history and finished, pending or stopped jobs.

Unfortunately, this did not fix the problem.
While I can print, I cannot do any job management because the server will crash when I try to reprint a job and it tries to access the server.

Now, [dmesg] prints out almost the same data:

[ 8696.447637] cupsd[26488]: segfault at 0 ip 000055913629876d sp 00007ffd39670be0 error 4 in cupsd[559136293000+4c000] likely on CPU 0 (core 0, socket 0)
[ 8696.447683] Code: 28 e8 37 b1 ff ff 49 89 c4 48 85 c0 0f 84 f3 00 00 00 48 8d 35 03 72 04 00 4c 89 e7 e8 2c ab ff ff 85 c0 75 1d 45 84 ed 74 18 <49> 8b 3f 48 8d b4 24 20 01 00 00 e8 bb c1 ff ff 85 c0 0f 84 36 fb

ie:

segfault at 0 ip 000055913629876d + error 4 in cupsd[55a2aa73e000+4c000]
segfault at 0 ip 000055a2aa74376d + error 4 in cupsd[55a2aa73e000+4c000]

Could this be something related to whatever mucking around CUPS is doing with the IPP files?
No idea, the previous version did not have this problem.
Till this upgrade came around, CUPS was working perfectly well from when I installed it eight years ago.

Checking on the CUPS configuration shows no problems but issues a warning:

# cupsd -t
Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103
"/etc/cups/cups-files.conf" is OK.
"/etc/cups/cupsd.conf" is OK.

@fsmithred
I will follow your instructions and roll back to the previous CUPS version.

Q:
I don't have the packages in [/var/cache/apt/archives].
Download them and copy to that directory?

I will also pin it, no need for all this hassle so early in the morning.
Or to stop being able to use my printer because of this new OpenPrinting feature.
A real fuck-up if you ask me.

I'll post the result, hopefully there is not something else at work here.

Best,

A.

Last edited by Altoid (Today 12:08:46)

Offline

#4 Today 17:33:26

RedGreen925
Member
Registered: 2024-12-07
Posts: 322  

Re: CUPS upgrade to [2.4.2-3+deb12u10] has a problem

Q:
I don't have the packages in [/var/cache/apt/archives].
Download them and copy to that directory?
I will also pin it

If you want to run the command in that directory then yes put them there. If not you can simply put them in any directory you want and run the command from there. The apt-mark hold cups will also work to prevent it being updated until fixed version is available.

Online

Board footer