PDF reports problem

@Eero, yes, i use kali-rolling. But i don’t know if it’s a buggy package.

From the StackOverflow topic and from the report.log file, it sounds more like a incompatibility with hyperref latex package and the utf8x, maybe on some update on the first one. Because the error i reported above happened on the \tableofcontent command.

1 Like

@paiva.rafael probably need track changes on package updates.

Eero

1 Like

@paiva.rafael try to update / downgrade packages and test if it fixed the issue

Eero

1 Like

@Eero you mean gvm-feed update?

@paiva.rafael unfortunatelly. editing latex.xsl didn’t work for me

@J0hnD0e you need first to figure out the error message

Eero

Having same issue and config as explained by @J0hnD0e in his initial post.
Found the error log under /tmp with the name tmp.tL4soi8Hna/report.log with following content:

FIRST PART

This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022/Debian) (preloaded format=pdflatex 2022.8.11)  11 AUG 2022 12:49
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**/tmp/tmp.mwoUQpupdR/report.tex
(/tmp/tmp.mwoUQpupdR/report.tex
LaTeX2e <2022-06-01> patch level 5
L3 programming layer <2022-07-15> (/usr/share/texlive/texmf-dist/tex/latex/base
/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
) (/usr/share/texlive/texmf-dist/tex/latex/tools/tabularx.sty
Package: tabularx 2020/01/15 v2.11c `tabularx' package (DPC)
(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty
Package: array 2022/03/10 v2.5f Tabular extension package (FMi)
\col@sep=\dimen139
\ar@mcellbox=\box51
\extrarowheight=\dimen140
\NC@list=\toks16
\extratabsurround=\skip49
\backup@length=\skip50
\ar@cellbox=\box52
)
\TX@col@width=\dimen141
\TX@old@table=\dimen142
\TX@old@col=\dimen143
\TX@target=\dimen144
\TX@delta=\dimen145
\TX@cols=\count193
\TX@ftn=\toks17
) (/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
Package: geometry 2020/01/02 v5.9 Page Geometry
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2022/05/29 v1.15 key=value parser (DPC)
\KV@toks@=\toks18
) (/usr/share/texlive/texmf-dist/tex/generic/iftex/ifvtex.sty
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2022/02/03 v1.0f TeX engine tests
))
\Gm@cnth=\count194
\Gm@cntv=\count195
\c@Gm@tempcnt=\count196
\Gm@bindingoffset=\dimen146
\Gm@wd@mp=\dimen147
\Gm@odd@mp=\dimen148
\Gm@even@mp=\dimen149
\Gm@layoutwidth=\dimen150
\Gm@layoutheight=\dimen151
\Gm@layouthoffset=\dimen152
\Gm@layoutvoffset=\dimen153
\Gm@dimlist=\toks19
) (/usr/share/texlive/texmf-dist/tex/latex/comment/comment.sty
\CommentStream=\write3
Excluding comment 'comment') (/usr/share/texlive/texmf-dist/tex/latex/tools/lon
gtable.sty
Package: longtable 2021-09-01 v4.17 Multi-page Table package (DPC)
\LTleft=\skip51
\LTright=\skip52
\LTpre=\skip53
\LTpost=\skip54
\LTchunksize=\count197
\LTcapwidth=\dimen154
\LT@head=\box53
\LT@firsthead=\box54
\LT@foot=\box55
\LT@lastfoot=\box56
\LT@gbox=\box57
\LT@cols=\count198
\LT@rows=\count199
\c@LT@tables=\count266
\c@LT@chunks=\count267
\LT@p@ftn=\toks20
) (/usr/share/texlive/texmf-dist/tex/latex/titlesec/titlesec.sty
Package: titlesec 2021/07/05 v2.14 Sectioning titles
\ttl@box=\box58
\beforetitleunit=\skip55
\aftertitleunit=\skip56
\ttl@plus=\dimen155
\ttl@minus=\dimen156
\ttl@toksa=\toks21
\titlewidth=\dimen157
\titlewidthlast=\dimen158
\titlewidthfirst=\dimen159
) (/usr/share/texlive/texmf-dist/tex/latex/changepage/chngpage.sty
Package: chngpage 2009/10/20 v1.2b change page layout
\c@cp@cnt=\count268
\c@cp@tempcnt=\count269
) (/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty
Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count270
\calc@Bcount=\count271
\calc@Adimen=\dimen160
\calc@Bdimen=\dimen161
\calc@Askip=\skip57
\calc@Bskip=\skip58
LaTeX Info: Redefining \setlength on input line 80.
LaTeX Info: Redefining \addtolength on input line 81.
\calc@Ccount=\count272
\calc@Cskip=\skip59
) (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty
\Urlmuskip=\muskip16
Package: url 2013/09/16  ver 3.4  Verb mode for urls, etc.
) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2021/02/14 v1.3d Input encoding file
\inpenc@prehook=\toks22
\inpenc@posthook=\toks23
(/usr/share/texlive/texmf-dist/tex/latex/ucs/utf8x.def
File: utf8x.def 2004/10/17 UCS: Input encoding UTF-8
)) (/usr/share/texlive/texmf-dist/tex/latex/ucs/ucs.sty
Package: ucs 2013/05/11 v2.2 UCS: Unicode input support
(/usr/share/texlive/texmf-dist/tex/latex/ucs/data/uni-global.def
File: uni-global.def 2013/05/13 UCS: Unicode global data
)
\uc@secondtry=\count273
\uc@combtoks=\toks24
\uc@combtoksb=\toks25
\uc@temptokena=\toks26
) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
) (/usr/share/texlive/texmf-dist/tex/latex/colortbl/colortbl.sty
Package: colortbl 2020/01/04 v1.0e Color table columns (DPC)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty
Package: color 2022/01/06 v1.3d Standard LaTeX Color (DPC)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package color Info: Driver file: pdftex.def on input line 149.
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
) (/usr/share/texlive/texmf-dist/tex/latex/graphics/mathcolor.ltx))
\everycr=\toks27
\minrowclearance=\skip60
) (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
Package: hyperref 2022-06-20 v7.00s Hypertext links for LaTeX
(/usr/share/texlive/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
) (/usr/share/texlive/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO
)
(/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty
Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
)
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
) (/usr/share/texlive/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty
Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO)
) (/usr/share/texlive/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty
Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO)
) (/usr/share/texlive/texmf-dist/tex/generic/pdfescape/pdfescape.sty
Package: pdfescape 2019/12/09 v1.15 Implements pdfTeX's escape features (HO)
) (/usr/share/texlive/texmf-dist/tex/latex/hycolor/hycolor.sty
Package: hycolor 2020-01-27 v1.10 Color options for hyperref/bookmark (HO)
) (/usr/share/texlive/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty
Package: letltxmacro 2019/12/03 v1.6 Let assignment for LaTeX macros (HO)
) (/usr/share/texlive/texmf-dist/tex/latex/auxhook/auxhook.sty
Package: auxhook 2019-12-17 v1.6 Hooks for auxiliary files (HO)
) (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
Package: nameref 2022-05-17 v2.50 Cross-referencing by name of section
(/usr/share/texlive/texmf-dist/tex/latex/refcount/refcount.sty
Package: refcount 2019/12/15 v3.6 Data extraction from label references (HO)
) (/usr/share/texlive/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty
Package: gettitlestring 2019/12/15 v1.6 Cleanup title references (HO)
(/usr/share/texlive/texmf-dist/tex/latex/kvoptions/kvoptions.sty
Package: kvoptions 2022-06-15 v3.15 Key value format for package options (HO)
))
\c@section@level=\count274
)
\@linkdim=\dimen162
\Hy@linkcounter=\count275
\Hy@pagecounter=\count276
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2022-06-20 v7.00s Hyperref: PDFDocEncoding definition (HO)
) (/usr/share/texlive/texmf-dist/tex/generic/intcalc/intcalc.sty
Package: intcalc 2019/12/15 v1.3 Expandable calculations with integers (HO)
) (/usr/share/texlive/texmf-dist/tex/generic/etexcmds/etexcmds.sty
Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
)
\Hy@SavedSpaceFactor=\count277
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/puenc.def
File: puenc.def 2022-06-20 v7.00s Hyperref: PDF Unicode definition (HO)
)
Package hyperref Info: Hyper figures OFF on input line 4162.
Package hyperref Info: Link nesting OFF on input line 4167.
Package hyperref Info: Hyper index ON on input line 4170.
Package hyperref Info: Plain pages OFF on input line 4177.
Package hyperref Info: Backreferencing OFF on input line 4182.
Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
Package hyperref Info: Bookmarks ON on input line 4408.
\c@Hy@tempcnt=\count278
LaTeX Info: Redefining \url on input line 4746.
\XeTeXLinkMargin=\dimen163
(/usr/share/texlive/texmf-dist/tex/generic/bitset/bitset.sty
Package: bitset 2019/12/09 v1.3 Handle bit-vector datatype (HO)
(/usr/share/texlive/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty
Package: bigintcalc 2019/12/15 v1.5 Expandable calculations on big integers (HO
)
))
\Fld@menulength=\count279
\Field@Width=\dimen164
\Fld@charsize=\dimen165
Package hyperref Info: Hyper figures OFF on input line 6024.
Package hyperref Info: Link nesting OFF on input line 6029.
Package hyperref Info: Hyper index ON on input line 6032.
Package hyperref Info: backreferencing OFF on input line 6039.
Package hyperref Info: Link coloring OFF on input line 6044.
Package hyperref Info: Link coloring with OCG OFF on input line 6049.
Package hyperref Info: PDF/A mode OFF on input line 6054.
(/usr/share/texlive/texmf-dist/tex/latex/base/atbegshi-ltx.sty
Package: atbegshi-ltx 2021/01/10 v1.0c Emulation of the original atbegshi
package with kernel methods
)
\Hy@abspage=\count280
\c@Item=\count281
\c@Hfootnote=\count282
)
Package hyperref Info: Driver (autodetected): hpdftex.
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
File: hpdftex.def 2022-06-20 v7.00s Hyperref driver for pdfTeX
(/usr/share/texlive/texmf-dist/tex/latex/base/atveryend-ltx.sty
Package: atveryend-ltx 2020/08/19 v1.0a Emulation of the original atveryend pac
kage
with kernel methods
)
\Fld@listcount=\count283
\c@bookmark@seq@number=\count284
(/usr/share/texlive/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
Package: rerunfilecheck 2022-07-10 v1.10 Rerun checks for auxiliary files (HO)
(/usr/share/texlive/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty
Package: uniquecounter 2019/12/15 v1.4 Provide unlimited unique counter (HO)
)
Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
85.
)
\Hy@SectionHShift=\skip61
)
Package hyperref Info: Option `colorlinks' set `true' on input line 40.

Package hyperref Warning: Option `bookmarks' has already been used,
(hyperref)                setting the option has no effect on input line 40.

Package hyperref Info: Option `bookmarksopen' set `true' on input line 40.
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/hypcap.sty
Package: hypcap 2016/05/16 v1.12 Adjusting the anchors of captions (HO)
) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2022-07-01 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count285
\l__pdf_internal_box=\box59
) (/tmp/tmp.mwoUQpupdR/report.aux)
\openout1 = `report.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
LaTeX Font Info:    Checking defaults for PU/pdf/m/n on input line 51.
LaTeX Font Info:    ... okay on input line 51.
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
*geometry* verbose mode - [ preamble ] result:
* driver: pdftex
* paper: a4paper
* layout: <same size as paper>
* layoutoffset:(h,v)=(0.0pt,0.0pt)
* modes: 
* h-part:(L,W,R)=(89.62709pt, 418.25368pt, 89.6271pt)
* v-part:(T,H,B)=(101.40665pt, 591.5302pt, 152.11pt)
* \paperwidth=597.50787pt
* \paperheight=845.04684pt
* \textwidth=418.25368pt
* \textheight=591.5302pt
* \oddsidemargin=17.3571pt
* \evensidemargin=17.3571pt
* \topmargin=-7.86334pt
* \headheight=12.0pt
* \headsep=25.0pt
* \topskip=10.0pt
* \footskip=30.0pt
* \marginparwidth=65.0pt
* \marginparsep=11.0pt
* \columnsep=10.0pt
* \skip\footins=9.0pt plus 4.0pt minus 2.0pt
* \hoffset=0.0pt
* \voffset=0.0pt
* \mag=1000
* \@twocolumnfalse
* \@twosidefalse
* \@mparswitchfalse
* \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt)

(/usr/share/texlive/texmf-dist/tex/latex/ucs/ucsencs.def
File: ucsencs.def 2011/01/21 Fixes to fontencodings LGR, T3
) (/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count286
\scratchdimen=\dimen166
\scratchbox=\box60
\nofMPsegments=\count287
\nofMParguments=\count288
\everyMPshowfont=\toks28
\MPscratchCnt=\count289
\MPscratchDim=\dimen167
\MPnumerator=\count290
\makeMPintoPDFobject=\count291
\everyMPtoPDFconversion=\toks29
)
Package hyperref Info: Link coloring ON on input line 51.
(/tmp/tmp.mwoUQpupdR/report.out) (/tmp/tmp.mwoUQpupdR/report.out)
\@outlinefile=\write4
\openout4 = `report.out'.

LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <12> on input line 54.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 54.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 54.

LaTeX Warning: No \author given.

(/tmp/tmp.mwoUQpupdR/report.toc)
\tf@toc=\write5
\openout5 = `report.toc'.

SECOND PART

! Argument of   has an extra }.
<inserted text> 
                \par 
l.65 \newpage
             
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
! Paragraph ended before   was complete.
<to be read again> 
                   \par 

LAST PART

(That makes 100 errors; please try again.) 
Here is how much of TeX's memory you used:
 9675 strings out of 479907
 153069 string characters out of 5886408
 462791 words of memory out of 5000000
 27763 multiletter control sequences out of 15000+600000
 477374 words of font info for 44 fonts, out of 8000000 for 9000
 59 hyphenation exceptions out of 8191
 72i,7n,77p,326b,193s stack positions out of 10000i,1000n,20000p,200000b,200000s

!  ==> Fatal error occurred, no output PDF file produced!

The second part repeats multiple times followed by the end message from the report
The previously recommendations in the post did not solve the problem.

Thanks for your help in advance , maybe someone has an idea or solution from the log file.

Many thanks

Hope this helps

LL & P

There are two open Kali bug reports on the same issue:

As this only started to happen recently on Kali systems this problem might have been introduced recently with some LaTeX package updates (remember: Kali is using a rolling release model) caused by either:

  • a bug in the new version of the related inputenc package
  • some incompatibilities of the new version with the way the reports are generated within GVM

Note that the reference system for GVM is currently Debian 11/buster while Kali seems to be based on Debian testing.

1 Like

@flipthemouse please put output into pastebin. it’s more readable.

Eero

@cfi maybe downgrading packages fix the issue

https://www.linuxuprising.com/2019/02/how-to-downgrade-packages-to-specific.html

Eero

https://pastebin.com/6cB72nRz

Tried it.
It just creates more issues with the dependencies connected to the corresponding packages.
The bugs are already logged , see post from @cfi

@flipthemouse https://web1.eng.famu.fsu.edu/~dommelen/l2h/errors.html#argex

Eero

@flipthemouse try running file againts latex syntax checker? for example: https://www.nongnu.org/chktex/

Eero

Thank you @Eero, which file exactly ?

@flipthemouse the temporary directory probably contains needed files…

Eero

@flipthemouse if possible, please provide temporary directory contents in targz so. i can take look of it?

scan of 127.0.0.1 is enought

Eero

  • Current versions:
    gsad 21.4.4
    gvmd 21.4.5
    openvas-scanner 21.4.4
    gvm-libs 21.4.4
    system is Linux kali 5.18.0-kali5-amd64

  • Additional install: xmlstarlet texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra

  • Enabled tracking via /usr/share/gvm/gvmd/report_formats/c402cc3e-b531-11e1-9163-406186ea4fc5/generate

  • Performed scan via WebGUI on 127.0.0.1 and exported the 0-bytes file report in pdf.

  • Created tmp_folder.tar.gz from /tmp folder for analysis

Getting message: “Sorry, new users can not upload attachments.” from community.greenbone.net

Cannot attach to message

Uploaded files on files.fm , Accessible via https://files.fm/u/n8y794wyj

Files

  • report-b1c0297c-69f4-4ab6-8219-21b863f49bda.pdf

  • tmp_folder.tar.gz
    SHA256: D0064FE79C19A2F501A034ADC7791C5D4EA890E7F3566FD9138C68047A3B1698

Link active until 26.August 2022 then delete.

Hope this helps. Thanks for your support @Eero

LL & P

flipthemouse

After a week of troubleshooting and a full Kali reinstall, @paiva.rafael 's fix worked.
The issue that I was facing was that I was editing the latex.xsl file in the wrong directory.

I had been working in /usr/share/gvm/gvmd/report_formats/c402cc3e-b531-11e1-9163-406186ea4fc5

and not

/var/lib/gvm/gvmd/report_formats/3ec8c167-420f-4c07-b7c9-a2d1424d9667/c402cc3e-b531-11e1-9163-406186ea4fc5

Agree can confirm that
In my case the responsible folder was too in /var/lib/gvm/gvmd/report_formats/
There was only one subfolder having the folder
402cc3e-b531-11e1-9163-406186ea4fc5 with the latex.xsl file to edit.
Commented the line \usepackage[utf8x]{inputenc} to %\usepackage[utf8x]{inputenc}

After the reload
systemctl daemon-reload && systemctl restart gvmd.service && systemctl restart gsad.service

pdf export was again working

Thank you Magmonix , paiva.rafael and Eero

1 Like

@flipthemouse it might be wise to create good bug report on kali bug system.

Eero