Debian Bug report logs - #975387
wrong size check for display_callback_v2_s struct

version graph

Package: libgs9; Maintainer for libgs9 is Debian Printing Team <debian-printing@lists.debian.org>; Source for libgs9 is src:ghostscript (PTS, buildd, popcon).

Affects: evince

Reported by: Patrice Duroux <patrice.duroux@gmail.com>

Date: Sat, 21 Nov 2020 13:30:01 UTC

Severity: serious

Tags: patch

Merged with 975574, 977754

Found in versions ghostscript/9.53.3~dfsg-5, ghostscript/9.53.0~dfsg-1

Fixed in version 9.53.3~dfsg-6

Done: Jonas Smedegaard <jonas@jones.dk>

Bug is archived. No further changes may be made.

Forwarded to https://bugs.ghostscript.com/show_bug.cgi?id=703301

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Krap Maintainers <debian-qt-kde@lists.debian.org>:
Bug#975387; Package libspectre1. (Sat, 21 Nov 2020 13:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Patrice Duroux <patrice.duroux@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian Krap Maintainers <debian-qt-kde@lists.debian.org>. (Sat, 21 Nov 2020 13:30:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Patrice Duroux <patrice.duroux@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libspectre1: evince hangs with PS files, is there a need to rebuild it?
Date: Sat, 21 Nov 2020 14:27:51 +0100
Package: libspectre1
Version: 0.2.9-1
Severity: important

Dear Maintainer,

I am facing the exact situation reported here with evince:
https://bbs.archlinux.org/viewtopic.php?id=259223
and their solution was:
https://github.com/archlinux/svntogit-
packages/commits/packages/libspectre/trunk

Maybe libspectre should be rebuilt using 9.53.3~dfsg-5. No?

