Bug#573115: ghostscript: all PDF files give Error: /undefined

2010-03-10 Thread Jonas Smedegaard

Thank you all for the work and info on this issue.

Stupid me that did not think to test also on testing but only on 
unstable (where ghostscript is slightly newer through cherry-picked 
patches).



On Wed, Mar 10, 2010 at 08:40:33AM +0100, Markus Steinborn wrote:
I am the upstream GNU gv maintainer and I can confirm: Bernhard is 
absolutely right. This is not a GNU gv bug, but this problem is known 
upstream.


Taking a look at the upstream bug report 
https://savannah.gnu.org/bugs/?29023 helps: Take a look at 
https://bugzilla.redhat.com/show_bug.cgi?id=565935 (Well, it's for 
Fedora, but most likely other distributions are affected, too) - 
especially /Comment #11 
https://savannah.gnu.org/bugs/?29023#comment11/. You'll find that 
Ghostscript 8.71 is broken. A patch is available there. I am 
intentionally leaving this bug open but marked as invalid so it is as 
easy to find as possible.


This also explains why it works on Fedora: They have fixed the bug in 
Ghostscripzt 8.71.



Greetimngs from Germany


Greetings from denmark :-)


 - 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
Description: Digital signature


Bug#573115: ghostscript: all PDF files give Error: /undefined in copy_trailer_attrs

2010-03-09 Thread Jonas Smedegaard

Hi Peter,

On Tue, Mar 09, 2010 at 01:57:13PM +1100, Peter Billam wrote:

I just brought my debian squeeze up to date with   aptitude update
and   aptitude safe-upgrade,  and now my GPL Ghostscript 8.71 can't
display _any_ PDF files, not even those generated by gs version
8.71, nor those generated by previous versions of gs, like
 http://www.pjb.com.au/muscript/samples/courante.pdf
nor the PDF invoice my ISP just sent me :-(

It displays the the correct number of page-buttons down the
left-hand-side, but then every page it tries to display gives:

 Error: /undefined in copy_trailer_attrs
 Operand stack:

 Execution stack:
  %interp_exit   .runexec2   --nostringval--   --nostringval--
  --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
  --nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop
  1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3
  %oparray_pop   --nostringval--   %errorexec_pop   .runexec2
--nostringval--
  --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
 Dictionary stack:
  --dict:1159/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--
  --dict:108/127(ro)(G)--   --dict:288/300(ro)(G)--   --dict:21/25(L)--
 Current allocation mode is local
 Last OS error: 11
 GPL Ghostscript 8.71: Unrecoverable error, exit code 1

But all Postscript files seem to work fine.


What command did you invoke that lead to above error?

I tried the following (using the slightly newer ghostscript from 
unstable):


  wget http://www.pjb.com.au/muscript/samples/courante.pdf
  /usr/bin/gs courante.pdf

It displayed a page full of musical notes, and did not crash.



Versions of packages ghostscript recommends:
ii  psfontmgr 0.11.10-4  PostScript font manager -- part of


Did you try install above recommended package?

Do you perhaps have something odd below /usr/local which confuses 
ghostscript?



Kind regards,

 - 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
Description: Digital signature


Bug#573115: ghostscript: all PDF files give Error: /undefined

2010-03-09 Thread pj
Greetings Jonas, thanks for your prompt answer.

 What command did you invoke that lead to above error?

  /usr/bin/gv
and then o for open and do the file-dialogue thing. Or:
  /usr/bin/gv ~/www/muscript/samples/courante.pdf
gives the same error :-(

But on the other hand:
  /usr/bin/gs ~/www/muscript/samples/courante.pdf
displays the page perfectly :-)

So gs works, but gv fails (though when gv reports the error,
it reports it as a GPL Ghostscript error...)

  ii  psfontmgr 0.11.10-4  PostScript font manager --
 Did you try install above recommended package?

I've installed that now, but it hasn't changed the behaviour.

 Do you perhaps have something odd below /usr/local which
 confuses ghostscript?

Well /usr/local/lib seems like it's ahead of /usr/lib, which I
didn't know (and I wish it wasn't) but I don't think  there's
anything damaging there ...

