Pdfseparate: A type error occurred while calling the object
version:23.08.0
My system OS:Ubuntu 20.04
reproduce: pdfseparate poc.pdf output-%d.pdf
Final error message prompt“Internal Error (0): Call to Object where the object was type 10, not the expected type 7”
I reinstalled and compiled the poppler that fixed the issue with issues/1428, and the poc.pdf in issues/1428 no longer triggers crashes. But I found a new PDF file that seems to have triggered the same issue
The stack information is as follows:
Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: 没有那个文件或目录.
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff7593859 in __GI_abort () at abort.c:79
#2 (closed) 0x00007ffff7c28796 in Object::getDict (this=this@entry=0x7fffffffd888) at /Oscar01/liujiahao/poppler-master/poppler/Object.h:435
#3 (closed) 0x00007ffff7d437ab in PDFDoc::savePageAs (this=0x653fe0, name=..., pageNo=1) at /Oscar01/liujiahao/poppler-master/poppler/PDFDoc.cc:927
#4 0x00000000004055ad in extractPages (srcFileName=, destFileName=0x7fffffffed1e "out/put-%d.pdf")
at /Oscar01/liujiahao/poppler-master/utils/pdfseparate.cc:123
#5 (closed) main (argc=, argv=) at /Oscar01/liujiahao/poppler-master/utils/pdfseparate.cc:156
poc.pdf