Thanks,
Patrice



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-3-amd64 (SMP w/12 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libspectre1 depends on:
ii  libc6   2.31-4
ii  libgs9  9.53.3~dfsg-5

libspectre1 recommends no packages.

libspectre1 suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Krap Maintainers <debian-qt-kde@lists.debian.org>:
Bug#975387; Package libspectre1. (Sun, 22 Nov 2020 17:06:04 GMT) (full text, mbox, link).


Acknowledgement sent to Patrice Duroux <patrice.duroux@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Krap Maintainers <debian-qt-kde@lists.debian.org>. (Sun, 22 Nov 2020 17:06:04 GMT) (full text, mbox, link).


Message #10 received at 975387@bugs.debian.org (full text, mbox, reply):

From: Patrice Duroux <patrice.duroux@gmail.com>
To: 975387@bugs.debian.org
Subject: Re: libspectre1: evince hangs with PS files, is there a need to rebuild it?
Date: Sun, 22 Nov 2020 18:02:34 +0100
And I confirm that rebuilding it targeting unstable distribution solved this.





Information forwarded to debian-bugs-dist@lists.debian.org, monga@debian.org, Debian Krap Maintainers <debian-qt-kde@lists.debian.org>:
Bug#975387; Package libspectre1. (Mon, 30 Nov 2020 07:54:04 GMT) (full text, mbox, link).


Acknowledgement sent to Mattia Monga <monga@debian.org>:
Extra info received and forwarded to list. Copy sent to monga@debian.org, Debian Krap Maintainers <debian-qt-kde@lists.debian.org>. (Mon, 30 Nov 2020 07:54:04 GMT) (full text, mbox, link).


Message #15 received at 975387@bugs.debian.org (full text, mbox, reply):

From: Mattia Monga <monga@debian.org>
To: Debian Bug Tracking System <975387@bugs.debian.org>
Subject: Re: libspectre1: evince hangs with PS files, is there a need to rebuild it?
Date: Mon, 30 Nov 2020 08:51:45 +0100
Package: libspectre1
Version: 0.2.9-1
Followup-For: Bug #975387
X-Debbugs-Cc: monga@debian.org

I can confirm rebuild the library solves the problem on my system:

apt source libspectre1
sudo apt build-dep libspectre1
cd libspectre-0.2.9/
debuild -us -uc




-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-4-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libspectre1 depends on:
ii  libc6   2.31-4
ii  libgs9  9.53.3~dfsg-5

libspectre1 recommends no packages.

libspectre1 suggests no packages.

-- no debconf information



Merged 975387 977754 Request was from Simon McVittie <smcv@debian.org> to control@bugs.debian.org. (Mon, 21 Dec 2020 19:00:04 GMT) (full text, mbox, link).


Added indication that 975387 affects evince Request was from Simon McVittie <smcv@debian.org> to control@bugs.debian.org. (Mon, 21 Dec 2020 19:00:04 GMT) (full text, mbox, link).


Bug reassigned from package 'libspectre1' to 'libgs9'. Request was from Pino Toscano <pino@debian.org> to control@bugs.debian.org. (Tue, 22 Dec 2020 09:12:05 GMT) (full text, mbox, link).


No longer marked as found in versions libspectre/0.2.9-1. Request was from Pino Toscano <pino@debian.org> to control@bugs.debian.org. (Tue, 22 Dec 2020 09:12:06 GMT) (full text, mbox, link).


Marked as found in versions ghostscript/9.53.0~dfsg-1. Request was from Pino Toscano <pino@debian.org> to control@bugs.debian.org. (Tue, 22 Dec 2020 09:12:07 GMT) (full text, mbox, link).


Changed Bug title to 'wrong size check for display_callback_v2_s struct' from 'libspectre1: evince hangs with PS files, is there a need to rebuild it?'. Request was from Pino Toscano <pino@debian.org> to control@bugs.debian.org. (Tue, 22 Dec 2020 09:12:07 GMT) (full text, mbox, link).


Severity set to 'serious' from 'important' Request was from Pino Toscano <pino@debian.org> to control@bugs.debian.org. (Tue, 22 Dec 2020 09:12:08 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://bugs.ghostscript.com/show_bug.cgi?id=703301'. Request was from Pino Toscano <pino@debian.org> to control@bugs.debian.org. (Tue, 22 Dec 2020 09:12:09 GMT) (full text, mbox, link).


Added tag(s) patch. Request was from Pino Toscano <pino@debian.org> to control@bugs.debian.org. (Tue, 22 Dec 2020 09:12:10 GMT) (full text, mbox, link).


Marked as found in versions ghostscript/9.53.3~dfsg-5. Request was from Pino Toscano <pino@debian.org> to control@bugs.debian.org. (Tue, 22 Dec 2020 09:15:04 GMT) (full text, mbox, link).


Merged 975387 975574 977754 Request was from Pino Toscano <pino@debian.org> to control@bugs.debian.org. (Tue, 22 Dec 2020 09:15:08 GMT) (full text, mbox, link).


Message #38 received at 977754-done@bugs.debian.org (full text, mbox, reply):

From: Jonas Smedegaard <jonas@jones.dk>
To: 977754-done@bugs.debian.org,
Cc: Patrice Duroux <duroux.patrice@orange.fr>, Pino Toscano <pino@debian.org>, Simon McVittie <smcv@debian.org>, libspectre@packages.debian.org
Subject: Re: Bug#977754: evince does not display EPS or PS files anymore and shows "Loading..." forever
Date: Sun, 27 Dec 2020 03:53:01 +0100
[Message part 1 (text/plain, inline)]
Version: 9.53.3~dfsg-6

Quoting Pino Toscano (2020-12-22 10:08:12)
> In data lunedì 21 dicembre 2020 18:23:12 CET, Simon McVittie ha scritto:
> > > On my side, rebuilding libspectre1 solved this on my system.
> > 
> > If a simple rebuild with no source changes fixes the symptoms of a 
> > bug, that might indicate an unintended ABI break in libgs9, or 
> > perhaps a bug in the old libgs9 headers (but fixed in the new 
> > headers) in code that gets inlined into libspectre at compile time.
> 
> Both of them are issues in ghostscript anyway.

This was fixed in Ghostscript since release 9.53.3~dfsg-6 - I just 
forgot to mention it in changelog (that will be corrected in next 
release).

Thanks to all involved in triaging this bug,

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 31 Jan 2021 07:27:35 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 23 19:36:43 2026; Machine Name: berlioz

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.