box8:/etc/ld.so.conf.d# ldconfig -v
ldconfig: Can't stat /lib64: No such file or directory
/usr/local/lib:
libraptor.so.1 - libraptor.so.1.1.0
libsamplerate.so.0 - libsamplerate.so.0.1.4
libaubioext.so.2 - libaubioext.so.2.1.1
libwx_gtk2_stc-2.8.so.0 - libwx_gtk2_stc-2.8.so.0.5.0
libwx_gtk2_qa-2.8.so.0 - libwx_gtk2_qa-2.8.so.0.5.0
libwx_gtk2_xrc-2.8.so.0 - libwx_gtk2_xrc-2.8.so.0.5.0
libwx_gtk2_richtext-2.8.so.0 - libwx_gtk2_richtext-2.8.so.0.5.0
libwx_base-2.8.so.0 - libwx_base-2.8.so.0.5.0
libwx_gtk2_adv-2.8.so.0 - libwx_gtk2_adv-2.8.so.0.5.0
libgdraw.so.1 - libgdraw.so.1.0.9
libwx_gtk2_html-2.8.so.0 - libwx_gtk2_html-2.8.so.0.5.0
libwx_base_net-2.8.so.0 - libwx_base_net-2.8.so.0.5.0
libalsaplayer.so.0 - libalsaplayer.so.0.0.2
libltdl.so.3 - libltdl.so.3.1.4
libbristolic.so.0 - libbristolic.so.0.0.50
libwx_gtk2_aui-2.8.so.0 - libwx_gtk2_aui-2.8.so.0.5.0
librdf.so.0 - librdf.so.0.0.0
libaubio.so.2 - libaubio.so.2.1.1
libgunicode.so.2 - libgunicode.so.2.0.2
libB11.so.0 - libB11.so.0.0.50
libsndfile.so.1 - libsndfile.so.1.0.17
libbristol.so.0 - libbristol.so.0.0.50
librasqal.so.1 - librasqal.so.1.0.0
liblo.so.0 - liblo.so.0.6.0
liblrdf.so.2 - liblrdf.so.2.0.0
libwx_gtk2_core-2.8.so.0 - libwx_gtk2_core-2.8.so.0.5.0
libbristolaudio.so.0 - libbristolaudio.so.0.0.50
libmpg123.so.0 - libmpg123.so.0.2.1
libmp3lame.so.0 - libmp3lame.so.0.0.0
libungif.so.4 - libungif.so.4.1.4
libautotrace.so.3 - libautotrace.so.3.0.0
libbrighton.so.0 - libbrighton.so.0.0.50
libwx_base_xml-2.8.so.0 - libwx_base_xml-2.8.so.0.5.0
libjack.so.0 - libjack.so.0.0.28
libbristolmidi.so.0 - libbristolmidi.so.0.0.50
/usr/lib:

also, I moved /usr/local/lib and /usr/local/bin aside and re-ran
ldconfig, and gs still worked, but gv still failed (though when
gv reports the error, it reports it as a Ghostscript error...)

Regards,  Peter

http://www.pjb.com.au   p...@pjb.com.au  (03) 6278 9410
Was der Meister nicht kann,   vermöcht es der Knabe, hätt er
 ihm immer gehorcht?   Siegfried to Mime, from Act 1 Scene 2




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#573115: ghostscript: all PDF files give Error: /undefined

2010-03-09 Thread Jonas Smedegaard

On Tue, Mar 09, 2010 at 07:46:48PM +1000, p...@pjb.com.au wrote:

Greetings Jonas, thanks for your prompt answer.


Yeah, I appreciate that myself - especially when initially posting a 
bugreport.  Unfortunately too often I don't get around to responding 
until ages later (if at all) :-(




What command did you invoke that lead to above error?


 /usr/bin/gv
and then o for open and do the file-dialogue thing. Or:
 /usr/bin/gv ~/www/muscript/samples/courante.pdf
gives the same error :-(

But on the other hand:
 /usr/bin/gs ~/www/muscript/samples/courante.pdf
displays the page perfectly :-)

So gs works, but gv fails (though when gv reports the error,
it reports it as a GPL Ghostscript error...)


Ah.  gv works for me too.



Do you perhaps have something odd below /usr/local which
confuses ghostscript?


Well /usr/local/lib seems like it's ahead of /usr/lib,


That sounds like a possible cause, then.



also, I moved /usr/local/lib and /usr/local/bin aside and re-ran
ldconfig, and gs still worked, but gv still failed (though when
gv reports the error, it reports it as a Ghostscript error...)


Ghostscript also pulls data files from */usr/share.

Try put aside /usr/local completely!

And I wonder how all those binaries ended below /usr/lib - could it be 
that you've compiled a bunch of different stuff by hand and installed it 
as root?  If so, I suspect that some install routines might accidentally 
have installed stuff below /usr too, and you do not really run a Debian 
system any longer :-(


Not certain, though.  A way forward could perhaps be to use strace to 
check which files are being touch prior to the crash.  But that's beyond 
me, so can't really help there.



 - 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
Description: Digital signature


Bug#573115: ghostscript: all PDF files give Error: /undefined

2010-03-09 Thread pj
Greetings Jonas,

  So gs works, but gv fails (though when gv reports the error,
  it reports it as a GPL Ghostscript error...)
 Ah.  gv works for me too.

Ah...

 Ghostscript also pulls data files from */usr/share.
 Try put aside /usr/local completely!

I did that:
  mv /usr/local /usr/local.aside
but my gv still fails with the same message :-)

 And I wonder how all those binaries ended below /usr/lib - could
 it be that you've compiled a bunch of different stuff by hand and
 installed it as root?

Yes, that I have done; but always into /usr/local, AFAIK

 If so, I suspect that some install routines might accidentally
 have installed stuff below /usr too,

Well that would be very naughty of them.  I did do the upgrade
lenny to squeeze which is when the gv problem seem to have arisen,
and haven't really compiled much by hand since.
gv is the only program that's giving me problems.

 Not certain, though.  A way forward could perhaps be to use
 strace to check which files are being touch prior to the crash.
 But that's beyond me, so can't really help there.

I ran:
  box8 strace -o /tmp/t gv ~/www/muscript/samples/courante.pdf

and I can see gv doing:
  pipe([7, 8])
not sure what that does because I don't know where 8 came from, and
then it polls file-descriptor 7 a lot, eventually getting the answer:
  box8 grep '(7' /tmp/t | less
  read(7, Error: /undefined, 512)   = 17
  read(7,  in copy_trailer_attrs\nOperand s..., 512) = 512
  read(7, ack:\n   --dict:1159/1684(ro)(G)-..., 512) = 197
  close(7)= 0
so the error looks like it's coming from a gs process,
just like gv is reporting that it does.

Ken Sharp, of gs-bugs, says:
 Hmm, sounds like either its gv, or possibly its somehow linking
 against a different version of Ghostscript, maybe an old one.

Can I force-reinstall ghostscript and/or gv ?

But there's certainly no files from /usr/local/ being accessed:
  box8 grep usr /tmp/t | less
execve(/usr/bin/gv, [gv, /home/pjb/www/muscript/samples/c...], [/* 39 
vars */]) = 0
open(/usr/lib/libXaw3d.so.6, O_RDONLY) = 3
open(/usr/lib/libXmu.so.6, O_RDONLY)  = 3
open(/usr/lib/libXt.so.6, O_RDONLY)   = 3
open(/usr/lib/libX11.so.6, O_RDONLY)  = 3
open(/usr/lib/libXinerama.so.1, O_RDONLY) = 3
open(/usr/lib/libSM.so.6, O_RDONLY)   = 3
open(/usr/lib/libICE.so.6, O_RDONLY)  = 3
open(/usr/lib/libXext.so.6, O_RDONLY) = 3
open(/usr/lib/libXpm.so.4, O_RDONLY)  = 3
open(/usr/lib/libxcb.so.1, O_RDONLY)  = 3
open(/usr/lib/libXau.so.6, O_RDONLY)  = 3
open(/usr/lib/libXdmcp.so.6, O_RDONLY) = 3
open(/usr/share/X11/locale/locale.alias, O_RDONLY) = 4
open(/usr/share/X11/locale/locale.dir, O_RDONLY) = 4
access(/usr/share/X11/locale/C/XLC_LOCALE, R_OK) = 0
open(/usr/share/X11/locale/C/XLC_LOCALE, O_RDONLY) = 4
open(/usr/share/X11/locale/locale.alias, O_RDONLY) = 4
open(/usr/share/X11/locale/locale.dir, O_RDONLY) = 4
access(/usr/share/X11/locale/C/XLC_LOCALE, R_OK) = 0
open(/usr/share/X11/locale/C/XLC_LOCALE, O_RDONLY) = 4
access(/usr/lib/X11/en_AU.utf8/app-defaults/GV, R_OK) = -1 ENOENT (No such 
file or directory)
access(/usr/lib/X11/en/app-defaults/GV, R_OK) = -1 ENOENT (No such file or 
directory)
access(/usr/lib/X11/app-defaults/GV, R_OK) = -1 ENOENT (No such file or 
directory)
open(/usr/share/gv/gv_system.ad, O_RDONLY) = 4
stat64(/usr/lib/X11/Xcms.txt, 0xbf99e744) = -1 ENOENT (No such file or 
directory)
open(/usr/lib/libXcursor.so.1, O_RDONLY) = 4
open(/usr/lib/libXrender.so.1, O_RDONLY) = 4
open(/usr/lib/libXfixes.so.3, O_RDONLY) = 4
open(/usr/share/X11/XKeysymDB, O_RDONLY) = 4
open(/usr/share/icons/default/cursors/watch, O_RDONLY) = -1 ENOENT (No such 
file or directory)
open(/usr/share/icons/default/index.theme, O_RDONLY) = -1 ENOENT (No such 
file or directory)
open(/usr/share/pixmaps/default/cursors/watch, O_RDONLY) = -1 ENOENT (No such 
file or directory)
open(/usr/share/pixmaps/default/index.theme, O_RDONLY) = -1 ENOENT (No such 
file or directory)
open(/usr/share/icons/default/cursors/crosshair, O_RDONLY) = -1 ENOENT (No 
such file or directory)
open(/usr/share/icons/default/index.theme, O_RDONLY) = -1 ENOENT (No such 
file or directory)
open(/usr/share/pixmaps/default/cursors/crosshair, O_RDONLY) = -1 ENOENT (No 
such file or directory)
open(/usr/share/pixmaps/default/index.theme, O_RDONLY) = -1 ENOENT (No such 
file or directory)
open(/usr/share/icons/default/cursors/plus, O_RDONLY) = -1 ENOENT (No such 
file or directory)
open(/usr/share/icons/default/index.theme, O_RDONLY) = -1 ENOENT (No such 
file or directory)
open(/usr/share/pixmaps/default/cursors/plus, O_RDONLY) = -1 ENOENT (No such 
file or directory)
open(/usr/share/pixmaps/default/index.theme, O_RDONLY) = -1 ENOENT (No such 
file or directory)
open(/usr/share/icons/default/cursors/top_left_arrow, O_RDONLY) = -1 ENOENT 
(No such file or directory)
open(/usr/share/icons/default/index.theme, O_RDONLY) = -1 ENOENT (No such 
file or directory)
open(/usr/share/pixmaps/default/cursors/top_left_arrow, O_RDONLY) = -1 ENOENT 
(No 

Bug#573115: ghostscript: all PDF files give Error: /undefined

2010-03-09 Thread Jonas Smedegaard

On Tue, Mar 09, 2010 at 09:46:23PM +1000, p...@pjb.com.au wrote:
And I wonder how all those binaries ended below /usr/lib - could it 
be that you've compiled a bunch of different stuff by hand and 
installed it as root?


Yes, that I have done; but always into /usr/local, AFAIK


That last part is what worries me :-P


If so, I suspect that some install routines might accidentally have 
installed stuff below /usr too,


Well that would be very naughty of them.  I did do the upgrade lenny to 
squeeze which is when the gv problem seem to have arisen, and haven't 
really compiled much by hand since. gv is the only program that's 
giving me problems.


What is the version of gv on your system? What does dpkg -l gv say?



and I can see gv doing:
 pipe([7, 8])
not sure what that does because I don't know where 8 came from, and
then it polls file-descriptor 7 a lot, eventually getting the answer:
 box8 grep '(7' /tmp/t | less
 read(7, Error: /undefined, 512)   = 17
 read(7,  in copy_trailer_attrs\nOperand s..., 512) = 512
 read(7, ack:\n   --dict:1159/1684(ro)(G)-..., 512) = 197
 close(7)= 0
so the error looks like it's coming from a gs process,
just like gv is reporting that it does.


That is complete voodoo to me, but I believe you...




Ken Sharp, of gs-bugs, says:

Hmm, sounds like either its gv, or possibly its somehow linking
against a different version of Ghostscript, maybe an old one.


Can I force-reinstall ghostscript and/or gv ?


Try this:

  aptitude reinstall gv ghostscript libgs8 gsfonts

If that doesn't help, I do consider reassigning this to gv.  Even though 
you point out that it is gs parts of gv that spits out errors, as it 
occurs only through that program, which might do some dirty magic no 
longer supported or something...



 - 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
Description: Digital signature


Bug#573115: ghostscript: all PDF files give Error: /undefined

2010-03-09 Thread pj
Hi Jonas,

 What is the version of gv on your system? What does dpkg -l gv say?

box8 dpkg -l gv
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name   VersionDescription
+++-==-==-
ii  gv 1:3.6.8-1  PostScript and PDF viewer for X
box8 dpkg -l ghostscript
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name   VersionDescription
+++-==-==-
ii  ghostscript8.71~dfsg-1The GPL Ghostscript PostScript/PDF interpret
box8 gv --version
gv 3.6.8
box8 gs --version
8.71

 Try this:
aptitude reinstall gv ghostscript libgs8 gsfonts
 If that doesn't help, I do consider reassigning this to gv.
 Even though you point out that it is gs parts of gv that
 spits out errors, as it occurs only through that program,

The reinstall worked fine, but the dpkg -l commands give
identical outputs, and
  gv ~/www/muscript/samples/courante.pdf
still give me just the
  Error: /undefined in copy_trailer_attrs
  GPL Ghostscript 8.71: Unrecoverable error, exit code 1
error :-(   I haven't tried rebooting yet, I'll send this email first
and if you don't hear from me, then rebooting didn't change anything.

Although
  gs ~/www/muscript/samples/courante.pdf
does display the document OK, I notice it gives me a warning:
  Warning: the map file cidfmap was not found.
Don't know if this means anything ...

gv is certainly involved... Can you reassign the ticket,
or do I have to visit a URL somewhere ?

Thanks for your help,  Regards,  Peter Billam

http://www.pjb.com.au   p...@pjb.com.au  (03) 6278 9410
Was der Meister nicht kann,   vermöcht es der Knabe, hätt er
 ihm immer gehorcht?   Siegfried to Mime, from Act 1 Scene 2




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#573115: ghostscript: all PDF files give Error: /undefined

2010-03-09 Thread Jonas Smedegaard

reassign 573115 gv
thanks

On Wed, Mar 10, 2010 at 06:53:17AM +1000, p...@pjb.com.au wrote:


Try this:
   aptitude reinstall gv ghostscript libgs8 gsfonts
If that doesn't help, I do consider reassigning this to gv.
Even though you point out that it is gs parts of gv that
spits out errors, as it occurs only through that program,


The reinstall worked fine, but the dpkg -l commands give
identical outputs, and
 gv ~/www/muscript/samples/courante.pdf
still give me just the
 Error: /undefined in copy_trailer_attrs
 GPL Ghostscript 8.71: Unrecoverable error, exit code 1
error :-(



I haven't tried rebooting yet, I'll send this email first
and if you don't hear from me, then rebooting didn't change anything.


Rebooting should have no effect on a situation like this.




Although
 gs ~/www/muscript/samples/courante.pdf
does display the document OK, I notice it gives me a warning:
 Warning: the map file cidfmap was not found.
Don't know if this means anything ...


That is related to double-byte characters (e.g. chinese).  Lack of those 
files should not cause failure, just maybe lack of displaying some 
characters (as I understand it).




gv is certainly involved... Can you reassign the ticket,
or do I have to visit a URL somewhere ?


Reassgined with this email.  Kust continue to post to same bugreport 
(and only that, not cot...@bugs.debian.org as I just did), and your 
input will now reach the gv maintainer.


Good luck with this!



Thanks for your help,  Regards,  Peter Billam


Well, thank you for patience and valuable input - and for reporting bugs 
in the first place! :-)



Regards,

 - 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
Description: Digital signature


Bug#573115: ghostscript: all PDF files give Error: /undefined

2010-03-09 Thread Bernhard R. Link
reassign 573115 ghostscript 8.71~dfsg-1
close 573115 8.71~dfsg-2
thanks

Dear Peter,

As gv maintainer I think this is a ghostscript bug and fixed in
ghostscript 8.71~dfsg-2 from unstable. Getting that version from
unstable or waiting till it migrates to testing should solve your
problem.

Dear ghostscript maintainers,

I can reproduce this with 8.71~dfsg-1 but it works with 8.71~dfsg-2
(tried on unstable where I downgraded ghostscript and libgs8).

The commands gv is executing are:

gs -DNODISPLAY -dQUIET -sPDFname=courante.pdf -sDSCname=courante.pdf.asc 
pdf2dsc.ps -c quit
gs courante.pdf.asc

This fails with -1 and works with -2, so I suspect some problem in
ghostscript as reason, that is part of the pdf related things fixed in -2.
(The generated .dsc files also differ: -1 has copy_trailer_attrs, -2 has
process_trailer_attrs).

If I misanalysed and the command is not supposed to work, please reopen and
reassign back.

Hochachtungsvoll,
Bernhard R. Link



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#573115: ghostscript: all PDF files give Error: /undefined

2010-03-09 Thread Markus Steinborn

Hello,

I am the upstream GNU gv maintainer and I can confirm: Bernhard is 
absolutely right. This is not a GNU gv bug, but this problem is known 
upstream.


Taking a look at the upstream bug report 
https://savannah.gnu.org/bugs/?29023 helps: Take a look at 
https://bugzilla.redhat.com/show_bug.cgi?id=565935 (Well, it's for 
Fedora, but most likely other distributions are affected, too) - 
especially /Comment #11 
https://savannah.gnu.org/bugs/?29023#comment11/. You'll find that 
Ghostscript 8.71 is broken. A patch is available there. I am 
intentionally leaving this bug open but marked as invalid so it is as 
easy to find as possible.


This also explains why it works on Fedora: They have fixed the bug in 
Ghostscripzt 8.71.



Greetimngs from Germany

Markus Steinborn
GNU gv maintainer




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#573115: ghostscript: all PDF files give Error: /undefined in copy_trailer_attrs

2010-03-08 Thread Peter Billam
Package: ghostscript
Version: 8.71~dfsg-1
Severity: important


I just brought my debian squeeze up to date with   aptitude update
and   aptitude safe-upgrade,  and now my GPL Ghostscript 8.71 can't
display _any_ PDF files, not even those generated by gs version
8.71, nor those generated by previous versions of gs, like
  http://www.pjb.com.au/muscript/samples/courante.pdf
nor the PDF invoice my ISP just sent me :-(

It displays the the correct number of page-buttons down the
left-hand-side, but then every page it tries to display gives:

  Error: /undefined in copy_trailer_attrs
  Operand stack:

  Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--
   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
   --nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop
   1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3
   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2
--nostringval--
   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
  Dictionary stack:
   --dict:1159/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--
   --dict:108/127(ro)(G)--   --dict:288/300(ro)(G)--   --dict:21/25(L)--
  Current allocation mode is local
  Last OS error: 11
  GPL Ghostscript 8.71: Unrecoverable error, exit code 1

But all Postscript files seem to work fine.

I reported this to gs-b...@ghostscript.com but they say it works
fine in Fedora and I should report it to the Debian folk.

Any ideas ?

Peter Billamwww.pjb.com.au

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ghostscript depends on:
ii  debconf [debc 1.5.28 Debian configuration management sy
ii  debianutils   3.2.2  Miscellaneous utilities specific t
ii  defoma0.11.10-4  Debian Font Manager -- automatic f
ii  ghostscript [ 8.71~dfsg-1The GPL Ghostscript PostScript/PDF
ii  gs-common 8.71~dfsg-1Dummy package depending on ghostsc
ii  gsfonts   1:8.11+urwcyr1.0.7~pre44-4 Fonts for the Ghostscript interpre
ii  libc6 2.10.2-6   Embedded GNU C Library: Shared lib
ii  libgs88.71~dfsg-1The Ghostscript PostScript/PDF int

Versions of packages ghostscript recommends:
ii  psfontmgr 0.11.10-4  PostScript font manager -- part of

ghostscript suggests no packages.

-- no debconf information


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ghostscript depends on:
ii  debconf [debc 1.5.28 Debian configuration management sy
ii  debianutils   3.2.2  Miscellaneous utilities specific t
ii  defoma0.11.10-4  Debian Font Manager -- automatic f
ii  ghostscript [ 8.71~dfsg-1The GPL Ghostscript PostScript/PDF
ii  gs-common 8.71~dfsg-1Dummy package depending on ghostsc
ii  gsfonts   1:8.11+urwcyr1.0.7~pre44-4 Fonts for the Ghostscript interpre
ii  libc6 2.10.2-6   Embedded GNU C Library: Shared lib
ii  libgs88.71~dfsg-1The Ghostscript PostScript/PDF int

Versions of packages ghostscript recommends:
ii  psfontmgr 0.11.10-4  PostScript font manager -- part of

ghostscript suggests no packages.

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org