Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • P poppler
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 687
    • Issues 687
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 52
    • Merge requests 52
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • poppler
  • poppler
  • Issues
  • #703
Closed
Open
Issue created Dec 26, 2018 by skysider@skysider

a reachable abort in AnnotRichMedia::Content::Content at Annot.cc:6432

I compiled latest poppler library and it aborted when I run pdfdetach -save 1 abort.pdf, this is the backtrace:

Syntax Error: End of file inside array
Syntax Error: End of file inside dictionary
Internal Error (0): Call to Object where the object was type 1, not the expected type 3

Breakpoint 2, __GI_abort () at abort.c:51
51      abort.c: No such file or directory.
(gdb) bt
#0  __GI_abort () at abort.c:51
#1  0x084d4b93 in Object::getString (this=0xffffcde0, this=0xffffcde0) at /work/poppler/poppler/Object.h:253
#2  0x084fb2d2 in AnnotRichMedia::Content::Content (this=0xf5d1f5b0, dict=0xf3f001d0) at /work/poppler/poppler/Annot.cc:6432
#3  0x0854b0df in std::make_unique<AnnotRichMedia::Content, Dict*>(Dict*&&) () at /usr/include/c++/5/bits/unique_ptr.h:765
#4  0x084fbae1 in AnnotRichMedia::initialize (this=0xf3502ea0, docA=0xf3902b90, dict=0xf3f002d0) at /work/poppler/poppler/Annot.cc:6310
#5  0x0852928d in Annots::createAnnot(Object&&, Object const*) (this=0xf5d1e970,
    dictObject=<unknown type in /work/poppler/build/utils/pdfdetach, CU 0x469504, DIE 0x4d8d15>, obj=0xffffd0e0)
    at /work/poppler/poppler/Annot.cc:6747
#6  0x08535fb3 in Annots::Annots (this=0xf5d1e970, docA=0xf3902b90, page=1, annotsObj=0xffffd180) at /work/poppler/poppler/Annot.cc:6648
#7  0x083089b8 in Page::getAnnots (this=0xf3302dc0, xrefA=0x0) at /work/poppler/poppler/Page.cc:362
#8  0x081158fa in main (argc=2, argv=0xffffd7a4) at /work/poppler/utils/pdfdetach.cc:172
(gdb) list Annot.cc:6432
6427            assets[counter] = new AnnotRichMedia::Asset;
6428
6429            Object objKey = obj2.arrayGet(i * 2);
6430            assets[counter]->fileSpec = obj2.arrayGet(i * 2 + 1);
6431
6432            assets[counter]->name = std::make_unique<GooString>( objKey.getString() );
6433            ++counter;
6434
6435          }
6436        }

the file is attached here reachabort.pdf

Edited Dec 26, 2018 by skysider
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking