/poppler/CairoOutputDev.cc:1943: Segmentation fault
version:23.09.0
My system OS:Ubuntu 20.04
reproduce:pdftocairo -png poc.pdf output.png
The stack information is as follows:
Program received signal SIGSEGV, Segmentation fault.
0x000000000041f8cd in CairoOutputDev::setSoftMask (this=0x67a500, state=, bbox=, alpha=, transferFunc=
0x6ad970, backdropColor=) at /Oscar01/liujiahao/poppler-master/poppler/CairoOutputDev.cc:1943
1943 source_data[y * stride + x] = lum << 24;
(gdb) bt
#0 0x000000000041f8cd in CairoOutputDev::setSoftMask (this=0x67a500, state=, bbox=, alpha=,
transferFunc=0x6ad970, backdropColor=) at /Oscar01/liujiahao/poppler-master/poppler/CairoOutputDev.cc:1943
#1 0x00007ffff7a848b1 in Gfx::doSoftMask (this=this@entry=0x68aab0, str=, str@entry=0x7fffffffdbd0, alpha=,
blendingColorSpace=0x0, isolated=, knockout=, transferFunc=, backdropColor=)
at /Oscar01/liujiahao/poppler-master/poppler/Gfx.cc:1289
#2 (closed) 0x00007ffff7a7a9af in Gfx::opSetExtGState (this=0x68aab0, args=0x7fffffffdd70, numArgs=)
at /Oscar01/liujiahao/poppler-master/poppler/Gfx.cc:1161
#3 (closed) 0x00007ffff7a82a70 in Gfx::go (this=this@entry=0x68aab0, topLevel=false) at /Oscar01/liujiahao/poppler-master/poppler/Gfx.cc:685
#4 0x00007ffff7a82508 in Gfx::display (this=this@entry=0x68aab0, obj=0x7fffffffe238, obj@entry=0x3ff0000000000000, topLevel=false)
at /Oscar01/liujiahao/poppler-master/poppler/Gfx.cc:646
#5 (closed) 0x00007ffff7a84ebd in Gfx::drawForm (this=0x68aab0, str=0x3ff0000000000000, resDict=, matrix=, bbox=0x7fffffffe1c0,
transpGroup=, softMask=, blendingColorSpace=0x0,
isolated=<error reading variable: That operation is not available on integers of more than 8 bytes.>,
knockout=<error reading variable: That operation is not available on integers of more than 8 bytes.>, alpha=false, transferFunc=0x0,
backdropColor=0x0) at /Oscar01/liujiahao/poppler-master/poppler/Gfx.cc:4836
#6 (closed) 0x00007ffff7a94714 in Gfx::doForm (this=this@entry=0x68aab0, str=0x1, str@entry=0x7fffffffe238)
at /Oscar01/liujiahao/poppler-master/poppler/Gfx.cc:4766
#7 0x00007ffff7a7225d in Gfx::opXObject (this=0x68aab0, args=, numArgs=)
at /Oscar01/liujiahao/poppler-master/poppler/Gfx.cc:4139
#8 0x00007ffff7a82a70 in Gfx::go (this=this@entry=0x68aab0, topLevel=false) at /Oscar01/liujiahao/poppler-master/poppler/Gfx.cc:685
#9 0x00007ffff7a82508 in Gfx::display (this=0x68aab0, obj=0x7fffffffe5e8, topLevel=true) at /Oscar01/liujiahao/poppler-master/poppler/Gfx.cc:646
#10 0x00007ffff7b33d19 in Page::displaySlice (this=0x67dd00, out=, hDPI=, vDPI=, rotate=,
useMediaBox=, crop=, sliceX=, sliceY=, sliceW=, sliceH=,
printing=, abortCheckCbk=, abortCheckCbkData=, annotDisplayDecideCbk=,
annotDisplayDecideCbkData=, copyXRef=) at /Oscar01/liujiahao/poppler-master/poppler/Page.cc:584
#11 (closed) 0x00007ffff7b3cef8 in PDFDoc::displayPageSlice (this=, out=0x67a500, page=, hDPI=,
vDPI=, rotate=, useMediaBox=true, crop=false, printing=, sliceX=,
sliceY=, sliceW=, sliceH=, abortCheckCbk=, abortCheckCbkData=,
annotDisplayDecideCbk=, annotDisplayDecideCbkData=, copyXRef=)
at /Oscar01/liujiahao/poppler-master/poppler/PDFDoc.cc:633
#12 (closed) 0x000000000040ec1a in renderPage (doc=0x67d970, cairoOut=0x67a500, pg=1, page_w=612, page_h=792, output_w=, output_h=)
at /Oscar01/liujiahao/poppler-master/utils/pdftocairo.cc:705
#13 main (argc=, argv=) at /Oscar01/liujiahao/poppler-master/utils/pdftocairo.cc:1243
poc.pdf