Bug#961345: cups: daemon crashes with invalid free()
- To: Ronny Adsetts <ronny.adsetts@amazinginternet.com>
- Cc: 961345@bugs.debian.org, Peter Krefting <peter@softwolves.pp.se>
- Subject: Bug#961345: cups: daemon crashes with invalid free()
- From: Bernhard Übelacker <bernhardu@mailbox.org>
- Date: Tue, 1 Sep 2020 18:55:32 +0200
- Message-id: <[🔎] 4167c8bd-8a22-9250-efcf-34b9729b12f5@mailbox.org>
- Reply-to: Bernhard Übelacker <bernhardu@mailbox.org>, 961345@bugs.debian.org
- In-reply-to: <a640934e-9e03-4b94-9722-8206963a83d7@amazinginternet.com>
- References: <dfe58218-6630-a382-fb86-d0ad8741adb9@amazinginternet.com> <dfe58218-6630-a382-fb86-d0ad8741adb9@amazinginternet.com> <38245743-08f6-1088-7215-8ea4625075d2@mailbox.org> <a7e13584-0203-1212-ca0a-e6bb29caff99@amazinginternet.com> <c98e8bf2-fdf2-0778-8a93-baffd1e0b995@mailbox.org> <4cfc5dc5-f19e-21e8-049a-71afda5091ee@amazinginternet.com> <d2c4691e-aa99-9765-9e32-5f3d20dc842a@mailbox.org> <db904cff-0151-5cca-8d9a-fd739b2ad143@amazinginternet.com> <cfe2e27a-9dfe-5176-02db-75a8b3bdbefb@mailbox.org> <f44ddbbd-d2e8-acee-d560-77ac6cee6dba@amazinginternet.com> <c259f361-64e7-875a-233c-a565bcb3fc09@mailbox.org> <dd57b77f-5892-9410-5e00-db1e1fe0fe51@amazinginternet.com> <a37609d6-12df-e529-0bf9-14cb936fe900@mailbox.org> <a640934e-9e03-4b94-9722-8206963a83d7@amazinginternet.com> <159024216581.6368.16601126942547777227.reportbug@perkele.intern.softwolves.pp.se>
Hello Ronny,
> Incidentally, stopping the cups service (new packages) after a single print job when under valgrind gave this in case it's related:
>
> Aug 28 10:03:59 samba-prn-01.graysofwestminster.co.uk systemd[1]: Stopping CUPS Scheduler...
> Aug 28 10:04:00 samba-prn-01.graysofwestminster.co.uk valgrind[5238]: ==5238== Invalid free() / delete / delete[] / realloc()
> Aug 28 10:04:00 samba-prn-01.graysofwestminster.co.uk valgrind[5238]: ==5238== at 0x48369AB: free (vg_replace_malloc.c:538)
> Aug 28 10:04:00 samba-prn-01.graysofwestminster.co.uk valgrind[5238]: ==5238== by 0x4C73629: check_free (dlerror.c:202)
> Aug 28 10:04:00 samba-prn-01.graysofwestminster.co.uk valgrind[5238]: ==5238== by 0x4C73629: check_free (dlerror.c:186)
> Aug 28 10:04:00 samba-prn-01.graysofwestminster.co.uk valgrind[5238]: ==5238== by 0x4C73AB1: free_key_mem (dlerror.c:221)
> Aug 28 10:04:00 samba-prn-01.graysofwestminster.co.uk valgrind[5238]: ==5238== by 0x4C73AB1: __dlerror_main_freeres (dlerror.c:239)
This might be what is described in here:
https://sourceware.org/bugzilla/show_bug.cgi?id=24476
And I guess not related to the original issue.
At least could not reproduce this message
with libc6 2.31-3 in a up-to-date testing VM.
> So running with the patched cups packages seems to fix the "invalid free" on a test print. I've restored the systemd service file to remove valgrind so let's see how we go on a day's printing. :-).
Any news in this regard?
Kind regards,
Bernhard
Reply to: