Newsgroup: it.comp.software.tex
Titolo: [pdfpages, pdfjam] aiuto per debugging

per produrre gli handout delle lezioni uso pdfjam*, che viene anche
distribuito con texlive --- pdfjam a sua volta usa pdfpages
 
ho una serie di presentazioni fatte con beamer che ho usato l'anno
scorso derivandone anche gli handouts con pdfjam
 
quest'anno ho ripreso le slides della prima lezione, ho fatto delle
correzioni ho cambiato una figura etc, ho processato con pdfjam e
tutto era OK
 
fatto lo stesso per la seconda lezione, pdfjam (aka pdflatex+pdfpages)
muore senza verbo proferire... ho fatto qualche prova, ho provato a
bisecare il file di input, a installare una versione precedente di
pdfjam, a bestemmiare l'olimpo greco: niente! mi rimane da aggiornare
al contrari pdfpages e pdflatex esso stesso!
 
sotto allego qualche cosa del output di debug, spero in qualche idea
perché non so dove sbattere la testa
 
tia,
                                                g
--- il file .tex generato da pdfjam, che serve a generare l'handout,
    il file source1.pdf è un link simbolico al mio pdf con le slides
    (i % ce li ho messi io per accorciare le righe)
 
\batchmode
\documentclass[a4paper,]{article}
\usepackage[utf8]{inputenc}
\usepackage{pdfpages}
\footskip 3.1cm
\begin{document}
\includepdfmerge[nup=1x3,frame=true,noautoscale=false,delta=0cm 0.2cm,%
scale=0.87,offset=-3.8cm 0cm,pagecommand={\thispagestyle{empty}}]%
{/var/tmp/pdfjam-J8aLRE/source-1.pdf,-}
\end{document}
 
 
--- il file .log generato dall'esecuzione di pdflatex sul .tex
    precedente, solo la fine, ho notato che resetta il contatore delle
    pagine originali che mette sulla pagina fisica dell'handout, ma
    non riesco a immaginarmi il perché
 
[...]
[5 </var/tmp/pdfjam-J8aLRE/source-1.pdf> </var/tmp/pdfjam-J8aLRE/source-1.pdf> 
</var/tmp/pdfjam-J8aLRE/source-1.pdf>]
</var/tmp/pdfjam-J8aLRE/source-1.pdf, id=182, page=16, 364.19562pt x 273.14648pt>
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 16>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page16 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 16>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page16 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
 
</var/tmp/pdfjam-J8aLRE/source-1.pdf, id=183, page=17, 364.19562pt x 273.14648pt>
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 17>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page17 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 17>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page17 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
 
</var/tmp/pdfjam-J8aLRE/source-1.pdf, id=184, page=18, 364.19562pt x 273.14648pt>
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 18>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page18 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 18>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page18 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 16>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page16 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 17>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page17 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 18>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page18 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
[6 </var/tmp/pdfjam-J8aLRE/source-1.pdf> </var/tmp/pdfjam-J8aLRE/source-1.pdf> 
</var/tmp/pdfjam-J8aLRE/source-1.pdf>]
</var/tmp/pdfjam-J8aLRE/source-1.pdf, id=189, page=19, 364.19562pt x 273.14648pt>
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 19>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page19 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 19>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page19 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 1>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page1 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 1>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page1 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x
--- il file di log finisce d'improvviso!
 
--- questa è la (ri)esecuzione da terminale:
 
$ pdflatex a.tex 
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
 restricted \write18 enabled.
entering extended mode
(./a.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
 icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
 lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
 
Segmentation fault
$ 
--- 

     non riesco a immaginarmi il perché
 
questa cosa del reset delle pagine è un artefatto dovuto alla
bisezione dell'input di cui parlavo prima... se passo a pdfpages un
file con tutte le slides si blocca sempre mentre produce la pagina 7
dell'handout ma in un punto diverso e senza resettare il contatore
delle pagine originali
 
[6 </var/tmp/pdfjam-J8aLRE/source-1.pdf> </var/tmp/pdfjam-J8aLRE/source-1.pdf> 
</var/tmp/pdfjam-J8aLRE/source-1.pdf>]
</var/tmp/pdfjam-J8aLRE/source-1.pdf, id=189, page=19, 364.19562pt x 273.14648pt>
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 19>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page19 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 19>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page19 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
 
</var/tmp/pdfjam-J8aLRE/source-1.pdf, id=190, page=20, 364.19562pt x 273.14648pt>
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 20>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source-1.pdf, page20 used on input line 7.
(pdftex.def)             Requested size: 316.84763pt x 237.63551pt.
File: /var/tmp/pdfjam-J8aLRE/source-1.pdf Graphic file (type pdf)
<use /var/tmp/pdfjam-J8aLRE/source-1.pdf, page 20>
Package pdftex.def Info: /var/tmp/pdfjam-J8aLRE/source
--- il log si ferma all'improvviso                 qui^
    ma immagino il punto preciso sia un artefatto della dimensione dei
    buffer di i/o
 
di nuovo. grazie1000anticipate

 ---
 
Chiaro sintomo di un problema interno al software.
 
La cosa da fare sarebbe ricompilare latex con i simboli di debug, quindi 
fargli ricompilare a.tex e sperare che vada in coredump, da li' a colpi 
di debugger risalire al colpevole (senz'altro un buffer overrun, od un 
array senza fondo...).
 
In alternativa dovresti contattare lo sviluppatore di pdfjam o pdfpages 
e farti aiutare da lui (anche se alla fine il colpevole sarà nelle 
librerie di Ghostscript).
 

 Chiaro sintomo di un problema interno al software.
 
mi sono ricordato che su un pc ho anche il texlive 2009 di debian,
quindi ho dato il comando /usr/bin/pdflatex a.tex (invece di
/opt/texbin/pdflatex) e mi ha fatto la compilazione senza problema
 
il pdftex del texlive ultimo presenta quindi una regressione... sia su
architettura i386 (casa, ufficio) che su architettura amd64 (notebook)
 
come si fa un bug report contro pdflatex? intanto cerco per conto mio
ma se qualcuno lo sapesse...
 
grazie per aver acceso la lampadina
                                                        g