Created attachment 123589 [details] damaged pdf file Execute pdfunite design/force_sensor.pdf out.pdf using shell script and pdfunite will crash with message: Syntax Error: Couldn't find trailer dictionary Internal Error (0): Call to Object where the object was type 5, not the expected type 7 ########## gdb debug info pdfunite design/force_sensor.pdf out.pdf GNU gdb (Ubuntu 7.11-0ubuntu1) 7.11 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from pdfunite...Reading symbols from /usr/lib/debug/.build-id/d5/681490cf3a1a7b36229bafe2cdc992e80581bf.debug...done. done. (gdb) run Starting program: /usr/bin/pdfunite design/force_sensor.pdf design/force_sensor.pdf [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". Syntax Error: Couldn't find trailer dictionary Internal Error (0): Call to Object where the object was type 5, not the expected type 7 Program received signal SIGABRT, Aborted. 0xb7fdac31 in __kernel_vsyscall () (gdb) bt #0 0xb7fdac31 in __kernel_vsyscall () #1 0xb7a4be89 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:54 #2 0xb7a4d3e7 in __GI_abort () at abort.c:89 #3 0x0804ab30 in Object::getDict (this=0xbfffef38, this=0xbfffef38) at ../poppler/Object.h:209 #4 0x08049c88 in main (argc=3, argv=0xbffff054) at pdfunite.cc:247 (gdb)
The crash can be trigger by pdfunite the same file for both input and output. thomas@thomas-VirtualBox:/tmp$ pdfunite force_sensor.pdf force_sensor.pdf Syntax Error: Couldn't find trailer dictionary Internal Error (0): Call to Object where the object was type 5, not the expected type 7 已經終止 (core dumped)
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/265.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.